abstract-document 6.9.4 → 6.9.6

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 (397) hide show
  1. package/CHANGELOG.md +180 -152
  2. package/LICENSE +21 -21
  3. package/README.md +45 -45
  4. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/group.js +218 -218
  5. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/header-and-footer.js +69 -69
  6. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/hello-arial-font.js +51 -51
  7. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/hello.js +51 -51
  8. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/letter-dimensions.js +51 -51
  9. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/mixed-hyperlink-and-textrun.js +115 -115
  10. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/mixed-textrun-and-images.js +169 -169
  11. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/multiple-images.js +141 -141
  12. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/multiple-tables.js +467 -467
  13. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/multiple-textrun-with-center-alignment.js +97 -97
  14. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/multiple-textrun-with-end-alignment.js +97 -97
  15. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/multiple-textrun-with-start-alignment-that-linebreaks.js +96 -96
  16. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/multiple-textrun-with-start-alignment.js +96 -96
  17. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/page-numbering.js +102 -102
  18. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/page-orientation-landscape.js +51 -51
  19. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/page-orientation-portrait.js +51 -51
  20. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/simple-table-colSpan-and-rowSpan.js +498 -498
  21. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/simple-table-without-rows.js +20 -20
  22. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/simple-table.js +167 -167
  23. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-hyperlink.js +70 -70
  24. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-image.js +97 -97
  25. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun-with-center-alignment-that-linebreaks.js +68 -68
  26. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun-with-center-alignment.js +68 -68
  27. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun-with-end-alignment-that-linebreaks.js +68 -68
  28. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun-with-end-alignment.js +68 -68
  29. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun-with-start-alignment-that-linebreaks.js +68 -68
  30. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun-with-start-alignment.js +68 -68
  31. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun.js +68 -68
  32. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/toc-separator.js +48 -48
  33. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/world.js +51 -51
  34. package/lib/abstract-document-exporters/__tests__/{docx2/test-defs/single-image-png.d.ts → pdf/test-defs/simple-table-minimal-row-height.d.ts} +1 -1
  35. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-minimal-row-height.d.ts.map +1 -0
  36. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-minimal-row-height.js +584 -0
  37. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-minimal-row-height.js.map +1 -0
  38. package/lib/abstract-document-exporters/pdf/measure.d.ts.map +1 -1
  39. package/lib/abstract-document-exporters/pdf/measure.js +31 -2
  40. package/lib/abstract-document-exporters/pdf/measure.js.map +1 -1
  41. package/package.json +3 -3
  42. package/src/abstract-document/__tests__/hello-world-abstract-doc.ts +245 -245
  43. package/src/abstract-document/__tests__/markdown/export-test-def.ts +10 -10
  44. package/src/abstract-document/__tests__/markdown/export.test.tsx +15 -15
  45. package/src/abstract-document/__tests__/markdown/test-defs/markdown-bold-italic.tsx +31 -31
  46. package/src/abstract-document/__tests__/markdown/test-defs/markdown-bold.tsx +31 -31
  47. package/src/abstract-document/__tests__/markdown/test-defs/markdown-empty-keepTogether.tsx +54 -54
  48. package/src/abstract-document/__tests__/markdown/test-defs/markdown-header.tsx +38 -38
  49. package/src/abstract-document/__tests__/markdown/test-defs/markdown-italic.tsx +31 -31
  50. package/src/abstract-document/__tests__/markdown/test-defs/markdown-keepTogether.tsx +61 -61
  51. package/src/abstract-document/__tests__/markdown/test-defs/markdown-subscript.tsx +45 -45
  52. package/src/abstract-document/__tests__/markdown/test-defs/markdown-superscript.tsx +38 -38
  53. package/src/abstract-document/__tests__/model-builder._test.ts +48 -48
  54. package/src/abstract-document/abstract-doc.ts +19 -19
  55. package/src/abstract-document/atoms/atom.ts +14 -14
  56. package/src/abstract-document/atoms/hyper-link.ts +27 -27
  57. package/src/abstract-document/atoms/image.ts +21 -21
  58. package/src/abstract-document/atoms/link-target.ts +15 -15
  59. package/src/abstract-document/atoms/text-field.ts +36 -36
  60. package/src/abstract-document/atoms/text-run.ts +25 -25
  61. package/src/abstract-document/atoms/toc-separator.ts +18 -18
  62. package/src/abstract-document/default-styles.ts +145 -145
  63. package/src/abstract-document/index.ts +89 -89
  64. package/src/abstract-document/markdown/markdown.ts +142 -142
  65. package/src/abstract-document/markdown/types.ts +78 -78
  66. package/src/abstract-document/numberings/numbering-definition.ts +17 -17
  67. package/src/abstract-document/numberings/numbering-format.ts +7 -7
  68. package/src/abstract-document/numberings/numbering-level-definition.ts +42 -42
  69. package/src/abstract-document/numberings/numbering.ts +3 -3
  70. package/src/abstract-document/page/master-page.ts +23 -23
  71. package/src/abstract-document/page/section.ts +27 -27
  72. package/src/abstract-document/primitives/font.ts +37 -37
  73. package/src/abstract-document/primitives/image-resource.ts +27 -27
  74. package/src/abstract-document/primitives/layout-foundation-color.ts +37 -37
  75. package/src/abstract-document/primitives/layout-foundation.ts +37 -37
  76. package/src/abstract-document/primitives/length.ts +11 -11
  77. package/src/abstract-document/primitives/point.ts +11 -11
  78. package/src/abstract-document/primitives/rect.ts +15 -15
  79. package/src/abstract-document/primitives/size.ts +13 -13
  80. package/src/abstract-document/resources.ts +101 -101
  81. package/src/abstract-document/section-elements/group.ts +28 -28
  82. package/src/abstract-document/section-elements/page-break.ts +14 -14
  83. package/src/abstract-document/section-elements/paragraph-numbering.ts +6 -6
  84. package/src/abstract-document/section-elements/paragraph.ts +32 -32
  85. package/src/abstract-document/section-elements/section-element.ts +17 -17
  86. package/src/abstract-document/section-elements/table.ts +34 -34
  87. package/src/abstract-document/styles/group-style.ts +30 -30
  88. package/src/abstract-document/styles/page-style.ts +76 -76
  89. package/src/abstract-document/styles/paragraph-style.ts +49 -49
  90. package/src/abstract-document/styles/position.ts +8 -8
  91. package/src/abstract-document/styles/style-key.ts +5 -5
  92. package/src/abstract-document/styles/style.ts +44 -44
  93. package/src/abstract-document/styles/table-cell-style.ts +59 -59
  94. package/src/abstract-document/styles/table-style.ts +46 -46
  95. package/src/abstract-document/styles/text-style.ts +77 -77
  96. package/src/abstract-document/table/table-cell.ts +31 -31
  97. package/src/abstract-document/table/table-row.ts +14 -14
  98. package/src/abstract-document/types.ts +3 -3
  99. package/src/abstract-document-exporters/__tests__/docx2/export-test-def.ts +10 -10
  100. package/src/abstract-document-exporters/__tests__/docx2/export.test.tsx +67 -67
  101. package/src/abstract-document-exporters/__tests__/docx2/test-defs/group.tsx +267 -267
  102. package/src/abstract-document-exporters/__tests__/docx2/test-defs/header-and-footer.tsx +110 -110
  103. package/src/abstract-document-exporters/__tests__/docx2/test-defs/hello-arial-font.tsx +71 -71
  104. package/src/abstract-document-exporters/__tests__/docx2/test-defs/hello.tsx +70 -70
  105. package/src/abstract-document-exporters/__tests__/docx2/test-defs/letter-dimensions.tsx +74 -74
  106. package/src/abstract-document-exporters/__tests__/docx2/test-defs/mixed-hyperlink-and-textrun.tsx +137 -137
  107. package/src/abstract-document-exporters/__tests__/docx2/test-defs/mixed-textrun-and-images.tsx +217 -217
  108. package/src/abstract-document-exporters/__tests__/docx2/test-defs/multiple-images.tsx +187 -187
  109. package/src/abstract-document-exporters/__tests__/docx2/test-defs/multiple-tables.tsx +553 -553
  110. package/src/abstract-document-exporters/__tests__/docx2/test-defs/multiple-textrun-with-center-alignment.tsx +119 -119
  111. package/src/abstract-document-exporters/__tests__/docx2/test-defs/multiple-textrun-with-end-alignment.tsx +119 -119
  112. package/src/abstract-document-exporters/__tests__/docx2/test-defs/multiple-textrun-with-start-alignment-that-linebreaks.tsx +121 -121
  113. package/src/abstract-document-exporters/__tests__/docx2/test-defs/multiple-textrun-with-start-alignment.tsx +118 -118
  114. package/src/abstract-document-exporters/__tests__/docx2/test-defs/page-numbering.tsx +123 -123
  115. package/src/abstract-document-exporters/__tests__/docx2/test-defs/page-orientation-landscape.tsx +76 -76
  116. package/src/abstract-document-exporters/__tests__/docx2/test-defs/page-orientation-portrait.tsx +76 -76
  117. package/src/abstract-document-exporters/__tests__/docx2/test-defs/simple-table-colSpan-and-rowSpan.tsx +587 -587
  118. package/src/abstract-document-exporters/__tests__/docx2/test-defs/simple-table-without-rows.tsx +45 -45
  119. package/src/abstract-document-exporters/__tests__/docx2/test-defs/simple-table.tsx +210 -210
  120. package/src/abstract-document-exporters/__tests__/docx2/test-defs/single-hyperlink.tsx +89 -89
  121. package/src/abstract-document-exporters/__tests__/docx2/test-defs/single-image.tsx +142 -142
  122. package/src/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun-with-center-alignment-that-linebreaks.tsx +88 -88
  123. package/src/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun-with-center-alignment.tsx +88 -88
  124. package/src/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun-with-end-alignment-that-linebreaks.tsx +88 -88
  125. package/src/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun-with-end-alignment.tsx +88 -88
  126. package/src/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun-with-start-alignment-that-linebreaks.tsx +88 -88
  127. package/src/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun-with-start-alignment.tsx +88 -88
  128. package/src/abstract-document-exporters/__tests__/docx2/test-defs/single-textrun.tsx +87 -87
  129. package/src/abstract-document-exporters/__tests__/docx2/test-defs/toc-separator.tsx +67 -67
  130. package/src/abstract-document-exporters/__tests__/docx2/test-defs/world.tsx +70 -70
  131. package/src/abstract-document-exporters/__tests__/docx2/tmp/Group.docx +0 -0
  132. package/src/abstract-document-exporters/__tests__/docx2/tmp/Header and footer.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Header → footer.docx +0 -0
  133. package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed hyperlink and textrun.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed hyperlink → textrun.docx +0 -0
  134. package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed textrun and images.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed textrun → images.docx +0 -0
  135. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple images.docx +0 -0
  136. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple tables.docx +0 -0
  137. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Center alignment.docx +0 -0
  138. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with End alignment.docx +0 -0
  139. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Start alignment that linebreaks.docx +0 -0
  140. package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Start alignment.docx +0 -0
  141. package/src/abstract-document-exporters/__tests__/docx2/tmp/Page numbering.docx +0 -0
  142. package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table colSpan and rowSpan.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table colSpan → rowSpan.docx +0 -0
  143. package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table without rows.docx +0 -0
  144. package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table.docx +0 -0
  145. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single hyperlink.docx +0 -0
  146. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single image.docx +0 -0
  147. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Center alignment that linebreaks.docx +0 -0
  148. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Center alignment.docx +0 -0
  149. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment that linebreaks.docx +0 -0
  150. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment.docx +0 -0
  151. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment that linebreaks.docx +0 -0
  152. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment.docx +0 -0
  153. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun.docx +0 -0
  154. package/src/abstract-document-exporters/__tests__/docx2/tmp/Table of content separator.docx +0 -0
  155. package/src/abstract-document-exporters/__tests__/docx2/tmp/hello with Arial font.docx +0 -0
  156. package/src/abstract-document-exporters/__tests__/docx2/tmp/hello.docx +0 -0
  157. package/src/abstract-document-exporters/__tests__/docx2/tmp/letter-dimensions.docx +0 -0
  158. package/src/abstract-document-exporters/__tests__/docx2/tmp/page-orientation-landscape.docx +0 -0
  159. package/src/abstract-document-exporters/__tests__/docx2/tmp/page-orientation-portrait.docx +0 -0
  160. package/src/abstract-document-exporters/__tests__/docx2/tmp/tocSeparator.docx +0 -0
  161. package/src/abstract-document-exporters/__tests__/docx2/tmp/world.docx +0 -0
  162. package/src/abstract-document-exporters/__tests__/pdf/export-test-def.ts +10 -10
  163. package/src/abstract-document-exporters/__tests__/pdf/export.test.tsx +46 -46
  164. package/src/abstract-document-exporters/__tests__/pdf/test-defs/absolute-position-group.tsx +82 -82
  165. package/src/abstract-document-exporters/__tests__/pdf/test-defs/absolute-position-header-and-footer.tsx +196 -196
  166. package/src/abstract-document-exporters/__tests__/pdf/test-defs/absolute-position-paragraph.tsx +56 -56
  167. package/src/abstract-document-exporters/__tests__/pdf/test-defs/absolute-position-section-in-group.tsx +87 -87
  168. package/src/abstract-document-exporters/__tests__/pdf/test-defs/absolute-position-section-in-table.tsx +140 -140
  169. package/src/abstract-document-exporters/__tests__/pdf/test-defs/absolute-position-table.tsx +112 -112
  170. package/src/abstract-document-exporters/__tests__/pdf/test-defs/date.tsx +57 -57
  171. package/src/abstract-document-exporters/__tests__/pdf/test-defs/group-no-keep-together.tsx +1271 -1271
  172. package/src/abstract-document-exporters/__tests__/pdf/test-defs/group-paragraphs.tsx +1275 -1275
  173. package/src/abstract-document-exporters/__tests__/pdf/test-defs/group-tables.tsx +1298 -1298
  174. package/src/abstract-document-exporters/__tests__/pdf/test-defs/group-too-big-for-one-page.tsx +272 -272
  175. package/src/abstract-document-exporters/__tests__/pdf/test-defs/header-and-footer.tsx +153 -153
  176. package/src/abstract-document-exporters/__tests__/pdf/test-defs/hello-with-different-font.tsx +54 -54
  177. package/src/abstract-document-exporters/__tests__/pdf/test-defs/hello.tsx +50 -50
  178. package/src/abstract-document-exporters/__tests__/pdf/test-defs/hyperlink-intenal-link-target.tsx +787 -787
  179. package/src/abstract-document-exporters/__tests__/pdf/test-defs/hyperlink-internal.tsx +767 -767
  180. package/src/abstract-document-exporters/__tests__/pdf/test-defs/margins-header-body-footer.tsx +992 -992
  181. package/src/abstract-document-exporters/__tests__/pdf/test-defs/mixed-hyperlink-and-textrun-no-underline.tsx +105 -105
  182. package/src/abstract-document-exporters/__tests__/pdf/test-defs/mixed-hyperlink-and-textrun-with-underline.tsx +105 -105
  183. package/src/abstract-document-exporters/__tests__/pdf/test-defs/mixed-hyperlink-and-textrun.tsx +104 -104
  184. package/src/abstract-document-exporters/__tests__/pdf/test-defs/mixed-textrun-and-images.tsx +100 -100
  185. package/src/abstract-document-exporters/__tests__/pdf/test-defs/multiple-images-overflow.tsx +71 -71
  186. package/src/abstract-document-exporters/__tests__/pdf/test-defs/multiple-images.tsx +67 -67
  187. package/src/abstract-document-exporters/__tests__/pdf/test-defs/multiple-textrun-with-center-alignment.tsx +89 -89
  188. package/src/abstract-document-exporters/__tests__/pdf/test-defs/multiple-textrun-with-end-alignment.tsx +89 -89
  189. package/src/abstract-document-exporters/__tests__/pdf/test-defs/multiple-textrun-with-start-alignment-that-linebreaks.tsx +107 -107
  190. package/src/abstract-document-exporters/__tests__/pdf/test-defs/multiple-textrun-with-start-alignment.tsx +89 -89
  191. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-row-that-doesnt-fit-page.tsx +321 -321
  192. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-single-row.tsx +223 -223
  193. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-group.tsx +520 -520
  194. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-header.tsx +1562 -1562
  195. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-header2.tsx +872 -872
  196. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-bottom.tsx +471 -471
  197. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-top-single-table.tsx +362 -362
  198. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-margin-top.tsx +471 -471
  199. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-rowSpan-multipages.tsx +1574 -1574
  200. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-break-table-with-rowSpan.tsx +573 -573
  201. package/src/abstract-document-exporters/__tests__/pdf/test-defs/page-numbering.tsx +88 -88
  202. package/src/abstract-document-exporters/__tests__/pdf/test-defs/pagebreak.tsx +86 -86
  203. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-all-auto-cell-widths.tsx +110 -110
  204. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-all-fixed-cell-widths.tsx +110 -110
  205. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-background.tsx +83 -83
  206. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-cell-padding-image.tsx +212 -212
  207. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-cell-padding-text.tsx +353 -353
  208. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-center-alignment.tsx +109 -109
  209. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-colSpan-and-rowSpan.tsx +448 -448
  210. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-minimal-row-height.tsx +616 -0
  211. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-mix-auto-fix-cell-widths.tsx +110 -110
  212. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-padding.tsx +110 -110
  213. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-right-alignment.tsx +110 -110
  214. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-row-alignment.tsx +304 -304
  215. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-text-alignment-in-cell-wrapping.tsx +498 -498
  216. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-text-alignment-in-cell.tsx +255 -255
  217. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-with-default-colored-borders.tsx +227 -227
  218. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-with-header.tsx +509 -509
  219. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-with-multi-colored-borders.tsx +228 -228
  220. package/src/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-with-single-colored-borders.tsx +228 -228
  221. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-figure.tsx +318 -318
  222. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-hyperlink-center.tsx +57 -57
  223. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-hyperlink-no-underline.tsx +61 -61
  224. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-hyperlink-right-aligned.tsx +57 -57
  225. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-hyperlink-with-underline.tsx +61 -61
  226. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-hyperlink.tsx +56 -56
  227. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-image-svg-color-hex.tsx +268 -268
  228. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-image-svg-color-name.tsx +268 -268
  229. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-image-svg-color-url.tsx +92 -92
  230. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-image-svg-dasharray.tsx +82 -82
  231. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-image-url.tsx +66 -66
  232. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-image.tsx +66 -66
  233. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-baseline-alphabetic.tsx +51 -51
  234. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-baseline-bottom.tsx +51 -51
  235. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-baseline-hanging.tsx +51 -51
  236. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-baseline-middle.tsx +51 -51
  237. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-baseline-top.tsx +51 -51
  238. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-super-subscript.tsx +89 -89
  239. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-with-center-alignment-that-linebreaks.tsx +72 -72
  240. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-with-center-alignment.tsx +57 -57
  241. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-with-end-alignment-that-linebreaks.tsx +72 -72
  242. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-with-end-alignment.tsx +57 -57
  243. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-with-justify-alignment.tsx +57 -57
  244. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-with-start-alignment-that-linebreaks.tsx +72 -72
  245. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun-with-start-alignment.tsx +57 -57
  246. package/src/abstract-document-exporters/__tests__/pdf/test-defs/single-textrun.tsx +56 -56
  247. package/src/abstract-document-exporters/__tests__/pdf/test-defs/table-of-content-separator.tsx +72 -72
  248. package/src/abstract-document-exporters/__tests__/pdf/test-defs/world.tsx +56 -56
  249. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position group.pdf +2 -2
  250. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position header and footer.pdf +2 -2
  251. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position paragraph.pdf +2 -2
  252. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position section in group.pdf +2 -2
  253. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position section in table.pdf +2 -2
  254. package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position table.pdf +2 -2
  255. package/src/abstract-document-exporters/__tests__/pdf/tmp/Empty Paragraph.pdf +91 -0
  256. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Paragraphs.pdf +2 -2
  257. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Tables.pdf +2 -2
  258. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group no keeptogether.pdf +2 -2
  259. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group too big for one page.pdf +2 -2
  260. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group.pdf +2 -2
  261. package/src/abstract-document-exporters/__tests__/pdf/tmp/Header and footer.pdf +2 -2
  262. package/src/abstract-document-exporters/__tests__/pdf/tmp/Hyperlink internal linktarget.pdf +2 -2
  263. package/src/abstract-document-exporters/__tests__/pdf/tmp/Hyperlink internal.pdf +2 -2
  264. package/src/abstract-document-exporters/__tests__/pdf/tmp/Margins header body footer.pdf +2 -2
  265. package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun no underline.pdf +2 -2
  266. package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun with underline.pdf +2 -2
  267. package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun.pdf +2 -2
  268. package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed textrun and images.pdf and b/package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed textrun → images.pdf +0 -0
  269. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple images overflow.pdf +0 -0
  270. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple images.pdf +0 -0
  271. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Center alignment.pdf +2 -2
  272. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with End alignment.pdf +2 -2
  273. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Start alignment that linebreaks.pdf +2 -2
  274. package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Start alignment.pdf +2 -2
  275. package/src/abstract-document-exporters/__tests__/pdf/tmp/Named destination.pdf +1761 -0
  276. package/src/abstract-document-exporters/__tests__/pdf/tmp/Page numbering.pdf +2 -2
  277. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table row that doesnt fit page.pdf +2 -2
  278. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table single row.pdf +2 -2
  279. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with group.pdf +2 -2
  280. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with header 2.pdf +2 -2
  281. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with header.pdf +2 -2
  282. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin bottom.pdf +2 -2
  283. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin top single table.pdf +2 -2
  284. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin top.pdf +2 -2
  285. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin.pdf +404 -0
  286. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with rowSpan multipages.pdf +2 -2
  287. package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with rowSpan.pdf +2 -2
  288. package/src/abstract-document-exporters/__tests__/pdf/tmp/{Simple table auto.pdf → Paragraph numbering.pdf } +28 -18
  289. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table all auto.pdf +2 -2
  290. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table all fix.pdf +2 -2
  291. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table background.pdf +2 -2
  292. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table cell padding of image.pdf +0 -0
  293. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table cell padding of text.pdf +2 -2
  294. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table center alignment.pdf +2 -2
  295. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table colSpan and rowSpan.pdf +2 -2
  296. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table minimal row height.pdf +463 -0
  297. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table mix auto fix.pdf +2 -2
  298. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table padding.pdf +2 -2
  299. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table right alignment.pdf +2 -2
  300. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table row alignment.pdf +2 -2
  301. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table text alignment in cell with wrapping.pdf +2 -2
  302. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table text alignment in cell.pdf +2 -2
  303. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with default colored borders.pdf +2 -2
  304. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with header.pdf +2 -2
  305. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with multi colored borders.pdf +2 -2
  306. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with single colored borders.pdf +2 -2
  307. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table.pdf +2 -2
  308. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single date.pdf +3 -3
  309. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single figure.pdf +2 -2
  310. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink centered.pdf +2 -2
  311. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink no underline.pdf +2 -2
  312. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink right aligned.pdf +2 -2
  313. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink.pdf +2 -2
  314. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image from URL.pdf +0 -0
  315. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color hex.pdf +2 -2
  316. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color name.pdf +2 -2
  317. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color url.pdf +2 -2
  318. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg dasharray.pdf +2 -2
  319. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image.pdf +0 -0
  320. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline alphabetic.pdf +2 -2
  321. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline bottom.pdf +2 -2
  322. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline hanging.pdf +2 -2
  323. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline middle.pdf +2 -2
  324. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline top.pdf +2 -2
  325. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment that linebreaks.pdf +2 -2
  326. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment.pdf +2 -2
  327. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment that linebreaks.pdf +2 -2
  328. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment.pdf +2 -2
  329. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Justify alignment.pdf +2 -2
  330. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment that linebreaks.pdf +2 -2
  331. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment.pdf +2 -2
  332. package/src/abstract-document-exporters/__tests__/pdf/tmp/{Simple table one auto.pdf → Single textrun with default alignment.pdf } +14 -34
  333. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with super and subscripts.pdf +2 -2
  334. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun.pdf +2 -2
  335. package/src/abstract-document-exporters/__tests__/pdf/tmp/Table of content separator.pdf +2 -2
  336. package/src/abstract-document-exporters/__tests__/pdf/tmp/hello with roman font.pdf +2 -2
  337. package/src/abstract-document-exporters/__tests__/pdf/tmp/hello.pdf +2 -2
  338. package/src/abstract-document-exporters/__tests__/pdf/tmp/pagebreak.pdf +2 -2
  339. package/src/abstract-document-exporters/__tests__/pdf/tmp/world.pdf +2 -2
  340. package/src/abstract-document-exporters/docx/document-container.ts +18 -18
  341. package/src/abstract-document-exporters/docx/docx-constants.ts +46 -46
  342. package/src/abstract-document-exporters/docx/docx-document-renderer.ts +1084 -1084
  343. package/src/abstract-document-exporters/docx/ref-container.ts +53 -53
  344. package/src/abstract-document-exporters/docx/string-utils.ts +39 -39
  345. package/src/abstract-document-exporters/docx/xml-writer.ts +333 -333
  346. package/src/abstract-document-exporters/docx2/render-image.ts +159 -159
  347. package/src/abstract-document-exporters/docx2/render.ts +516 -516
  348. package/src/abstract-document-exporters/index.ts +5 -5
  349. package/src/abstract-document-exporters/pdf/font.ts +76 -76
  350. package/src/abstract-document-exporters/pdf/measure.ts +446 -418
  351. package/src/abstract-document-exporters/pdf/paginate.ts +434 -434
  352. package/src/abstract-document-exporters/pdf/pre-process.ts +389 -389
  353. package/src/abstract-document-exporters/pdf/render-image.ts +221 -221
  354. package/src/abstract-document-exporters/pdf/render.ts +847 -847
  355. package/src/abstract-document-exporters/pdf/update-refs.ts +163 -163
  356. package/src/abstract-document-exporters/shared/get_resources.ts +71 -71
  357. package/src/abstract-document-jsx/index.ts +86 -86
  358. package/src/custom_typings/@textlint/markdown-to-ast/index.d.ts +1 -1
  359. package/src/custom_typings/json-diff/index.d.ts +1 -1
  360. package/src/custom_typings/markdown-parser/index.d.ts +1 -1
  361. package/src/custom_typings/pdf2json/index.d.ts +1 -1
  362. package/src/custom_typings/remark-parse/index.d.ts +1 -1
  363. package/src/custom_typings/remark-sub-super/index.d.ts +1 -1
  364. package/src/custom_typings/svg-to-pdfkit/index.d.ts +1 -1
  365. package/src/custom_typings/unified/index.d.ts +1 -1
  366. package/src/index.ts +5 -5
  367. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-image-png.d.ts.map +0 -1
  368. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-image-png.js +0 -149
  369. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-image-png.js.map +0 -1
  370. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-image-svg.d.ts +0 -3
  371. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-image-svg.d.ts.map +0 -1
  372. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-image-svg.js +0 -149
  373. package/lib/abstract-document-exporters/__tests__/docx2/test-defs/single-image-svg.js.map +0 -1
  374. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/group.d.ts +0 -3
  375. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/group.d.ts.map +0 -1
  376. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/group.js +0 -83
  377. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/group.js.map +0 -1
  378. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-auto-cell-widths.d.ts +0 -3
  379. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-auto-cell-widths.d.ts.map +0 -1
  380. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-auto-cell-widths.js +0 -105
  381. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-auto-cell-widths.js.map +0 -1
  382. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-fixed-cell-widths.d.ts +0 -3
  383. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-fixed-cell-widths.d.ts.map +0 -1
  384. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-fixed-cell-widths.js +0 -104
  385. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table-fixed-cell-widths.js.map +0 -1
  386. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table.d.ts +0 -3
  387. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table.d.ts.map +0 -1
  388. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table.js +0 -104
  389. package/lib/abstract-document-exporters/__tests__/pdf/test-defs/simple-table.js.map +0 -1
  390. package/src/abstract-document-exporters/__tests__/docx2/tmp/Single image svg.docx +0 -0
  391. package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Paratraphs.pdf +0 -912
  392. package/src/abstract-document-exporters/__tests__/pdf/tmp/Margins header body footer1.pdf +0 -640
  393. package/src/abstract-document-exporters/__tests__/pdf/tmp/Margins header body footer2.pdf +0 -609
  394. package/src/abstract-document-exporters/__tests__/pdf/tmp/Margins header body footer3.pdf +0 -1188
  395. package/src/abstract-document-exporters/__tests__/pdf/tmp/Margins header body footer4.pdf +0 -1188
  396. package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table padding1.pdf +0 -133
  397. package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color.pdf +0 -179
@@ -1,767 +1,767 @@
1
- import React from "react";
2
- import { ExportTestDef } from "../export-test-def";
3
- import {
4
- Paragraph,
5
- AbstractDoc,
6
- Section,
7
- TextRun,
8
- PageBreak,
9
- LinkTarget,
10
- HyperLink,
11
- } from "../../../../abstract-document-jsx";
12
-
13
- const paragraph = (
14
- <Paragraph>
15
- <TextRun text={"Hello"} />
16
- <HyperLink target={"#first"} text={"first "} />
17
- <HyperLink target={"#second"} text={"second "} />
18
- <HyperLink target={"#third"} text={"third "} />
19
- <HyperLink target={"#fourth"} text={"fourth "} />
20
- <HyperLink target={"#fifth"} text={"fifth "} />
21
- <HyperLink target={"#sixth"} text={"sixth "} />
22
- </Paragraph>
23
- );
24
-
25
- export const test: ExportTestDef = {
26
- name: "Hyperlink internal",
27
- abstractDocJsx: (
28
- <AbstractDoc>
29
- <Section id={"first"}>
30
- {paragraph}
31
- <PageBreak />
32
- </Section>
33
-
34
- <Section id={"second"}>
35
- {paragraph}
36
- <PageBreak />
37
- </Section>
38
-
39
- <Section id={"third"}>
40
- {paragraph}
41
- <PageBreak />
42
- </Section>
43
-
44
- <Section id={"fourth"}>
45
- {paragraph}
46
- <PageBreak />
47
- </Section>
48
-
49
- <Section id={"fifth"}>
50
- {paragraph}
51
- <PageBreak />
52
- </Section>
53
-
54
- <Section id={"sixth"}>{paragraph}</Section>
55
- </AbstractDoc>
56
- ),
57
- expectedPdfJson: {
58
- Transcoder: "pdf2json@2.0.1 [https://github.com/modesty/pdf2json]",
59
- Meta: {
60
- CreationDate: "*",
61
- Creator: "PDFKit",
62
- IsAcroFormPresent: false,
63
- IsXFAPresent: false,
64
- Metadata: {},
65
- PDFFormatVersion: "1.3",
66
- Producer: "PDFKit",
67
- },
68
- Pages: [
69
- {
70
- Height: 52.625,
71
- Width: 37.188,
72
- HLines: [],
73
- VLines: [],
74
- Fills: [],
75
- Texts: [
76
- {
77
- x: -0.25,
78
- y: -0.301,
79
- w: 22.78,
80
- sw: 0.32553125,
81
- oc: undefined,
82
- A: "left",
83
- R: [
84
- {
85
- T: "Hello",
86
- S: -1,
87
- TS: [0, 13, 0, 0],
88
- },
89
- ],
90
- },
91
- {
92
- x: 1.174,
93
- y: -0.301,
94
- w: 18.89,
95
- sw: 0.32553125,
96
- clr: 35,
97
- A: "left",
98
- R: [
99
- {
100
- T: "first%20",
101
- S: -1,
102
- TS: [0, 13, 0, 0],
103
- },
104
- ],
105
- },
106
- {
107
- x: 2.354,
108
- y: -0.301,
109
- w: 35.02,
110
- sw: 0.32553125,
111
- clr: 35,
112
- A: "left",
113
- R: [
114
- {
115
- T: "second%20",
116
- S: -1,
117
- TS: [0, 13, 0, 0],
118
- },
119
- ],
120
- },
121
- {
122
- x: 4.543,
123
- y: -0.301,
124
- w: 22.23,
125
- sw: 0.32553125,
126
- clr: 35,
127
- A: "left",
128
- R: [
129
- {
130
- T: "third%20",
131
- S: -1,
132
- TS: [0, 13, 0, 0],
133
- },
134
- ],
135
- },
136
- {
137
- x: 5.933,
138
- y: -0.301,
139
- w: 28.35,
140
- sw: 0.32553125,
141
- clr: 35,
142
- A: "left",
143
- R: [
144
- {
145
- T: "fourth%20",
146
- S: -1,
147
- TS: [0, 13, 0, 0],
148
- },
149
- ],
150
- },
151
- {
152
- x: 7.711,
153
- y: -0.301,
154
- w: 18.9,
155
- sw: 0.32553125,
156
- clr: 35,
157
- A: "left",
158
- R: [
159
- {
160
- T: "fifth%20",
161
- S: -1,
162
- TS: [0, 13, 0, 0],
163
- },
164
- ],
165
- },
166
- {
167
- x: 8.892,
168
- y: -0.301,
169
- w: 23.34,
170
- sw: 0.32553125,
171
- clr: 35,
172
- A: "left",
173
- R: [
174
- {
175
- T: "sixth%20",
176
- S: -1,
177
- TS: [0, 13, 0, 0],
178
- },
179
- ],
180
- },
181
- ],
182
- Fields: [],
183
- Boxsets: [],
184
- },
185
- {
186
- Height: 52.625,
187
- Width: 37.188,
188
- HLines: [],
189
- VLines: [],
190
- Fills: [],
191
- Texts: [
192
- {
193
- x: -0.25,
194
- y: -0.301,
195
- w: 22.78,
196
- sw: 0.32553125,
197
- oc: undefined,
198
- A: "left",
199
- R: [
200
- {
201
- T: "Hello",
202
- S: -1,
203
- TS: [0, 13, 0, 0],
204
- },
205
- ],
206
- },
207
- {
208
- x: 1.174,
209
- y: -0.301,
210
- w: 18.89,
211
- sw: 0.32553125,
212
- clr: 35,
213
- A: "left",
214
- R: [
215
- {
216
- T: "first%20",
217
- S: -1,
218
- TS: [0, 13, 0, 0],
219
- },
220
- ],
221
- },
222
- {
223
- x: 2.354,
224
- y: -0.301,
225
- w: 35.02,
226
- sw: 0.32553125,
227
- clr: 35,
228
- A: "left",
229
- R: [
230
- {
231
- T: "second%20",
232
- S: -1,
233
- TS: [0, 13, 0, 0],
234
- },
235
- ],
236
- },
237
- {
238
- x: 4.543,
239
- y: -0.301,
240
- w: 22.23,
241
- sw: 0.32553125,
242
- clr: 35,
243
- A: "left",
244
- R: [
245
- {
246
- T: "third%20",
247
- S: -1,
248
- TS: [0, 13, 0, 0],
249
- },
250
- ],
251
- },
252
- {
253
- x: 5.933,
254
- y: -0.301,
255
- w: 28.35,
256
- sw: 0.32553125,
257
- clr: 35,
258
- A: "left",
259
- R: [
260
- {
261
- T: "fourth%20",
262
- S: -1,
263
- TS: [0, 13, 0, 0],
264
- },
265
- ],
266
- },
267
- {
268
- x: 7.711,
269
- y: -0.301,
270
- w: 18.9,
271
- sw: 0.32553125,
272
- clr: 35,
273
- A: "left",
274
- R: [
275
- {
276
- T: "fifth%20",
277
- S: -1,
278
- TS: [0, 13, 0, 0],
279
- },
280
- ],
281
- },
282
- {
283
- x: 8.892,
284
- y: -0.301,
285
- w: 23.34,
286
- sw: 0.32553125,
287
- clr: 35,
288
- A: "left",
289
- R: [
290
- {
291
- T: "sixth%20",
292
- S: -1,
293
- TS: [0, 13, 0, 0],
294
- },
295
- ],
296
- },
297
- ],
298
- Fields: [],
299
- Boxsets: [],
300
- },
301
- {
302
- Height: 52.625,
303
- Width: 37.188,
304
- HLines: [],
305
- VLines: [],
306
- Fills: [],
307
- Texts: [
308
- {
309
- x: -0.25,
310
- y: -0.301,
311
- w: 22.78,
312
- sw: 0.32553125,
313
- oc: undefined,
314
- A: "left",
315
- R: [
316
- {
317
- T: "Hello",
318
- S: -1,
319
- TS: [0, 13, 0, 0],
320
- },
321
- ],
322
- },
323
- {
324
- x: 1.174,
325
- y: -0.301,
326
- w: 18.89,
327
- sw: 0.32553125,
328
- clr: 35,
329
- A: "left",
330
- R: [
331
- {
332
- T: "first%20",
333
- S: -1,
334
- TS: [0, 13, 0, 0],
335
- },
336
- ],
337
- },
338
- {
339
- x: 2.354,
340
- y: -0.301,
341
- w: 35.02,
342
- sw: 0.32553125,
343
- clr: 35,
344
- A: "left",
345
- R: [
346
- {
347
- T: "second%20",
348
- S: -1,
349
- TS: [0, 13, 0, 0],
350
- },
351
- ],
352
- },
353
- {
354
- x: 4.543,
355
- y: -0.301,
356
- w: 22.23,
357
- sw: 0.32553125,
358
- clr: 35,
359
- A: "left",
360
- R: [
361
- {
362
- T: "third%20",
363
- S: -1,
364
- TS: [0, 13, 0, 0],
365
- },
366
- ],
367
- },
368
- {
369
- x: 5.933,
370
- y: -0.301,
371
- w: 28.35,
372
- sw: 0.32553125,
373
- clr: 35,
374
- A: "left",
375
- R: [
376
- {
377
- T: "fourth%20",
378
- S: -1,
379
- TS: [0, 13, 0, 0],
380
- },
381
- ],
382
- },
383
- {
384
- x: 7.711,
385
- y: -0.301,
386
- w: 18.9,
387
- sw: 0.32553125,
388
- clr: 35,
389
- A: "left",
390
- R: [
391
- {
392
- T: "fifth%20",
393
- S: -1,
394
- TS: [0, 13, 0, 0],
395
- },
396
- ],
397
- },
398
- {
399
- x: 8.892,
400
- y: -0.301,
401
- w: 23.34,
402
- sw: 0.32553125,
403
- clr: 35,
404
- A: "left",
405
- R: [
406
- {
407
- T: "sixth%20",
408
- S: -1,
409
- TS: [0, 13, 0, 0],
410
- },
411
- ],
412
- },
413
- ],
414
- Fields: [],
415
- Boxsets: [],
416
- },
417
- {
418
- Height: 52.625,
419
- Width: 37.188,
420
- HLines: [],
421
- VLines: [],
422
- Fills: [],
423
- Texts: [
424
- {
425
- x: -0.25,
426
- y: -0.301,
427
- w: 22.78,
428
- sw: 0.32553125,
429
- oc: undefined,
430
- A: "left",
431
- R: [
432
- {
433
- T: "Hello",
434
- S: -1,
435
- TS: [0, 13, 0, 0],
436
- },
437
- ],
438
- },
439
- {
440
- x: 1.174,
441
- y: -0.301,
442
- w: 18.89,
443
- sw: 0.32553125,
444
- clr: 35,
445
- A: "left",
446
- R: [
447
- {
448
- T: "first%20",
449
- S: -1,
450
- TS: [0, 13, 0, 0],
451
- },
452
- ],
453
- },
454
- {
455
- x: 2.354,
456
- y: -0.301,
457
- w: 35.02,
458
- sw: 0.32553125,
459
- clr: 35,
460
- A: "left",
461
- R: [
462
- {
463
- T: "second%20",
464
- S: -1,
465
- TS: [0, 13, 0, 0],
466
- },
467
- ],
468
- },
469
- {
470
- x: 4.543,
471
- y: -0.301,
472
- w: 22.23,
473
- sw: 0.32553125,
474
- clr: 35,
475
- A: "left",
476
- R: [
477
- {
478
- T: "third%20",
479
- S: -1,
480
- TS: [0, 13, 0, 0],
481
- },
482
- ],
483
- },
484
- {
485
- x: 5.933,
486
- y: -0.301,
487
- w: 28.35,
488
- sw: 0.32553125,
489
- clr: 35,
490
- A: "left",
491
- R: [
492
- {
493
- T: "fourth%20",
494
- S: -1,
495
- TS: [0, 13, 0, 0],
496
- },
497
- ],
498
- },
499
- {
500
- x: 7.711,
501
- y: -0.301,
502
- w: 18.9,
503
- sw: 0.32553125,
504
- clr: 35,
505
- A: "left",
506
- R: [
507
- {
508
- T: "fifth%20",
509
- S: -1,
510
- TS: [0, 13, 0, 0],
511
- },
512
- ],
513
- },
514
- {
515
- x: 8.892,
516
- y: -0.301,
517
- w: 23.34,
518
- sw: 0.32553125,
519
- clr: 35,
520
- A: "left",
521
- R: [
522
- {
523
- T: "sixth%20",
524
- S: -1,
525
- TS: [0, 13, 0, 0],
526
- },
527
- ],
528
- },
529
- ],
530
- Fields: [],
531
- Boxsets: [],
532
- },
533
- {
534
- Height: 52.625,
535
- Width: 37.188,
536
- HLines: [],
537
- VLines: [],
538
- Fills: [],
539
- Texts: [
540
- {
541
- x: -0.25,
542
- y: -0.301,
543
- w: 22.78,
544
- sw: 0.32553125,
545
- oc: undefined,
546
- A: "left",
547
- R: [
548
- {
549
- T: "Hello",
550
- S: -1,
551
- TS: [0, 13, 0, 0],
552
- },
553
- ],
554
- },
555
- {
556
- x: 1.174,
557
- y: -0.301,
558
- w: 18.89,
559
- sw: 0.32553125,
560
- clr: 35,
561
- A: "left",
562
- R: [
563
- {
564
- T: "first%20",
565
- S: -1,
566
- TS: [0, 13, 0, 0],
567
- },
568
- ],
569
- },
570
- {
571
- x: 2.354,
572
- y: -0.301,
573
- w: 35.02,
574
- sw: 0.32553125,
575
- clr: 35,
576
- A: "left",
577
- R: [
578
- {
579
- T: "second%20",
580
- S: -1,
581
- TS: [0, 13, 0, 0],
582
- },
583
- ],
584
- },
585
- {
586
- x: 4.543,
587
- y: -0.301,
588
- w: 22.23,
589
- sw: 0.32553125,
590
- clr: 35,
591
- A: "left",
592
- R: [
593
- {
594
- T: "third%20",
595
- S: -1,
596
- TS: [0, 13, 0, 0],
597
- },
598
- ],
599
- },
600
- {
601
- x: 5.933,
602
- y: -0.301,
603
- w: 28.35,
604
- sw: 0.32553125,
605
- clr: 35,
606
- A: "left",
607
- R: [
608
- {
609
- T: "fourth%20",
610
- S: -1,
611
- TS: [0, 13, 0, 0],
612
- },
613
- ],
614
- },
615
- {
616
- x: 7.711,
617
- y: -0.301,
618
- w: 18.9,
619
- sw: 0.32553125,
620
- clr: 35,
621
- A: "left",
622
- R: [
623
- {
624
- T: "fifth%20",
625
- S: -1,
626
- TS: [0, 13, 0, 0],
627
- },
628
- ],
629
- },
630
- {
631
- x: 8.892,
632
- y: -0.301,
633
- w: 23.34,
634
- sw: 0.32553125,
635
- clr: 35,
636
- A: "left",
637
- R: [
638
- {
639
- T: "sixth%20",
640
- S: -1,
641
- TS: [0, 13, 0, 0],
642
- },
643
- ],
644
- },
645
- ],
646
- Fields: [],
647
- Boxsets: [],
648
- },
649
- {
650
- Height: 52.625,
651
- Width: 37.188,
652
- HLines: [],
653
- VLines: [],
654
- Fills: [],
655
- Texts: [
656
- {
657
- x: -0.25,
658
- y: -0.301,
659
- w: 22.78,
660
- sw: 0.32553125,
661
- oc: undefined,
662
- A: "left",
663
- R: [
664
- {
665
- T: "Hello",
666
- S: -1,
667
- TS: [0, 13, 0, 0],
668
- },
669
- ],
670
- },
671
- {
672
- x: 1.174,
673
- y: -0.301,
674
- w: 18.89,
675
- sw: 0.32553125,
676
- clr: 35,
677
- A: "left",
678
- R: [
679
- {
680
- T: "first%20",
681
- S: -1,
682
- TS: [0, 13, 0, 0],
683
- },
684
- ],
685
- },
686
- {
687
- x: 2.354,
688
- y: -0.301,
689
- w: 35.02,
690
- sw: 0.32553125,
691
- clr: 35,
692
- A: "left",
693
- R: [
694
- {
695
- T: "second%20",
696
- S: -1,
697
- TS: [0, 13, 0, 0],
698
- },
699
- ],
700
- },
701
- {
702
- x: 4.543,
703
- y: -0.301,
704
- w: 22.23,
705
- sw: 0.32553125,
706
- clr: 35,
707
- A: "left",
708
- R: [
709
- {
710
- T: "third%20",
711
- S: -1,
712
- TS: [0, 13, 0, 0],
713
- },
714
- ],
715
- },
716
- {
717
- x: 5.933,
718
- y: -0.301,
719
- w: 28.35,
720
- sw: 0.32553125,
721
- clr: 35,
722
- A: "left",
723
- R: [
724
- {
725
- T: "fourth%20",
726
- S: -1,
727
- TS: [0, 13, 0, 0],
728
- },
729
- ],
730
- },
731
- {
732
- x: 7.711,
733
- y: -0.301,
734
- w: 18.9,
735
- sw: 0.32553125,
736
- clr: 35,
737
- A: "left",
738
- R: [
739
- {
740
- T: "fifth%20",
741
- S: -1,
742
- TS: [0, 13, 0, 0],
743
- },
744
- ],
745
- },
746
- {
747
- x: 8.892,
748
- y: -0.301,
749
- w: 23.34,
750
- sw: 0.32553125,
751
- clr: 35,
752
- A: "left",
753
- R: [
754
- {
755
- T: "sixth%20",
756
- S: -1,
757
- TS: [0, 13, 0, 0],
758
- },
759
- ],
760
- },
761
- ],
762
- Fields: [],
763
- Boxsets: [],
764
- },
765
- ],
766
- },
767
- };
1
+ import React from "react";
2
+ import { ExportTestDef } from "../export-test-def";
3
+ import {
4
+ Paragraph,
5
+ AbstractDoc,
6
+ Section,
7
+ TextRun,
8
+ PageBreak,
9
+ LinkTarget,
10
+ HyperLink,
11
+ } from "../../../../abstract-document-jsx";
12
+
13
+ const paragraph = (
14
+ <Paragraph>
15
+ <TextRun text={"Hello"} />
16
+ <HyperLink target={"#first"} text={"first "} />
17
+ <HyperLink target={"#second"} text={"second "} />
18
+ <HyperLink target={"#third"} text={"third "} />
19
+ <HyperLink target={"#fourth"} text={"fourth "} />
20
+ <HyperLink target={"#fifth"} text={"fifth "} />
21
+ <HyperLink target={"#sixth"} text={"sixth "} />
22
+ </Paragraph>
23
+ );
24
+
25
+ export const test: ExportTestDef = {
26
+ name: "Hyperlink internal",
27
+ abstractDocJsx: (
28
+ <AbstractDoc>
29
+ <Section id={"first"}>
30
+ {paragraph}
31
+ <PageBreak />
32
+ </Section>
33
+
34
+ <Section id={"second"}>
35
+ {paragraph}
36
+ <PageBreak />
37
+ </Section>
38
+
39
+ <Section id={"third"}>
40
+ {paragraph}
41
+ <PageBreak />
42
+ </Section>
43
+
44
+ <Section id={"fourth"}>
45
+ {paragraph}
46
+ <PageBreak />
47
+ </Section>
48
+
49
+ <Section id={"fifth"}>
50
+ {paragraph}
51
+ <PageBreak />
52
+ </Section>
53
+
54
+ <Section id={"sixth"}>{paragraph}</Section>
55
+ </AbstractDoc>
56
+ ),
57
+ expectedPdfJson: {
58
+ Transcoder: "pdf2json@2.0.1 [https://github.com/modesty/pdf2json]",
59
+ Meta: {
60
+ CreationDate: "*",
61
+ Creator: "PDFKit",
62
+ IsAcroFormPresent: false,
63
+ IsXFAPresent: false,
64
+ Metadata: {},
65
+ PDFFormatVersion: "1.3",
66
+ Producer: "PDFKit",
67
+ },
68
+ Pages: [
69
+ {
70
+ Height: 52.625,
71
+ Width: 37.188,
72
+ HLines: [],
73
+ VLines: [],
74
+ Fills: [],
75
+ Texts: [
76
+ {
77
+ x: -0.25,
78
+ y: -0.301,
79
+ w: 22.78,
80
+ sw: 0.32553125,
81
+ oc: undefined,
82
+ A: "left",
83
+ R: [
84
+ {
85
+ T: "Hello",
86
+ S: -1,
87
+ TS: [0, 13, 0, 0],
88
+ },
89
+ ],
90
+ },
91
+ {
92
+ x: 1.174,
93
+ y: -0.301,
94
+ w: 18.89,
95
+ sw: 0.32553125,
96
+ clr: 35,
97
+ A: "left",
98
+ R: [
99
+ {
100
+ T: "first%20",
101
+ S: -1,
102
+ TS: [0, 13, 0, 0],
103
+ },
104
+ ],
105
+ },
106
+ {
107
+ x: 2.354,
108
+ y: -0.301,
109
+ w: 35.02,
110
+ sw: 0.32553125,
111
+ clr: 35,
112
+ A: "left",
113
+ R: [
114
+ {
115
+ T: "second%20",
116
+ S: -1,
117
+ TS: [0, 13, 0, 0],
118
+ },
119
+ ],
120
+ },
121
+ {
122
+ x: 4.543,
123
+ y: -0.301,
124
+ w: 22.23,
125
+ sw: 0.32553125,
126
+ clr: 35,
127
+ A: "left",
128
+ R: [
129
+ {
130
+ T: "third%20",
131
+ S: -1,
132
+ TS: [0, 13, 0, 0],
133
+ },
134
+ ],
135
+ },
136
+ {
137
+ x: 5.933,
138
+ y: -0.301,
139
+ w: 28.35,
140
+ sw: 0.32553125,
141
+ clr: 35,
142
+ A: "left",
143
+ R: [
144
+ {
145
+ T: "fourth%20",
146
+ S: -1,
147
+ TS: [0, 13, 0, 0],
148
+ },
149
+ ],
150
+ },
151
+ {
152
+ x: 7.711,
153
+ y: -0.301,
154
+ w: 18.9,
155
+ sw: 0.32553125,
156
+ clr: 35,
157
+ A: "left",
158
+ R: [
159
+ {
160
+ T: "fifth%20",
161
+ S: -1,
162
+ TS: [0, 13, 0, 0],
163
+ },
164
+ ],
165
+ },
166
+ {
167
+ x: 8.892,
168
+ y: -0.301,
169
+ w: 23.34,
170
+ sw: 0.32553125,
171
+ clr: 35,
172
+ A: "left",
173
+ R: [
174
+ {
175
+ T: "sixth%20",
176
+ S: -1,
177
+ TS: [0, 13, 0, 0],
178
+ },
179
+ ],
180
+ },
181
+ ],
182
+ Fields: [],
183
+ Boxsets: [],
184
+ },
185
+ {
186
+ Height: 52.625,
187
+ Width: 37.188,
188
+ HLines: [],
189
+ VLines: [],
190
+ Fills: [],
191
+ Texts: [
192
+ {
193
+ x: -0.25,
194
+ y: -0.301,
195
+ w: 22.78,
196
+ sw: 0.32553125,
197
+ oc: undefined,
198
+ A: "left",
199
+ R: [
200
+ {
201
+ T: "Hello",
202
+ S: -1,
203
+ TS: [0, 13, 0, 0],
204
+ },
205
+ ],
206
+ },
207
+ {
208
+ x: 1.174,
209
+ y: -0.301,
210
+ w: 18.89,
211
+ sw: 0.32553125,
212
+ clr: 35,
213
+ A: "left",
214
+ R: [
215
+ {
216
+ T: "first%20",
217
+ S: -1,
218
+ TS: [0, 13, 0, 0],
219
+ },
220
+ ],
221
+ },
222
+ {
223
+ x: 2.354,
224
+ y: -0.301,
225
+ w: 35.02,
226
+ sw: 0.32553125,
227
+ clr: 35,
228
+ A: "left",
229
+ R: [
230
+ {
231
+ T: "second%20",
232
+ S: -1,
233
+ TS: [0, 13, 0, 0],
234
+ },
235
+ ],
236
+ },
237
+ {
238
+ x: 4.543,
239
+ y: -0.301,
240
+ w: 22.23,
241
+ sw: 0.32553125,
242
+ clr: 35,
243
+ A: "left",
244
+ R: [
245
+ {
246
+ T: "third%20",
247
+ S: -1,
248
+ TS: [0, 13, 0, 0],
249
+ },
250
+ ],
251
+ },
252
+ {
253
+ x: 5.933,
254
+ y: -0.301,
255
+ w: 28.35,
256
+ sw: 0.32553125,
257
+ clr: 35,
258
+ A: "left",
259
+ R: [
260
+ {
261
+ T: "fourth%20",
262
+ S: -1,
263
+ TS: [0, 13, 0, 0],
264
+ },
265
+ ],
266
+ },
267
+ {
268
+ x: 7.711,
269
+ y: -0.301,
270
+ w: 18.9,
271
+ sw: 0.32553125,
272
+ clr: 35,
273
+ A: "left",
274
+ R: [
275
+ {
276
+ T: "fifth%20",
277
+ S: -1,
278
+ TS: [0, 13, 0, 0],
279
+ },
280
+ ],
281
+ },
282
+ {
283
+ x: 8.892,
284
+ y: -0.301,
285
+ w: 23.34,
286
+ sw: 0.32553125,
287
+ clr: 35,
288
+ A: "left",
289
+ R: [
290
+ {
291
+ T: "sixth%20",
292
+ S: -1,
293
+ TS: [0, 13, 0, 0],
294
+ },
295
+ ],
296
+ },
297
+ ],
298
+ Fields: [],
299
+ Boxsets: [],
300
+ },
301
+ {
302
+ Height: 52.625,
303
+ Width: 37.188,
304
+ HLines: [],
305
+ VLines: [],
306
+ Fills: [],
307
+ Texts: [
308
+ {
309
+ x: -0.25,
310
+ y: -0.301,
311
+ w: 22.78,
312
+ sw: 0.32553125,
313
+ oc: undefined,
314
+ A: "left",
315
+ R: [
316
+ {
317
+ T: "Hello",
318
+ S: -1,
319
+ TS: [0, 13, 0, 0],
320
+ },
321
+ ],
322
+ },
323
+ {
324
+ x: 1.174,
325
+ y: -0.301,
326
+ w: 18.89,
327
+ sw: 0.32553125,
328
+ clr: 35,
329
+ A: "left",
330
+ R: [
331
+ {
332
+ T: "first%20",
333
+ S: -1,
334
+ TS: [0, 13, 0, 0],
335
+ },
336
+ ],
337
+ },
338
+ {
339
+ x: 2.354,
340
+ y: -0.301,
341
+ w: 35.02,
342
+ sw: 0.32553125,
343
+ clr: 35,
344
+ A: "left",
345
+ R: [
346
+ {
347
+ T: "second%20",
348
+ S: -1,
349
+ TS: [0, 13, 0, 0],
350
+ },
351
+ ],
352
+ },
353
+ {
354
+ x: 4.543,
355
+ y: -0.301,
356
+ w: 22.23,
357
+ sw: 0.32553125,
358
+ clr: 35,
359
+ A: "left",
360
+ R: [
361
+ {
362
+ T: "third%20",
363
+ S: -1,
364
+ TS: [0, 13, 0, 0],
365
+ },
366
+ ],
367
+ },
368
+ {
369
+ x: 5.933,
370
+ y: -0.301,
371
+ w: 28.35,
372
+ sw: 0.32553125,
373
+ clr: 35,
374
+ A: "left",
375
+ R: [
376
+ {
377
+ T: "fourth%20",
378
+ S: -1,
379
+ TS: [0, 13, 0, 0],
380
+ },
381
+ ],
382
+ },
383
+ {
384
+ x: 7.711,
385
+ y: -0.301,
386
+ w: 18.9,
387
+ sw: 0.32553125,
388
+ clr: 35,
389
+ A: "left",
390
+ R: [
391
+ {
392
+ T: "fifth%20",
393
+ S: -1,
394
+ TS: [0, 13, 0, 0],
395
+ },
396
+ ],
397
+ },
398
+ {
399
+ x: 8.892,
400
+ y: -0.301,
401
+ w: 23.34,
402
+ sw: 0.32553125,
403
+ clr: 35,
404
+ A: "left",
405
+ R: [
406
+ {
407
+ T: "sixth%20",
408
+ S: -1,
409
+ TS: [0, 13, 0, 0],
410
+ },
411
+ ],
412
+ },
413
+ ],
414
+ Fields: [],
415
+ Boxsets: [],
416
+ },
417
+ {
418
+ Height: 52.625,
419
+ Width: 37.188,
420
+ HLines: [],
421
+ VLines: [],
422
+ Fills: [],
423
+ Texts: [
424
+ {
425
+ x: -0.25,
426
+ y: -0.301,
427
+ w: 22.78,
428
+ sw: 0.32553125,
429
+ oc: undefined,
430
+ A: "left",
431
+ R: [
432
+ {
433
+ T: "Hello",
434
+ S: -1,
435
+ TS: [0, 13, 0, 0],
436
+ },
437
+ ],
438
+ },
439
+ {
440
+ x: 1.174,
441
+ y: -0.301,
442
+ w: 18.89,
443
+ sw: 0.32553125,
444
+ clr: 35,
445
+ A: "left",
446
+ R: [
447
+ {
448
+ T: "first%20",
449
+ S: -1,
450
+ TS: [0, 13, 0, 0],
451
+ },
452
+ ],
453
+ },
454
+ {
455
+ x: 2.354,
456
+ y: -0.301,
457
+ w: 35.02,
458
+ sw: 0.32553125,
459
+ clr: 35,
460
+ A: "left",
461
+ R: [
462
+ {
463
+ T: "second%20",
464
+ S: -1,
465
+ TS: [0, 13, 0, 0],
466
+ },
467
+ ],
468
+ },
469
+ {
470
+ x: 4.543,
471
+ y: -0.301,
472
+ w: 22.23,
473
+ sw: 0.32553125,
474
+ clr: 35,
475
+ A: "left",
476
+ R: [
477
+ {
478
+ T: "third%20",
479
+ S: -1,
480
+ TS: [0, 13, 0, 0],
481
+ },
482
+ ],
483
+ },
484
+ {
485
+ x: 5.933,
486
+ y: -0.301,
487
+ w: 28.35,
488
+ sw: 0.32553125,
489
+ clr: 35,
490
+ A: "left",
491
+ R: [
492
+ {
493
+ T: "fourth%20",
494
+ S: -1,
495
+ TS: [0, 13, 0, 0],
496
+ },
497
+ ],
498
+ },
499
+ {
500
+ x: 7.711,
501
+ y: -0.301,
502
+ w: 18.9,
503
+ sw: 0.32553125,
504
+ clr: 35,
505
+ A: "left",
506
+ R: [
507
+ {
508
+ T: "fifth%20",
509
+ S: -1,
510
+ TS: [0, 13, 0, 0],
511
+ },
512
+ ],
513
+ },
514
+ {
515
+ x: 8.892,
516
+ y: -0.301,
517
+ w: 23.34,
518
+ sw: 0.32553125,
519
+ clr: 35,
520
+ A: "left",
521
+ R: [
522
+ {
523
+ T: "sixth%20",
524
+ S: -1,
525
+ TS: [0, 13, 0, 0],
526
+ },
527
+ ],
528
+ },
529
+ ],
530
+ Fields: [],
531
+ Boxsets: [],
532
+ },
533
+ {
534
+ Height: 52.625,
535
+ Width: 37.188,
536
+ HLines: [],
537
+ VLines: [],
538
+ Fills: [],
539
+ Texts: [
540
+ {
541
+ x: -0.25,
542
+ y: -0.301,
543
+ w: 22.78,
544
+ sw: 0.32553125,
545
+ oc: undefined,
546
+ A: "left",
547
+ R: [
548
+ {
549
+ T: "Hello",
550
+ S: -1,
551
+ TS: [0, 13, 0, 0],
552
+ },
553
+ ],
554
+ },
555
+ {
556
+ x: 1.174,
557
+ y: -0.301,
558
+ w: 18.89,
559
+ sw: 0.32553125,
560
+ clr: 35,
561
+ A: "left",
562
+ R: [
563
+ {
564
+ T: "first%20",
565
+ S: -1,
566
+ TS: [0, 13, 0, 0],
567
+ },
568
+ ],
569
+ },
570
+ {
571
+ x: 2.354,
572
+ y: -0.301,
573
+ w: 35.02,
574
+ sw: 0.32553125,
575
+ clr: 35,
576
+ A: "left",
577
+ R: [
578
+ {
579
+ T: "second%20",
580
+ S: -1,
581
+ TS: [0, 13, 0, 0],
582
+ },
583
+ ],
584
+ },
585
+ {
586
+ x: 4.543,
587
+ y: -0.301,
588
+ w: 22.23,
589
+ sw: 0.32553125,
590
+ clr: 35,
591
+ A: "left",
592
+ R: [
593
+ {
594
+ T: "third%20",
595
+ S: -1,
596
+ TS: [0, 13, 0, 0],
597
+ },
598
+ ],
599
+ },
600
+ {
601
+ x: 5.933,
602
+ y: -0.301,
603
+ w: 28.35,
604
+ sw: 0.32553125,
605
+ clr: 35,
606
+ A: "left",
607
+ R: [
608
+ {
609
+ T: "fourth%20",
610
+ S: -1,
611
+ TS: [0, 13, 0, 0],
612
+ },
613
+ ],
614
+ },
615
+ {
616
+ x: 7.711,
617
+ y: -0.301,
618
+ w: 18.9,
619
+ sw: 0.32553125,
620
+ clr: 35,
621
+ A: "left",
622
+ R: [
623
+ {
624
+ T: "fifth%20",
625
+ S: -1,
626
+ TS: [0, 13, 0, 0],
627
+ },
628
+ ],
629
+ },
630
+ {
631
+ x: 8.892,
632
+ y: -0.301,
633
+ w: 23.34,
634
+ sw: 0.32553125,
635
+ clr: 35,
636
+ A: "left",
637
+ R: [
638
+ {
639
+ T: "sixth%20",
640
+ S: -1,
641
+ TS: [0, 13, 0, 0],
642
+ },
643
+ ],
644
+ },
645
+ ],
646
+ Fields: [],
647
+ Boxsets: [],
648
+ },
649
+ {
650
+ Height: 52.625,
651
+ Width: 37.188,
652
+ HLines: [],
653
+ VLines: [],
654
+ Fills: [],
655
+ Texts: [
656
+ {
657
+ x: -0.25,
658
+ y: -0.301,
659
+ w: 22.78,
660
+ sw: 0.32553125,
661
+ oc: undefined,
662
+ A: "left",
663
+ R: [
664
+ {
665
+ T: "Hello",
666
+ S: -1,
667
+ TS: [0, 13, 0, 0],
668
+ },
669
+ ],
670
+ },
671
+ {
672
+ x: 1.174,
673
+ y: -0.301,
674
+ w: 18.89,
675
+ sw: 0.32553125,
676
+ clr: 35,
677
+ A: "left",
678
+ R: [
679
+ {
680
+ T: "first%20",
681
+ S: -1,
682
+ TS: [0, 13, 0, 0],
683
+ },
684
+ ],
685
+ },
686
+ {
687
+ x: 2.354,
688
+ y: -0.301,
689
+ w: 35.02,
690
+ sw: 0.32553125,
691
+ clr: 35,
692
+ A: "left",
693
+ R: [
694
+ {
695
+ T: "second%20",
696
+ S: -1,
697
+ TS: [0, 13, 0, 0],
698
+ },
699
+ ],
700
+ },
701
+ {
702
+ x: 4.543,
703
+ y: -0.301,
704
+ w: 22.23,
705
+ sw: 0.32553125,
706
+ clr: 35,
707
+ A: "left",
708
+ R: [
709
+ {
710
+ T: "third%20",
711
+ S: -1,
712
+ TS: [0, 13, 0, 0],
713
+ },
714
+ ],
715
+ },
716
+ {
717
+ x: 5.933,
718
+ y: -0.301,
719
+ w: 28.35,
720
+ sw: 0.32553125,
721
+ clr: 35,
722
+ A: "left",
723
+ R: [
724
+ {
725
+ T: "fourth%20",
726
+ S: -1,
727
+ TS: [0, 13, 0, 0],
728
+ },
729
+ ],
730
+ },
731
+ {
732
+ x: 7.711,
733
+ y: -0.301,
734
+ w: 18.9,
735
+ sw: 0.32553125,
736
+ clr: 35,
737
+ A: "left",
738
+ R: [
739
+ {
740
+ T: "fifth%20",
741
+ S: -1,
742
+ TS: [0, 13, 0, 0],
743
+ },
744
+ ],
745
+ },
746
+ {
747
+ x: 8.892,
748
+ y: -0.301,
749
+ w: 23.34,
750
+ sw: 0.32553125,
751
+ clr: 35,
752
+ A: "left",
753
+ R: [
754
+ {
755
+ T: "sixth%20",
756
+ S: -1,
757
+ TS: [0, 13, 0, 0],
758
+ },
759
+ ],
760
+ },
761
+ ],
762
+ Fields: [],
763
+ Boxsets: [],
764
+ },
765
+ ],
766
+ },
767
+ };