abstract-document 6.8.2 → 6.8.4

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