hwpx2f 0.0.0-stage → 0.1.0

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.
Files changed (73) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +124 -2
  3. package/THIRD_PARTY_NOTICES.md +75 -0
  4. package/dist/cli.js +76 -0
  5. package/dist/index.d.ts +11 -0
  6. package/dist/index.js +32 -0
  7. package/dist/lib/chunk-36PRCVPO.js +131 -0
  8. package/dist/lib/chunk-45BAITEX.js +9749 -0
  9. package/dist/lib/chunk-4NRZ6MWV.js +133 -0
  10. package/dist/lib/chunk-6CFXTS7A.js +11971 -0
  11. package/dist/lib/chunk-6CPCDYOD.js +104 -0
  12. package/dist/lib/chunk-B6MTS4XP.js +313 -0
  13. package/dist/lib/chunk-BX24E7EG.js +1427 -0
  14. package/dist/lib/chunk-C64I2SU4.js +82 -0
  15. package/dist/lib/chunk-CEKQASS3.js +258 -0
  16. package/dist/lib/chunk-CMWTKXM2.js +204 -0
  17. package/dist/lib/chunk-E6KSYRHG.js +2189 -0
  18. package/dist/lib/chunk-IZDWVMTV.js +28786 -0
  19. package/dist/lib/chunk-JK6YR5NT.js +4276 -0
  20. package/dist/lib/chunk-O6FSHPNE.js +111 -0
  21. package/dist/lib/chunk-OYXOOP2U.js +199 -0
  22. package/dist/lib/chunk-PM4KBWF4.js +49 -0
  23. package/dist/lib/chunk-R5F3GHLO.js +290 -0
  24. package/dist/lib/chunk-R76DWHJR.js +1596 -0
  25. package/dist/lib/chunk-RFS3RTSR.js +6876 -0
  26. package/dist/lib/chunk-RYJRNK5Z.js +47 -0
  27. package/dist/lib/chunk-UOXPGSFH.js +43 -0
  28. package/dist/lib/chunk-UZH4UBMX.js +44 -0
  29. package/dist/lib/chunk-VZTE4GKI.js +52 -0
  30. package/dist/lib/chunk-WEOKEO6L.js +35291 -0
  31. package/dist/lib/detect-4XZNNYZA-O7IPA4XQ.js +32 -0
  32. package/dist/lib/dist-HVSOXNCJ.js +263 -0
  33. package/dist/lib/formula-LC62GV4D-K3VFC5GV.js +1173 -0
  34. package/dist/lib/generator-KYTTL4OS-TRAQ66QE.js +14 -0
  35. package/dist/lib/hancom-EM62ZVDM-WZKVI7XB.js +91 -0
  36. package/dist/lib/image-ocr-ZUZQXLYS-U66LBMRA.js +293 -0
  37. package/dist/lib/page-images-VCIFZAXK-KJLWQDRH.js +95 -0
  38. package/dist/lib/page-range-7R3JU6SQ-MDDQRZVK.js +10 -0
  39. package/dist/lib/parser-JQNH5QMM-HFFI4HYK.js +4310 -0
  40. package/dist/lib/pdf-ocr-C3MBR6J2-J3UGJKWT.js +46 -0
  41. package/dist/lib/to-hwpx-JUT2SOTT-MOPPK6OW.js +17 -0
  42. package/dist/notices/core-util-is/LICENSE +19 -0
  43. package/dist/notices/entities/LICENSE +11 -0
  44. package/dist/notices/immediate/LICENSE.txt +20 -0
  45. package/dist/notices/inherits/LICENSE +16 -0
  46. package/dist/notices/jszip/LICENSE.markdown +651 -0
  47. package/dist/notices/kordoc/LICENSE +21 -0
  48. package/dist/notices/kordoc/NOTICE +376 -0
  49. package/dist/notices/kordoc/THIRD_PARTY/apache-2.0.LICENSE +201 -0
  50. package/dist/notices/kordoc/THIRD_PARTY/claw-hwp.LICENSE +21 -0
  51. package/dist/notices/kordoc/THIRD_PARTY/hayro-pdf.txt +361 -0
  52. package/dist/notices/kordoc/THIRD_PARTY/hml-equation-parser.LICENSE +201 -0
  53. package/dist/notices/kordoc/THIRD_PARTY/hml-equation-parser.txt +35 -0
  54. package/dist/notices/kordoc/THIRD_PARTY/korean-report-hwpx.LICENSE +21 -0
  55. package/dist/notices/kordoc/THIRD_PARTY/memchr.LICENSE +21 -0
  56. package/dist/notices/kordoc/THIRD_PARTY/opendataloader-pdf.txt +32 -0
  57. package/dist/notices/kordoc/THIRD_PARTY/pix2text.txt +17 -0
  58. package/dist/notices/kordoc/THIRD_PARTY/quick-xml.LICENSE +23 -0
  59. package/dist/notices/kordoc/THIRD_PARTY/rhwp-forms.txt +35 -0
  60. package/dist/notices/lie/license.md +7 -0
  61. package/dist/notices/linkify-it/LICENSE +22 -0
  62. package/dist/notices/markdown-it/LICENSE +22 -0
  63. package/dist/notices/mdurl/LICENSE +45 -0
  64. package/dist/notices/pako/LICENSE +21 -0
  65. package/dist/notices/process-nextick-args/license.md +19 -0
  66. package/dist/notices/punycode.js/LICENSE-MIT.txt +20 -0
  67. package/dist/notices/readable-stream/LICENSE +47 -0
  68. package/dist/notices/safe-buffer/LICENSE +21 -0
  69. package/dist/notices/setimmediate/LICENSE.txt +20 -0
  70. package/dist/notices/string_decoder/LICENSE +48 -0
  71. package/dist/notices/uc.micro/LICENSE.txt +20 -0
  72. package/dist/notices/util-deprecate/LICENSE +24 -0
  73. package/package.json +66 -4
@@ -0,0 +1,32 @@
1
+ import { createRequire as __hwpx2fRequire } from 'node:module'; const require = __hwpx2fRequire(import.meta.url);
2
+ import {
3
+ detectFormat,
4
+ detectOle2Format,
5
+ detectZipFormat,
6
+ imageFormat,
7
+ isHwp3File,
8
+ isHwpmlFile,
9
+ isHwpxFile,
10
+ isImageFile,
11
+ isOldHwpFile,
12
+ isPdfFile,
13
+ isZipFile,
14
+ unsupportedImageName
15
+ } from "./chunk-4NRZ6MWV.js";
16
+ import "./chunk-CMWTKXM2.js";
17
+ import "./chunk-45BAITEX.js";
18
+ import "./chunk-RYJRNK5Z.js";
19
+ export {
20
+ detectFormat,
21
+ detectOle2Format,
22
+ detectZipFormat,
23
+ imageFormat,
24
+ isHwp3File,
25
+ isHwpmlFile,
26
+ isHwpxFile,
27
+ isImageFile,
28
+ isOldHwpFile,
29
+ isPdfFile,
30
+ isZipFile,
31
+ unsupportedImageName
32
+ };
@@ -0,0 +1,263 @@
1
+ import { createRequire as __hwpx2fRequire } from 'node:module'; const require = __hwpx2fRequire(import.meta.url);
2
+ import {
3
+ BUILTIN_TEMPLATES,
4
+ DEFAULT_REDACT_RULES,
5
+ HwpxSession,
6
+ addMemoHwpx,
7
+ applyMeasuredLayout,
8
+ blocksToChunks,
9
+ blocksToPdf,
10
+ buildAgencyPack,
11
+ chooseTableRepresentation,
12
+ classifyTable,
13
+ classifyTableTree,
14
+ collectTableBlocks,
15
+ compare,
16
+ diffBlocks,
17
+ extractClickHereFields,
18
+ extractRenderedRegions,
19
+ extractTables,
20
+ fillForm,
21
+ fillFormFields,
22
+ fillHwpx,
23
+ formatGateFinding,
24
+ getPiiModelsDir,
25
+ gongmunGate,
26
+ gongmunLintWarnings,
27
+ hwpxToHwp,
28
+ hwpxToProfile,
29
+ isKnownFont,
30
+ lintBlocks,
31
+ lintBudgetText,
32
+ lintGongmunText,
33
+ lintLogicText,
34
+ lintMuncheText,
35
+ lintSlopText,
36
+ loadAgencyPack,
37
+ loadPiiModel,
38
+ logicLintWarnings,
39
+ markdownToPdf,
40
+ measurePdfLayout,
41
+ muncheLintWarnings,
42
+ openHwpxDocument,
43
+ packRoleWarnings,
44
+ packSummary,
45
+ packTemplate,
46
+ parse,
47
+ parseDocx,
48
+ parseHwp,
49
+ parseHwp3,
50
+ parseHwpml,
51
+ parseHwpx,
52
+ parseImage,
53
+ parsePdf,
54
+ parsePptx,
55
+ parseXls,
56
+ parseXlsx,
57
+ patchHwp,
58
+ patchHwpx,
59
+ patchHwpxBlocks,
60
+ placeSealHwpx,
61
+ readBuiltinTemplate,
62
+ readBuiltinTemplateSample,
63
+ redactMarkdown,
64
+ redactText,
65
+ renderDocument,
66
+ renderDocumentToScene,
67
+ renderHtml,
68
+ renderHwp5Pages,
69
+ renderSceneToHtml,
70
+ resolveBuiltinTemplate,
71
+ resolvePackKind,
72
+ runLintSuite,
73
+ slopLintWarnings,
74
+ unknownFontWarnings,
75
+ usesGaejosikMunche,
76
+ usesLogicStructure,
77
+ validateHwpx
78
+ } from "./chunk-WEOKEO6L.js";
79
+ import {
80
+ AGENCY_COMMON_NAME,
81
+ PRESET_ALIAS,
82
+ SPACE_EM_FIXED,
83
+ SPACE_EM_FONT,
84
+ ValueCursor,
85
+ agencyNames,
86
+ agencyStyle,
87
+ applySplices,
88
+ buildParagraphSplices,
89
+ buildRangeSplices,
90
+ charWidthEm1000,
91
+ extractFormFields,
92
+ extractFormSchema,
93
+ fillWithUniqueGuard,
94
+ fitRatioForFewerLines,
95
+ formatFillValue,
96
+ incompatibleGongmunWarnings,
97
+ inferFieldType,
98
+ isLabelCell,
99
+ markdownToHwpx,
100
+ measureTextWidth,
101
+ normalizeGongmunPreset,
102
+ placeTotalRow,
103
+ renderHwpxToSvg,
104
+ scanSectionXml,
105
+ simulateWrap,
106
+ simulateWrapKeepWord
107
+ } from "./chunk-IZDWVMTV.js";
108
+ import "./chunk-36PRCVPO.js";
109
+ import {
110
+ convertToHwpx,
111
+ hwpToHwpx
112
+ } from "./chunk-RFS3RTSR.js";
113
+ import "./chunk-BX24E7EG.js";
114
+ import "./chunk-6CPCDYOD.js";
115
+ import {
116
+ detectFormat,
117
+ detectOle2Format,
118
+ detectZipFormat,
119
+ isHwpxFile,
120
+ isOldHwpFile,
121
+ isPdfFile,
122
+ isZipFile
123
+ } from "./chunk-4NRZ6MWV.js";
124
+ import "./chunk-CMWTKXM2.js";
125
+ import "./chunk-45BAITEX.js";
126
+ import "./chunk-C64I2SU4.js";
127
+ import "./chunk-UOXPGSFH.js";
128
+ import {
129
+ blocksToPages
130
+ } from "./chunk-E6KSYRHG.js";
131
+ import "./chunk-VZTE4GKI.js";
132
+ import "./chunk-UZH4UBMX.js";
133
+ import "./chunk-CEKQASS3.js";
134
+ import "./chunk-O6FSHPNE.js";
135
+ import {
136
+ blocksToMarkdown,
137
+ flattenLayoutTables,
138
+ hasStructuredCellContent
139
+ } from "./chunk-R76DWHJR.js";
140
+ import "./chunk-B6MTS4XP.js";
141
+ import "./chunk-PM4KBWF4.js";
142
+ import {
143
+ VERSION
144
+ } from "./chunk-OYXOOP2U.js";
145
+ import "./chunk-RYJRNK5Z.js";
146
+ export {
147
+ AGENCY_COMMON_NAME,
148
+ BUILTIN_TEMPLATES,
149
+ DEFAULT_REDACT_RULES,
150
+ HwpxSession,
151
+ PRESET_ALIAS,
152
+ SPACE_EM_FIXED,
153
+ SPACE_EM_FONT,
154
+ VERSION,
155
+ ValueCursor,
156
+ addMemoHwpx,
157
+ agencyNames,
158
+ agencyStyle,
159
+ applyMeasuredLayout,
160
+ applySplices,
161
+ blocksToChunks,
162
+ blocksToMarkdown,
163
+ blocksToPages,
164
+ blocksToPdf,
165
+ buildAgencyPack,
166
+ buildParagraphSplices,
167
+ buildRangeSplices,
168
+ charWidthEm1000,
169
+ chooseTableRepresentation,
170
+ classifyTable,
171
+ classifyTableTree,
172
+ collectTableBlocks,
173
+ compare,
174
+ convertToHwpx,
175
+ detectFormat,
176
+ detectOle2Format,
177
+ detectZipFormat,
178
+ diffBlocks,
179
+ extractClickHereFields,
180
+ extractFormFields,
181
+ extractFormSchema,
182
+ extractRenderedRegions,
183
+ extractTables,
184
+ fillForm,
185
+ fillFormFields,
186
+ fillHwpx,
187
+ fillWithUniqueGuard,
188
+ fitRatioForFewerLines,
189
+ flattenLayoutTables,
190
+ formatFillValue,
191
+ formatGateFinding,
192
+ getPiiModelsDir,
193
+ gongmunGate,
194
+ gongmunLintWarnings,
195
+ hasStructuredCellContent,
196
+ hwpToHwpx,
197
+ hwpxToHwp,
198
+ hwpxToProfile,
199
+ incompatibleGongmunWarnings,
200
+ inferFieldType,
201
+ isHwpxFile,
202
+ isKnownFont,
203
+ isLabelCell,
204
+ isOldHwpFile,
205
+ isPdfFile,
206
+ isZipFile,
207
+ lintBlocks,
208
+ lintBudgetText,
209
+ lintGongmunText,
210
+ lintLogicText,
211
+ lintMuncheText,
212
+ lintSlopText,
213
+ loadAgencyPack,
214
+ loadPiiModel,
215
+ logicLintWarnings,
216
+ markdownToHwpx,
217
+ markdownToPdf,
218
+ measurePdfLayout,
219
+ measureTextWidth,
220
+ muncheLintWarnings,
221
+ normalizeGongmunPreset,
222
+ openHwpxDocument,
223
+ packRoleWarnings,
224
+ packSummary,
225
+ packTemplate,
226
+ parse,
227
+ parseDocx,
228
+ parseHwp,
229
+ parseHwp3,
230
+ parseHwpml,
231
+ parseHwpx,
232
+ parseImage,
233
+ parsePdf,
234
+ parsePptx,
235
+ parseXls,
236
+ parseXlsx,
237
+ patchHwp,
238
+ patchHwpx,
239
+ patchHwpxBlocks,
240
+ placeSealHwpx,
241
+ placeTotalRow,
242
+ readBuiltinTemplate,
243
+ readBuiltinTemplateSample,
244
+ redactMarkdown,
245
+ redactText,
246
+ renderDocument,
247
+ renderDocumentToScene,
248
+ renderHtml,
249
+ renderHwp5Pages,
250
+ renderHwpxToSvg,
251
+ renderSceneToHtml,
252
+ resolveBuiltinTemplate,
253
+ resolvePackKind,
254
+ runLintSuite,
255
+ scanSectionXml,
256
+ simulateWrap,
257
+ simulateWrapKeepWord,
258
+ slopLintWarnings,
259
+ unknownFontWarnings,
260
+ usesGaejosikMunche,
261
+ usesLogicStructure,
262
+ validateHwpx
263
+ };