documents.js 1.97.9 → 1.97.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/convert/capability.cjs +5 -272
- package/dist/convert/capability.d.cts +1 -1
- package/dist/convert/capability.d.ts +1 -1
- package/dist/convert/capability.js +1 -268
- package/dist/convert/codec.cjs +29 -29
- package/dist/convert/codec.js +1 -1
- package/dist/convert/composition.cjs +5 -0
- package/dist/convert/composition.d.cts +60 -0
- package/dist/convert/composition.d.ts +60 -0
- package/dist/convert/composition.js +2 -0
- package/dist/convert/convert.cjs +42 -797
- package/dist/convert/convert.d.cts +1 -105
- package/dist/convert/convert.d.ts +1 -105
- package/dist/convert/convert.js +1 -756
- package/dist/convert/local.cjs +16 -31
- package/dist/convert/local.js +15 -30
- package/dist/convert-B1izrvnQ.d.cts +106 -0
- package/dist/convert-BO_4tCwz.cjs +1262 -0
- package/dist/convert-HYsWA-LI.d.ts +106 -0
- package/dist/convert-ULGgwmSb.js +975 -0
- package/dist/index.cjs +42 -42
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/metadata/read.cjs +2 -2
- package/dist/metadata/read.js +1 -1
- package/package.json +1 -1
package/dist/convert/convert.cjs
CHANGED
|
@@ -1,798 +1,43 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const content = {
|
|
45
|
-
...read,
|
|
46
|
-
metadata: require_model_metadata.resolveMetadataTimestamps(read.metadata, options?.clock)
|
|
47
|
-
};
|
|
48
|
-
const fonts = require_fonts_registry.createDocumentFontRegistry({
|
|
49
|
-
kind: "docx",
|
|
50
|
-
package: pkg
|
|
51
|
-
}, options);
|
|
52
|
-
const { document: layout, formulas } = require_layout_engine.convertWordprocessingToLayout(content, {
|
|
53
|
-
measurer: (0, pdf_codec.createFontMeasurer)(fonts),
|
|
54
|
-
mathMetricsAt
|
|
55
|
-
});
|
|
56
|
-
options?.onDocument?.({
|
|
57
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
58
|
-
content,
|
|
59
|
-
layout
|
|
60
|
-
});
|
|
61
|
-
return (0, pdf_codec.writePdf)(layout, {
|
|
62
|
-
signal: options?.signal,
|
|
63
|
-
onSubstitution: options?.onSubstitution,
|
|
64
|
-
formulas,
|
|
65
|
-
fonts
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function odtToPdf(bytes, options) {
|
|
69
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
70
|
-
const read = require_odf_odt_read.readOdtContent(pkg);
|
|
71
|
-
if (read.kind !== "wordprocessing") throw new Error("readOdtContent returned a non-wordprocessing ContentDocument");
|
|
72
|
-
const content = {
|
|
73
|
-
...read,
|
|
74
|
-
metadata: require_model_metadata.resolveMetadataTimestamps(read.metadata, options?.clock)
|
|
75
|
-
};
|
|
76
|
-
const fonts = require_fonts_registry.createDocumentFontRegistry({
|
|
77
|
-
kind: "odf",
|
|
78
|
-
package: pkg
|
|
79
|
-
}, options);
|
|
80
|
-
const { document: layout, formulas } = require_layout_engine.convertWordprocessingToLayout(content, {
|
|
81
|
-
measurer: (0, pdf_codec.createFontMeasurer)(fonts),
|
|
82
|
-
mathMetricsAt
|
|
83
|
-
});
|
|
84
|
-
options?.onDocument?.({
|
|
85
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
86
|
-
content,
|
|
87
|
-
layout
|
|
88
|
-
});
|
|
89
|
-
return (0, pdf_codec.writePdf)(layout, {
|
|
90
|
-
signal: options?.signal,
|
|
91
|
-
onSubstitution: options?.onSubstitution,
|
|
92
|
-
formulas,
|
|
93
|
-
fonts
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
function pptxToPdf(bytes, options) {
|
|
97
|
-
const pkg = require_edit_pptx_editor.openPptx(bytes).toPackage();
|
|
98
|
-
const read = require_ooxml_pptx_read.readPptxContent(pkg);
|
|
99
|
-
if (read.kind !== "presentation") throw new Error("readPptxContent returned a non-presentation ContentDocument");
|
|
100
|
-
const content = {
|
|
101
|
-
...read,
|
|
102
|
-
metadata: require_model_metadata.resolveMetadataTimestamps(read.metadata, options?.clock)
|
|
103
|
-
};
|
|
104
|
-
const fonts = require_fonts_registry.createDocumentFontRegistry({
|
|
105
|
-
kind: "pptx",
|
|
106
|
-
package: pkg
|
|
107
|
-
}, options);
|
|
108
|
-
const { document: layout, formulas } = require_layout_slides.convertPresentationToLayout(content, {
|
|
109
|
-
measurer: (0, pdf_codec.createFontMeasurer)(fonts),
|
|
110
|
-
mathMetricsAt
|
|
111
|
-
});
|
|
112
|
-
options?.onDocument?.({
|
|
113
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
114
|
-
content,
|
|
115
|
-
layout
|
|
116
|
-
});
|
|
117
|
-
return (0, pdf_codec.writePdf)(layout, {
|
|
118
|
-
signal: options?.signal,
|
|
119
|
-
onSubstitution: options?.onSubstitution,
|
|
120
|
-
formulas,
|
|
121
|
-
fonts
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
function odpToPdf(bytes, options) {
|
|
125
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
126
|
-
const read = require_odf_odp_read.readOdpContent(pkg);
|
|
127
|
-
if (read.kind !== "presentation") throw new Error("readOdpContent returned a non-presentation ContentDocument");
|
|
128
|
-
const content = {
|
|
129
|
-
...read,
|
|
130
|
-
metadata: require_model_metadata.resolveMetadataTimestamps(read.metadata, options?.clock)
|
|
131
|
-
};
|
|
132
|
-
const fonts = require_fonts_registry.createDocumentFontRegistry({
|
|
133
|
-
kind: "odf",
|
|
134
|
-
package: pkg
|
|
135
|
-
}, options);
|
|
136
|
-
const { document: layout, formulas } = require_layout_slides.convertPresentationToLayout(content, {
|
|
137
|
-
measurer: (0, pdf_codec.createFontMeasurer)(fonts),
|
|
138
|
-
mathMetricsAt
|
|
139
|
-
});
|
|
140
|
-
options?.onDocument?.({
|
|
141
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
142
|
-
content,
|
|
143
|
-
layout
|
|
144
|
-
});
|
|
145
|
-
return (0, pdf_codec.writePdf)(layout, {
|
|
146
|
-
signal: options?.signal,
|
|
147
|
-
onSubstitution: options?.onSubstitution,
|
|
148
|
-
formulas,
|
|
149
|
-
fonts
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
function odsToPdf(bytes, options) {
|
|
153
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
154
|
-
const read = require_odf_ods_read.readOdsContent(pkg);
|
|
155
|
-
if (read.kind !== "spreadsheet") throw new Error("readOdsContent returned a non-spreadsheet ContentDocument");
|
|
156
|
-
const content = {
|
|
157
|
-
...read,
|
|
158
|
-
metadata: require_model_metadata.resolveMetadataTimestamps(read.metadata, options?.clock)
|
|
159
|
-
};
|
|
160
|
-
const fonts = require_fonts_registry.createDocumentFontRegistry({
|
|
161
|
-
kind: "odf",
|
|
162
|
-
package: pkg
|
|
163
|
-
}, options);
|
|
164
|
-
const { document: layout, formulas } = require_layout_sheets.convertSpreadsheetToLayout(content, {
|
|
165
|
-
measurer: (0, pdf_codec.createFontMeasurer)(fonts),
|
|
166
|
-
mathMetricsAt,
|
|
167
|
-
signal: options?.signal
|
|
168
|
-
});
|
|
169
|
-
options?.onDocument?.({
|
|
170
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
171
|
-
content,
|
|
172
|
-
layout
|
|
173
|
-
});
|
|
174
|
-
return (0, pdf_codec.writePdf)(layout, {
|
|
175
|
-
signal: options?.signal,
|
|
176
|
-
onSubstitution: options?.onSubstitution,
|
|
177
|
-
formulas,
|
|
178
|
-
fonts
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
function odgToPdf(bytes, options) {
|
|
182
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
183
|
-
const read = require_odf_odg_read.readOdgContent(pkg);
|
|
184
|
-
if (read.kind !== "drawing") throw new Error("readOdgContent returned a non-drawing ContentDocument");
|
|
185
|
-
const content = {
|
|
186
|
-
...read,
|
|
187
|
-
metadata: require_model_metadata.resolveMetadataTimestamps(read.metadata, options?.clock)
|
|
188
|
-
};
|
|
189
|
-
const fonts = require_fonts_registry.createDocumentFontRegistry({
|
|
190
|
-
kind: "odf",
|
|
191
|
-
package: pkg
|
|
192
|
-
}, options);
|
|
193
|
-
const layout = require_layout_drawing.convertDrawingToLayout(content, { measurer: (0, pdf_codec.createFontMeasurer)(fonts) });
|
|
194
|
-
options?.onDocument?.({
|
|
195
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
196
|
-
content,
|
|
197
|
-
layout
|
|
198
|
-
});
|
|
199
|
-
return (0, pdf_codec.writePdf)(layout, {
|
|
200
|
-
signal: options?.signal,
|
|
201
|
-
onSubstitution: options?.onSubstitution,
|
|
202
|
-
fonts
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
function markdownToPdf(bytes, options) {
|
|
206
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
207
|
-
const text = require_markdown_text.decodeMarkdownText(bytes);
|
|
208
|
-
const read = require_markdown_read.readMarkdownContent(text, {
|
|
209
|
-
signal: options?.signal,
|
|
210
|
-
images: options?.images
|
|
211
|
-
});
|
|
212
|
-
if (read.kind !== "wordprocessing") throw new Error("readMarkdownContent returned a non-wordprocessing ContentDocument");
|
|
213
|
-
const content = {
|
|
214
|
-
...read,
|
|
215
|
-
metadata: require_model_metadata.resolveMetadataTimestamps(read.metadata, options?.clock)
|
|
216
|
-
};
|
|
217
|
-
const fonts = (0, pdf_codec.createFontRegistry)({
|
|
218
|
-
fonts: options?.fonts,
|
|
219
|
-
onSubstitution: options?.onFontSubstitution
|
|
220
|
-
});
|
|
221
|
-
const { document: layout, formulas } = require_layout_engine.convertWordprocessingToLayout(content, {
|
|
222
|
-
measurer: (0, pdf_codec.createFontMeasurer)(fonts),
|
|
223
|
-
mathMetricsAt
|
|
224
|
-
});
|
|
225
|
-
options?.onDocument?.({
|
|
226
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
227
|
-
content,
|
|
228
|
-
layout
|
|
229
|
-
});
|
|
230
|
-
return (0, pdf_codec.writePdf)(layout, {
|
|
231
|
-
signal: options?.signal,
|
|
232
|
-
onSubstitution: options?.onSubstitution,
|
|
233
|
-
formulas,
|
|
234
|
-
fonts
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
const STANDALONE_FORMULA_SIZE_PT = 18;
|
|
238
|
-
const STANDALONE_FORMULA_MARGIN_PT = 72;
|
|
239
|
-
function odfToPdf(bytes, options) {
|
|
240
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
241
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
242
|
-
const read = require_odf_formula_read.readOdfFormulaContent(pkg);
|
|
243
|
-
if (read.kind !== "formula") throw new Error("readOdfFormulaContent returned a non-formula ContentDocument");
|
|
244
|
-
const content = {
|
|
245
|
-
...read,
|
|
246
|
-
metadata: require_model_metadata.resolveMetadataTimestamps(read.metadata, options?.clock)
|
|
247
|
-
};
|
|
248
|
-
const metrics = (0, pdf_codec.loadMathFont)().metricsAt(STANDALONE_FORMULA_SIZE_PT);
|
|
249
|
-
const { box } = require_mathml_layout.layoutFormula(content.formula.mathml, {
|
|
250
|
-
metrics,
|
|
251
|
-
sizePt: STANDALONE_FORMULA_SIZE_PT,
|
|
252
|
-
color: document_schema_js.COLOR_BLACK
|
|
253
|
-
});
|
|
254
|
-
const flipped = require_model_geometry.flipY({
|
|
255
|
-
xPt: STANDALONE_FORMULA_MARGIN_PT,
|
|
256
|
-
yPt: STANDALONE_FORMULA_MARGIN_PT,
|
|
257
|
-
widthPt: box.widthPt,
|
|
258
|
-
heightPt: box.heightPt
|
|
259
|
-
}, document_schema_js.PAGE_SIZE_A4.heightPt);
|
|
260
|
-
const layout = {
|
|
261
|
-
formatVersion: document_schema_js.LAYOUT_FORMAT_VERSION,
|
|
262
|
-
metadata: content.metadata,
|
|
263
|
-
pages: [{
|
|
264
|
-
widthPt: document_schema_js.PAGE_SIZE_A4.widthPt,
|
|
265
|
-
heightPt: document_schema_js.PAGE_SIZE_A4.heightPt,
|
|
266
|
-
items: []
|
|
267
|
-
}],
|
|
268
|
-
images: {}
|
|
269
|
-
};
|
|
270
|
-
options?.onDocument?.({
|
|
271
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
272
|
-
content,
|
|
273
|
-
layout
|
|
274
|
-
});
|
|
275
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
276
|
-
return (0, pdf_codec.writePdf)(layout, {
|
|
277
|
-
signal: options?.signal,
|
|
278
|
-
formulas: [{
|
|
279
|
-
pageIndex: 0,
|
|
280
|
-
xPt: flipped.xPt,
|
|
281
|
-
yPt: flipped.yPt,
|
|
282
|
-
box
|
|
283
|
-
}]
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
function pdfToDocx(bytes, options) {
|
|
287
|
-
const layout = (0, pdf_codec.readPdf)(bytes, {
|
|
288
|
-
signal: options?.signal,
|
|
289
|
-
sink: options?.sink
|
|
290
|
-
});
|
|
291
|
-
const content = require_layout_reconstruct.reconstructWordprocessing(layout, { signal: options?.signal });
|
|
292
|
-
options?.onDocument?.({
|
|
293
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
294
|
-
content,
|
|
295
|
-
layout
|
|
296
|
-
});
|
|
297
|
-
return (0, ooxml_js.encodePackage)(require_edit_docx_content.buildDocxPackage(content));
|
|
298
|
-
}
|
|
299
|
-
function pdfToPptx(bytes, options) {
|
|
300
|
-
const layout = (0, pdf_codec.readPdf)(bytes, {
|
|
301
|
-
signal: options?.signal,
|
|
302
|
-
sink: options?.sink
|
|
303
|
-
});
|
|
304
|
-
const content = require_layout_reconstruct.reconstructPresentation(layout, { signal: options?.signal });
|
|
305
|
-
options?.onDocument?.({
|
|
306
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
307
|
-
content,
|
|
308
|
-
layout
|
|
309
|
-
});
|
|
310
|
-
return (0, ooxml_js.encodePackage)(require_edit_pptx_content.buildPptxPackage(content));
|
|
311
|
-
}
|
|
312
|
-
function pdfToOdt(bytes, options) {
|
|
313
|
-
const layout = (0, pdf_codec.readPdf)(bytes, {
|
|
314
|
-
signal: options?.signal,
|
|
315
|
-
sink: options?.sink
|
|
316
|
-
});
|
|
317
|
-
const content = require_layout_reconstruct.reconstructWordprocessing(layout, { signal: options?.signal });
|
|
318
|
-
options?.onDocument?.({
|
|
319
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
320
|
-
content,
|
|
321
|
-
layout
|
|
322
|
-
});
|
|
323
|
-
return (0, odf_js.encodePackage)(require_edit_odt_content.buildOdtPackage(content));
|
|
324
|
-
}
|
|
325
|
-
function pdfToOdp(bytes, options) {
|
|
326
|
-
const layout = (0, pdf_codec.readPdf)(bytes, {
|
|
327
|
-
signal: options?.signal,
|
|
328
|
-
sink: options?.sink
|
|
329
|
-
});
|
|
330
|
-
const content = require_layout_reconstruct.reconstructPresentation(layout, { signal: options?.signal });
|
|
331
|
-
options?.onDocument?.({
|
|
332
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
333
|
-
content,
|
|
334
|
-
layout
|
|
335
|
-
});
|
|
336
|
-
return (0, odf_js.encodePackage)(require_edit_odp_content.buildOdpPackage(content));
|
|
337
|
-
}
|
|
338
|
-
function pdfToOdg(bytes, options) {
|
|
339
|
-
const layout = (0, pdf_codec.readPdf)(bytes, {
|
|
340
|
-
signal: options?.signal,
|
|
341
|
-
sink: options?.sink
|
|
342
|
-
});
|
|
343
|
-
const content = require_layout_reconstruct.reconstructDrawing(layout, { signal: options?.signal });
|
|
344
|
-
options?.onDocument?.({
|
|
345
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
346
|
-
content,
|
|
347
|
-
layout
|
|
348
|
-
});
|
|
349
|
-
return (0, odf_js.encodePackage)(require_edit_odg_content.buildOdgPackage(content));
|
|
350
|
-
}
|
|
351
|
-
function pdfToOds(bytes, options) {
|
|
352
|
-
const layout = (0, pdf_codec.readPdf)(bytes, {
|
|
353
|
-
signal: options?.signal,
|
|
354
|
-
sink: options?.sink
|
|
355
|
-
});
|
|
356
|
-
const content = require_layout_reconstruct.reconstructSpreadsheet(layout, { signal: options?.signal });
|
|
357
|
-
options?.onDocument?.({
|
|
358
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
359
|
-
content,
|
|
360
|
-
layout
|
|
361
|
-
});
|
|
362
|
-
return (0, odf_js.encodePackage)(require_edit_ods_content.buildOdsPackage(content));
|
|
363
|
-
}
|
|
364
|
-
function pdfToMarkdown(bytes, options) {
|
|
365
|
-
const layout = (0, pdf_codec.readPdf)(bytes, {
|
|
366
|
-
signal: options?.signal,
|
|
367
|
-
sink: options?.sink
|
|
368
|
-
});
|
|
369
|
-
const content = require_layout_reconstruct.reconstructWordprocessing(layout, { signal: options?.signal });
|
|
370
|
-
options?.onDocument?.({
|
|
371
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
372
|
-
content,
|
|
373
|
-
layout
|
|
374
|
-
});
|
|
375
|
-
const text = require_markdown_write.buildMarkdownText(content);
|
|
376
|
-
return require_markdown_text.encodeMarkdownText(text);
|
|
377
|
-
}
|
|
378
|
-
function odtToDocx(bytes, options) {
|
|
379
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
380
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
381
|
-
const content = require_odf_odt_read.readOdtContent(pkg);
|
|
382
|
-
if (content.kind !== "wordprocessing") throw new Error("readOdtContent returned a non-wordprocessing ContentDocument");
|
|
383
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
384
|
-
options?.onDocument?.({
|
|
385
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
386
|
-
content
|
|
387
|
-
});
|
|
388
|
-
return (0, ooxml_js.encodePackage)(require_edit_docx_content.buildDocxPackage(content, { onMathDiagnostic: options?.onMathDiagnostic }));
|
|
389
|
-
}
|
|
390
|
-
function docxToOdt(bytes, options) {
|
|
391
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
392
|
-
const pkg = (0, ooxml_js.decodePackage)(bytes);
|
|
393
|
-
const content = require_ooxml_docx_read.readDocxContent(pkg, { onMathDiagnostic: options?.onMathDiagnostic });
|
|
394
|
-
if (content.kind !== "wordprocessing") throw new Error("readDocxContent returned a non-wordprocessing ContentDocument");
|
|
395
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
396
|
-
options?.onDocument?.({
|
|
397
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
398
|
-
content
|
|
399
|
-
});
|
|
400
|
-
return (0, odf_js.encodePackage)(require_edit_odt_content.buildOdtPackage(content));
|
|
401
|
-
}
|
|
402
|
-
function odpToPptx(bytes, options) {
|
|
403
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
404
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
405
|
-
const content = require_odf_odp_read.readOdpContent(pkg);
|
|
406
|
-
if (content.kind !== "presentation") throw new Error("readOdpContent returned a non-presentation ContentDocument");
|
|
407
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
408
|
-
options?.onDocument?.({
|
|
409
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
410
|
-
content
|
|
411
|
-
});
|
|
412
|
-
return (0, ooxml_js.encodePackage)(require_edit_pptx_content.buildPptxPackage(content));
|
|
413
|
-
}
|
|
414
|
-
function pptxToOdp(bytes, options) {
|
|
415
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
416
|
-
const pkg = (0, ooxml_js.decodePackage)(bytes);
|
|
417
|
-
const content = require_ooxml_pptx_read.readPptxContent(pkg);
|
|
418
|
-
if (content.kind !== "presentation") throw new Error("readPptxContent returned a non-presentation ContentDocument");
|
|
419
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
420
|
-
options?.onDocument?.({
|
|
421
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
422
|
-
content
|
|
423
|
-
});
|
|
424
|
-
return (0, odf_js.encodePackage)(require_edit_odp_content.buildOdpPackage(content));
|
|
425
|
-
}
|
|
426
|
-
function odsToXlsx(bytes, options) {
|
|
427
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
428
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
429
|
-
const content = require_odf_ods_read.readOdsContent(pkg);
|
|
430
|
-
if (content.kind !== "spreadsheet") throw new Error("readOdsContent returned a non-spreadsheet ContentDocument");
|
|
431
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
432
|
-
options?.onDocument?.({
|
|
433
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
434
|
-
content
|
|
435
|
-
});
|
|
436
|
-
return (0, ooxml_js.encodePackage)((0, ooxml_js.buildXlsxPackage)(content));
|
|
437
|
-
}
|
|
438
|
-
function xlsxToOds(bytes, options) {
|
|
439
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
440
|
-
const pkg = (0, ooxml_js.decodePackage)(bytes);
|
|
441
|
-
const content = (0, ooxml_js.readXlsxContent)(pkg);
|
|
442
|
-
if (content.kind !== "spreadsheet") throw new Error("readXlsxContent returned a non-spreadsheet ContentDocument");
|
|
443
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
444
|
-
options?.onDocument?.({
|
|
445
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
446
|
-
content
|
|
447
|
-
});
|
|
448
|
-
return (0, odf_js.encodePackage)(require_edit_ods_content.buildOdsPackage(content));
|
|
449
|
-
}
|
|
450
|
-
function markdownToDocx(bytes, options) {
|
|
451
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
452
|
-
const text = require_markdown_text.decodeMarkdownText(bytes);
|
|
453
|
-
const content = require_markdown_read.readMarkdownContent(text, {
|
|
454
|
-
signal: options?.signal,
|
|
455
|
-
images: options?.images
|
|
456
|
-
});
|
|
457
|
-
if (content.kind !== "wordprocessing") throw new Error("readMarkdownContent returned a non-wordprocessing ContentDocument");
|
|
458
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
459
|
-
options?.onDocument?.({
|
|
460
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
461
|
-
content
|
|
462
|
-
});
|
|
463
|
-
return (0, ooxml_js.encodePackage)(require_edit_docx_content.buildDocxPackage(content, { onMathDiagnostic: options?.onMathDiagnostic }));
|
|
464
|
-
}
|
|
465
|
-
function docxToMarkdown(bytes, options) {
|
|
466
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
467
|
-
const pkg = (0, ooxml_js.decodePackage)(bytes);
|
|
468
|
-
const content = require_ooxml_docx_read.readDocxContent(pkg, { onMathDiagnostic: options?.onMathDiagnostic });
|
|
469
|
-
if (content.kind !== "wordprocessing") throw new Error("readDocxContent returned a non-wordprocessing ContentDocument");
|
|
470
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
471
|
-
options?.onDocument?.({
|
|
472
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
473
|
-
content
|
|
474
|
-
});
|
|
475
|
-
const text = require_markdown_write.buildMarkdownText(content);
|
|
476
|
-
return require_markdown_text.encodeMarkdownText(text);
|
|
477
|
-
}
|
|
478
|
-
function markdownToOdt(bytes, options) {
|
|
479
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
480
|
-
const text = require_markdown_text.decodeMarkdownText(bytes);
|
|
481
|
-
const content = require_markdown_read.readMarkdownContent(text, {
|
|
482
|
-
signal: options?.signal,
|
|
483
|
-
images: options?.images
|
|
484
|
-
});
|
|
485
|
-
if (content.kind !== "wordprocessing") throw new Error("readMarkdownContent returned a non-wordprocessing ContentDocument");
|
|
486
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
487
|
-
options?.onDocument?.({
|
|
488
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
489
|
-
content
|
|
490
|
-
});
|
|
491
|
-
return (0, odf_js.encodePackage)(require_edit_odt_content.buildOdtPackage(content));
|
|
492
|
-
}
|
|
493
|
-
function odtToMarkdown(bytes, options) {
|
|
494
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
495
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
496
|
-
const content = require_odf_odt_read.readOdtContent(pkg);
|
|
497
|
-
if (content.kind !== "wordprocessing") throw new Error("readOdtContent returned a non-wordprocessing ContentDocument");
|
|
498
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
499
|
-
options?.onDocument?.({
|
|
500
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
501
|
-
content
|
|
502
|
-
});
|
|
503
|
-
const text = require_markdown_write.buildMarkdownText(content);
|
|
504
|
-
return require_markdown_text.encodeMarkdownText(text);
|
|
505
|
-
}
|
|
506
|
-
function docxToPptx(bytes, options) {
|
|
507
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
508
|
-
const content = require_ooxml_docx_read.readDocxContent((0, odf_js.decodePackage)(bytes));
|
|
509
|
-
if (content.kind !== "wordprocessing") throw new Error("readDocxContent returned a non-wordprocessing ContentDocument");
|
|
510
|
-
const presentation = require_convert_variant_bridges.wordprocessingToPresentation(content);
|
|
511
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
512
|
-
options?.onDocument?.({
|
|
513
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
514
|
-
content: presentation
|
|
515
|
-
});
|
|
516
|
-
return (0, ooxml_js.encodePackage)(require_edit_pptx_content.buildPptxPackage(presentation));
|
|
517
|
-
}
|
|
518
|
-
function pptxToDocx(bytes, options) {
|
|
519
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
520
|
-
const content = require_ooxml_pptx_read.readPptxContent((0, odf_js.decodePackage)(bytes));
|
|
521
|
-
if (content.kind !== "presentation") throw new Error("readPptxContent returned a non-presentation ContentDocument");
|
|
522
|
-
const wordprocessing = require_convert_variant_bridges.presentationToWordprocessing(content);
|
|
523
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
524
|
-
options?.onDocument?.({
|
|
525
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
526
|
-
content: wordprocessing
|
|
527
|
-
});
|
|
528
|
-
return (0, ooxml_js.encodePackage)(require_edit_docx_content.buildDocxPackage(wordprocessing, { onMathDiagnostic: options?.onMathDiagnostic }));
|
|
529
|
-
}
|
|
530
|
-
function odtToOdp(bytes, options) {
|
|
531
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
532
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
533
|
-
const content = require_odf_odt_read.readOdtContent(pkg);
|
|
534
|
-
if (content.kind !== "wordprocessing") throw new Error("readOdtContent returned a non-wordprocessing ContentDocument");
|
|
535
|
-
const presentation = require_convert_variant_bridges.wordprocessingToPresentation(content);
|
|
536
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
537
|
-
options?.onDocument?.({
|
|
538
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
539
|
-
content: presentation
|
|
540
|
-
});
|
|
541
|
-
return (0, ooxml_js.encodePackage)(require_edit_odp_content.buildOdpPackage(presentation));
|
|
542
|
-
}
|
|
543
|
-
function odpToOdt(bytes, options) {
|
|
544
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
545
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
546
|
-
const content = require_odf_odp_read.readOdpContent(pkg);
|
|
547
|
-
if (content.kind !== "presentation") throw new Error("readOdpContent returned a non-presentation ContentDocument");
|
|
548
|
-
const wordprocessing = require_convert_variant_bridges.presentationToWordprocessing(content);
|
|
549
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
550
|
-
options?.onDocument?.({
|
|
551
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
552
|
-
content: wordprocessing
|
|
553
|
-
});
|
|
554
|
-
return (0, ooxml_js.encodePackage)(require_edit_odt_content.buildOdtPackage(wordprocessing));
|
|
555
|
-
}
|
|
556
|
-
function xlsxToPdf(bytes, options) {
|
|
557
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
558
|
-
const odsBytes = xlsxToOds(bytes, { signal: options?.signal });
|
|
559
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
560
|
-
return odsToPdf(odsBytes, {
|
|
561
|
-
signal: options?.signal,
|
|
562
|
-
onSubstitution: options?.onSubstitution,
|
|
563
|
-
onDocument: options?.onDocument,
|
|
564
|
-
fonts: options?.fonts,
|
|
565
|
-
onFontSubstitution: options?.onFontSubstitution,
|
|
566
|
-
clock: options?.clock
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
function pdfToXlsx(bytes, options) {
|
|
570
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
571
|
-
const odsBytes = pdfToOds(bytes, {
|
|
572
|
-
signal: options?.signal,
|
|
573
|
-
sink: options?.sink
|
|
574
|
-
});
|
|
575
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
576
|
-
return odsToXlsx(odsBytes, {
|
|
577
|
-
signal: options?.signal,
|
|
578
|
-
onDocument: options?.onDocument
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
function xlsxToMarkdown(bytes, options) {
|
|
582
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
583
|
-
const pdfBytes = xlsxToPdf(bytes, {
|
|
584
|
-
signal: options?.signal,
|
|
585
|
-
fonts: options?.fonts,
|
|
586
|
-
onFontSubstitution: options?.onFontSubstitution,
|
|
587
|
-
onSubstitution: options?.onSubstitution,
|
|
588
|
-
clock: options?.clock
|
|
589
|
-
});
|
|
590
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
591
|
-
return pdfToMarkdown(pdfBytes, {
|
|
592
|
-
signal: options?.signal,
|
|
593
|
-
sink: options?.sink,
|
|
594
|
-
onDocument: options?.onDocument
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
function markdownToXlsx(bytes, options) {
|
|
598
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
599
|
-
const pdfBytes = markdownToPdf(bytes, {
|
|
600
|
-
signal: options?.signal,
|
|
601
|
-
fonts: options?.fonts,
|
|
602
|
-
onFontSubstitution: options?.onFontSubstitution,
|
|
603
|
-
onSubstitution: options?.onSubstitution,
|
|
604
|
-
clock: options?.clock,
|
|
605
|
-
images: options?.images
|
|
606
|
-
});
|
|
607
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
608
|
-
return pdfToXlsx(pdfBytes, {
|
|
609
|
-
signal: options?.signal,
|
|
610
|
-
sink: options?.sink,
|
|
611
|
-
onDocument: options?.onDocument
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
var OdmUnresolvedSectionError = class extends Error {
|
|
615
|
-
hrefs;
|
|
616
|
-
constructor(hrefs) {
|
|
617
|
-
super(`odmToPdf: ${hrefs.length} chapter section(s) could not be resolved -- no inline content and no resolveSubDocument result for: ${hrefs.join(", ")}`);
|
|
618
|
-
this.name = "OdmUnresolvedSectionError";
|
|
619
|
-
this.hrefs = hrefs;
|
|
620
|
-
}
|
|
621
|
-
};
|
|
622
|
-
const INLINE_SECTION_MARGIN_PT = 56.69291338582677;
|
|
623
|
-
const INLINE_SECTION_MARGINS = {
|
|
624
|
-
topPt: INLINE_SECTION_MARGIN_PT,
|
|
625
|
-
rightPt: INLINE_SECTION_MARGIN_PT,
|
|
626
|
-
bottomPt: INLINE_SECTION_MARGIN_PT,
|
|
627
|
-
leftPt: INLINE_SECTION_MARGIN_PT
|
|
628
|
-
};
|
|
629
|
-
function inlineOdmSectionToContentSection(section, pkg) {
|
|
630
|
-
const blocks = [];
|
|
631
|
-
for (const node of section.inlineContent ?? []) {
|
|
632
|
-
if (node.type !== "element") continue;
|
|
633
|
-
if (node.tag === "text:p" || node.tag === "text:h") blocks.push((0, odf_js.readOdfParagraph)(node, pkg));
|
|
634
|
-
else if (node.tag === "table:table") blocks.push((0, odf_js.readOdfTable)(node, pkg));
|
|
635
|
-
}
|
|
636
|
-
return {
|
|
637
|
-
pageSize: document_schema_js.PAGE_SIZE_A4,
|
|
638
|
-
margins: INLINE_SECTION_MARGINS,
|
|
639
|
-
blocks
|
|
640
|
-
};
|
|
641
|
-
}
|
|
642
|
-
function withLeadingChapterBreak(section) {
|
|
643
|
-
const pageBreak = { kind: "pageBreak" };
|
|
644
|
-
return {
|
|
645
|
-
...section,
|
|
646
|
-
blocks: [pageBreak, ...section.blocks]
|
|
647
|
-
};
|
|
648
|
-
}
|
|
649
|
-
function odmToPdf(bytes, options) {
|
|
650
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
651
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
652
|
-
const odm = (0, odf_js.readOdm)(pkg);
|
|
653
|
-
const unresolvedHrefs = [];
|
|
654
|
-
const chapterSections = [];
|
|
655
|
-
const sourceFonts = require_fonts_registry.extractSourceFonts({
|
|
656
|
-
kind: "odf",
|
|
657
|
-
package: pkg
|
|
658
|
-
});
|
|
659
|
-
for (const section of odm.sections) {
|
|
660
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
661
|
-
if (section.inlineContent !== void 0) {
|
|
662
|
-
chapterSections.push([inlineOdmSectionToContentSection(section, pkg)]);
|
|
663
|
-
continue;
|
|
664
|
-
}
|
|
665
|
-
const chapterBytes = options?.resolveSubDocument?.(section.href);
|
|
666
|
-
if (chapterBytes === void 0) {
|
|
667
|
-
unresolvedHrefs.push(section.href);
|
|
668
|
-
continue;
|
|
669
|
-
}
|
|
670
|
-
const chapterPkg = (0, odf_js.decodePackage)(chapterBytes);
|
|
671
|
-
sourceFonts.push(...require_fonts_registry.extractSourceFonts({
|
|
672
|
-
kind: "odf",
|
|
673
|
-
package: chapterPkg
|
|
674
|
-
}));
|
|
675
|
-
const chapterContent = require_odf_odt_read.readOdtContent(chapterPkg);
|
|
676
|
-
if (chapterContent.kind !== "wordprocessing") throw new Error("readOdtContent returned a non-wordprocessing ContentDocument");
|
|
677
|
-
chapterSections.push(chapterContent.sections);
|
|
678
|
-
}
|
|
679
|
-
if (unresolvedHrefs.length > 0) throw new OdmUnresolvedSectionError(unresolvedHrefs);
|
|
680
|
-
const combinedSections = [];
|
|
681
|
-
chapterSections.forEach((sections, chapterIndex) => {
|
|
682
|
-
if (chapterIndex === 0) {
|
|
683
|
-
combinedSections.push(...sections);
|
|
684
|
-
return;
|
|
685
|
-
}
|
|
686
|
-
combinedSections.push(...sections.map((section, sectionIndex) => sectionIndex === 0 ? withLeadingChapterBreak(section) : section));
|
|
687
|
-
});
|
|
688
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
689
|
-
const content = {
|
|
690
|
-
kind: "wordprocessing",
|
|
691
|
-
formatVersion: document_schema_js.CONTENT_FORMAT_VERSION,
|
|
692
|
-
metadata: require_model_metadata.resolveMetadataTimestamps((0, odf_js.readOdfMetadata)(pkg), options?.clock),
|
|
693
|
-
sections: combinedSections
|
|
694
|
-
};
|
|
695
|
-
const fonts = (0, pdf_codec.createFontRegistry)({
|
|
696
|
-
sourceFonts,
|
|
697
|
-
fonts: options?.fonts,
|
|
698
|
-
onSubstitution: options?.onFontSubstitution
|
|
699
|
-
});
|
|
700
|
-
const { document: layout, formulas } = require_layout_engine.convertWordprocessingToLayout(content, {
|
|
701
|
-
measurer: (0, pdf_codec.createFontMeasurer)(fonts),
|
|
702
|
-
mathMetricsAt
|
|
703
|
-
});
|
|
704
|
-
return (0, pdf_codec.writePdf)(layout, {
|
|
705
|
-
signal: options?.signal,
|
|
706
|
-
onSubstitution: options?.onSubstitution,
|
|
707
|
-
formulas,
|
|
708
|
-
fonts
|
|
709
|
-
});
|
|
710
|
-
}
|
|
711
|
-
function odbToXlsx(bytes, options) {
|
|
712
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
713
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
714
|
-
const tables = require_odb_read.readOdbTables(pkg, { timeZone: options?.timeZone });
|
|
715
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
716
|
-
const content = require_odb_spreadsheet.odbTablesToSpreadsheetDocument(tables);
|
|
717
|
-
return (0, ooxml_js.encodePackage)((0, ooxml_js.buildXlsxPackage)(content));
|
|
718
|
-
}
|
|
719
|
-
function odbToCsv(bytes, options) {
|
|
720
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
721
|
-
const pkg = (0, odf_js.decodePackage)(bytes);
|
|
722
|
-
const tables = require_odb_read.readOdbTables(pkg, { timeZone: options?.timeZone });
|
|
723
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
724
|
-
return require_odb_csv.buildOdbTableCsv(tables, options?.table);
|
|
725
|
-
}
|
|
726
|
-
function odbReportToDocx(content, options) {
|
|
727
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
728
|
-
return (0, ooxml_js.encodePackage)(require_edit_docx_content.buildDocxPackage(content, { onMathDiagnostic: options?.onMathDiagnostic }));
|
|
729
|
-
}
|
|
730
|
-
function odbReportToOdt(content, options) {
|
|
731
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
732
|
-
return (0, odf_js.encodePackage)(require_edit_odt_content.buildOdtPackage(content));
|
|
733
|
-
}
|
|
734
|
-
function odbReportToPdf(content, options) {
|
|
735
|
-
require_ports_abort.throwIfAborted(options?.signal);
|
|
736
|
-
if (content.kind !== "wordprocessing") throw new Error("odbReportToPdf requires a wordprocessing ContentDocument");
|
|
737
|
-
const fonts = (0, pdf_codec.createFontRegistry)({
|
|
738
|
-
fonts: options?.fonts,
|
|
739
|
-
onSubstitution: options?.onFontSubstitution
|
|
740
|
-
});
|
|
741
|
-
const { document: layout, formulas } = require_layout_engine.convertWordprocessingToLayout(content, {
|
|
742
|
-
measurer: (0, pdf_codec.createFontMeasurer)(fonts),
|
|
743
|
-
mathMetricsAt
|
|
744
|
-
});
|
|
745
|
-
options?.onDocument?.({
|
|
746
|
-
formatVersion: document_schema_js.DOCUMENT_PACKAGE_FORMAT_VERSION,
|
|
747
|
-
content,
|
|
748
|
-
layout
|
|
749
|
-
});
|
|
750
|
-
return (0, pdf_codec.writePdf)(layout, {
|
|
751
|
-
signal: options?.signal,
|
|
752
|
-
onSubstitution: options?.onSubstitution,
|
|
753
|
-
formulas,
|
|
754
|
-
fonts
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
//#endregion
|
|
758
|
-
exports.OdmUnresolvedSectionError = OdmUnresolvedSectionError;
|
|
759
|
-
exports.docxToMarkdown = docxToMarkdown;
|
|
760
|
-
exports.docxToOdt = docxToOdt;
|
|
761
|
-
exports.docxToPdf = docxToPdf;
|
|
762
|
-
exports.docxToPptx = docxToPptx;
|
|
763
|
-
exports.inlineOdmSectionToContentSection = inlineOdmSectionToContentSection;
|
|
764
|
-
exports.markdownToDocx = markdownToDocx;
|
|
765
|
-
exports.markdownToOdt = markdownToOdt;
|
|
766
|
-
exports.markdownToPdf = markdownToPdf;
|
|
767
|
-
exports.markdownToXlsx = markdownToXlsx;
|
|
768
|
-
exports.odbReportToDocx = odbReportToDocx;
|
|
769
|
-
exports.odbReportToOdt = odbReportToOdt;
|
|
770
|
-
exports.odbReportToPdf = odbReportToPdf;
|
|
771
|
-
exports.odbToCsv = odbToCsv;
|
|
772
|
-
exports.odbToXlsx = odbToXlsx;
|
|
773
|
-
exports.odfToPdf = odfToPdf;
|
|
774
|
-
exports.odgToPdf = odgToPdf;
|
|
775
|
-
exports.odmToPdf = odmToPdf;
|
|
776
|
-
exports.odpToOdt = odpToOdt;
|
|
777
|
-
exports.odpToPdf = odpToPdf;
|
|
778
|
-
exports.odpToPptx = odpToPptx;
|
|
779
|
-
exports.odsToPdf = odsToPdf;
|
|
780
|
-
exports.odsToXlsx = odsToXlsx;
|
|
781
|
-
exports.odtToDocx = odtToDocx;
|
|
782
|
-
exports.odtToMarkdown = odtToMarkdown;
|
|
783
|
-
exports.odtToOdp = odtToOdp;
|
|
784
|
-
exports.odtToPdf = odtToPdf;
|
|
785
|
-
exports.pdfToDocx = pdfToDocx;
|
|
786
|
-
exports.pdfToMarkdown = pdfToMarkdown;
|
|
787
|
-
exports.pdfToOdg = pdfToOdg;
|
|
788
|
-
exports.pdfToOdp = pdfToOdp;
|
|
789
|
-
exports.pdfToOds = pdfToOds;
|
|
790
|
-
exports.pdfToOdt = pdfToOdt;
|
|
791
|
-
exports.pdfToPptx = pdfToPptx;
|
|
792
|
-
exports.pdfToXlsx = pdfToXlsx;
|
|
793
|
-
exports.pptxToDocx = pptxToDocx;
|
|
794
|
-
exports.pptxToOdp = pptxToOdp;
|
|
795
|
-
exports.pptxToPdf = pptxToPdf;
|
|
796
|
-
exports.xlsxToMarkdown = xlsxToMarkdown;
|
|
797
|
-
exports.xlsxToOds = xlsxToOds;
|
|
798
|
-
exports.xlsxToPdf = xlsxToPdf;
|
|
2
|
+
const require_convert = require("../convert-BO_4tCwz.cjs");
|
|
3
|
+
exports.OdmUnresolvedSectionError = require_convert.OdmUnresolvedSectionError;
|
|
4
|
+
exports.docxToMarkdown = require_convert.docxToMarkdown;
|
|
5
|
+
exports.docxToOdt = require_convert.docxToOdt;
|
|
6
|
+
exports.docxToPdf = require_convert.docxToPdf;
|
|
7
|
+
exports.docxToPptx = require_convert.docxToPptx;
|
|
8
|
+
exports.inlineOdmSectionToContentSection = require_convert.inlineOdmSectionToContentSection;
|
|
9
|
+
exports.markdownToDocx = require_convert.markdownToDocx;
|
|
10
|
+
exports.markdownToOdt = require_convert.markdownToOdt;
|
|
11
|
+
exports.markdownToPdf = require_convert.markdownToPdf;
|
|
12
|
+
exports.markdownToXlsx = require_convert.markdownToXlsx;
|
|
13
|
+
exports.odbReportToDocx = require_convert.odbReportToDocx;
|
|
14
|
+
exports.odbReportToOdt = require_convert.odbReportToOdt;
|
|
15
|
+
exports.odbReportToPdf = require_convert.odbReportToPdf;
|
|
16
|
+
exports.odbToCsv = require_convert.odbToCsv;
|
|
17
|
+
exports.odbToXlsx = require_convert.odbToXlsx;
|
|
18
|
+
exports.odfToPdf = require_convert.odfToPdf;
|
|
19
|
+
exports.odgToPdf = require_convert.odgToPdf;
|
|
20
|
+
exports.odmToPdf = require_convert.odmToPdf;
|
|
21
|
+
exports.odpToOdt = require_convert.odpToOdt;
|
|
22
|
+
exports.odpToPdf = require_convert.odpToPdf;
|
|
23
|
+
exports.odpToPptx = require_convert.odpToPptx;
|
|
24
|
+
exports.odsToPdf = require_convert.odsToPdf;
|
|
25
|
+
exports.odsToXlsx = require_convert.odsToXlsx;
|
|
26
|
+
exports.odtToDocx = require_convert.odtToDocx;
|
|
27
|
+
exports.odtToMarkdown = require_convert.odtToMarkdown;
|
|
28
|
+
exports.odtToOdp = require_convert.odtToOdp;
|
|
29
|
+
exports.odtToPdf = require_convert.odtToPdf;
|
|
30
|
+
exports.pdfToDocx = require_convert.pdfToDocx;
|
|
31
|
+
exports.pdfToMarkdown = require_convert.pdfToMarkdown;
|
|
32
|
+
exports.pdfToOdg = require_convert.pdfToOdg;
|
|
33
|
+
exports.pdfToOdp = require_convert.pdfToOdp;
|
|
34
|
+
exports.pdfToOds = require_convert.pdfToOds;
|
|
35
|
+
exports.pdfToOdt = require_convert.pdfToOdt;
|
|
36
|
+
exports.pdfToPptx = require_convert.pdfToPptx;
|
|
37
|
+
exports.pdfToXlsx = require_convert.pdfToXlsx;
|
|
38
|
+
exports.pptxToDocx = require_convert.pptxToDocx;
|
|
39
|
+
exports.pptxToOdp = require_convert.pptxToOdp;
|
|
40
|
+
exports.pptxToPdf = require_convert.pptxToPdf;
|
|
41
|
+
exports.xlsxToMarkdown = require_convert.xlsxToMarkdown;
|
|
42
|
+
exports.xlsxToOds = require_convert.xlsxToOds;
|
|
43
|
+
exports.xlsxToPdf = require_convert.xlsxToPdf;
|