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,824 +1,824 @@
1
- /* eslint-disable max-lines */
2
- import React from "react";
3
- import { ExportTestDef } from "../export-test-def";
4
- import {
5
- Paragraph,
6
- AbstractDoc,
7
- Section,
8
- Table,
9
- TableRow,
10
- TableCell,
11
- TextRun,
12
- Group,
13
- render,
14
- } from "../../../../abstract-document-jsx";
15
- import * as TableStyle from "../../../../abstract-document/styles/table-style";
16
- import * as TableCellStyle from "../../../../abstract-document/styles/table-cell-style";
17
- import * as AD from "../../../../abstract-document";
18
-
19
- const borders = { left: 2, bottom: 2, right: 2, top: 2 };
20
- const margins = { left: 5, bottom: 5, right: 5, top: 5 };
21
-
22
- const tablestylemargin = TableStyle.create({
23
- cellStyle: TableCellStyle.create({ borders: borders, borderColor: "black" }),
24
- });
25
-
26
- const header = [
27
- render(
28
- <TableRow>
29
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
30
- <Paragraph>
31
- <TextRun text="Header 1" />
32
- </Paragraph>
33
- </TableCell>
34
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
35
- <Paragraph>
36
- <TextRun text="Header 2" />
37
- </Paragraph>
38
- </TableCell>
39
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
40
- <Paragraph>
41
- <TextRun text="Header 3" />
42
- </Paragraph>
43
- </TableCell>
44
- </TableRow>
45
- ),
46
- render(
47
- <TableRow>
48
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
49
- <Paragraph>
50
- <TextRun text="Header 4" />
51
- </Paragraph>
52
- </TableCell>
53
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
54
- <Paragraph>
55
- <TextRun text="Header 5" />
56
- </Paragraph>
57
- </TableCell>
58
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
59
- <Paragraph>
60
- <TextRun text="Header 6" />
61
- </Paragraph>
62
- </TableCell>
63
- </TableRow>
64
- ),
65
- ];
66
-
67
- export const test: ExportTestDef = {
68
- name: "Pagebreak table with header 2",
69
- abstractDocJsx: (
70
- <AbstractDoc>
71
- <Section>
72
- <Table columnWidths={[150]} style={tablestylemargin}>
73
- <TableRow>
74
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 680 }) })}>
75
- <Paragraph>
76
- <TextRun text="Test table starts below this line" />
77
- </Paragraph>
78
- </TableCell>
79
- </TableRow>
80
- </Table>
81
- <Table
82
- columnWidths={[100, 100, 100]}
83
- style={TableStyle.create({
84
- margins: margins,
85
- cellStyle: TableCellStyle.create({ borders: borders, borderColor: "black" }),
86
- })}
87
- headerRows={header}
88
- >
89
- <TableRow>
90
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
91
- <Paragraph>
92
- <TextRun text={`Row 1 Col 1`} />
93
- </Paragraph>
94
- </TableCell>
95
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
96
- <Paragraph>
97
- <TextRun text="Col 2" />
98
- </Paragraph>
99
- </TableCell>
100
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
101
- <Paragraph>
102
- <TextRun text="Col 3" />
103
- </Paragraph>
104
- </TableCell>
105
- </TableRow>
106
- <TableRow>
107
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
108
- <Paragraph>
109
- <TextRun text={`Row 2 Col 1`} />
110
- </Paragraph>
111
- </TableCell>
112
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
113
- <Paragraph>
114
- <TextRun text="Col 2" />
115
- </Paragraph>
116
- </TableCell>
117
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
118
- <Paragraph>
119
- <TextRun text="Col 3" />
120
- </Paragraph>
121
- </TableCell>
122
- </TableRow>
123
- <TableRow>
124
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
125
- <Paragraph>
126
- <TextRun text={`Row 3 Col 1`} />
127
- </Paragraph>
128
- </TableCell>
129
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
130
- <Paragraph>
131
- <TextRun text="Col 2" />
132
- </Paragraph>
133
- </TableCell>
134
- <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
135
- <Paragraph>
136
- <TextRun text="Col 3" />
137
- </Paragraph>
138
- </TableCell>
139
- </TableRow>
140
- </Table>
141
- </Section>
142
- </AbstractDoc>
143
- ),
144
- expectedPdfJson: {
145
- formImage: {
146
- Transcoder: "pdf2json@1.2.3 [https://github.com/modesty/pdf2json]",
147
- Agency: "",
148
- Id: {
149
- AgencyId: "",
150
- Name: "",
151
- MC: false,
152
- Max: 1,
153
- Parent: "",
154
- },
155
- Pages: [
156
- {
157
- Height: 52.625,
158
- HLines: [
159
- {
160
- x: 0,
161
- y: 43.179,
162
- w: 3,
163
- l: 9.375,
164
- },
165
- {
166
- x: -0.019,
167
- y: 0.044,
168
- w: 3,
169
- l: 9.412,
170
- },
171
- ],
172
- VLines: [
173
- {
174
- x: 9.331,
175
- y: 0,
176
- w: 3,
177
- l: 43.241,
178
- },
179
- {
180
- x: 0.044,
181
- y: 0,
182
- w: 3,
183
- l: 43.241,
184
- },
185
- ],
186
- Fills: [
187
- {
188
- x: 0,
189
- y: 0,
190
- w: 0,
191
- h: 0,
192
- clr: 1,
193
- },
194
- ],
195
- Texts: [
196
- {
197
- x: -0.25,
198
- y: 42.199,
199
- w: 136.72,
200
- sw: 0.32553125,
201
- clr: 0,
202
- A: "left",
203
- R: [
204
- {
205
- T: "Test%20table%20starts%20below%20this%20line",
206
- S: -1,
207
- TS: [0, 13, 0, 0],
208
- },
209
- ],
210
- },
211
- ],
212
- Fields: [],
213
- Boxsets: [],
214
- },
215
- {
216
- Height: 52.625,
217
- HLines: [
218
- {
219
- x: 0.313,
220
- y: 3.535,
221
- w: 3,
222
- l: 6.25,
223
- },
224
- {
225
- x: 0.294,
226
- y: 0.356,
227
- w: 3,
228
- l: 6.287,
229
- },
230
- {
231
- x: 6.563,
232
- y: 3.535,
233
- w: 3,
234
- l: 6.25,
235
- },
236
- {
237
- x: 6.5,
238
- y: 0.356,
239
- w: 3,
240
- l: 6.331,
241
- },
242
- {
243
- x: 12.813,
244
- y: 3.535,
245
- w: 3,
246
- l: 6.25,
247
- },
248
- {
249
- x: 12.75,
250
- y: 0.356,
251
- w: 3,
252
- l: 6.331,
253
- },
254
- {
255
- x: 0.313,
256
- y: 6.758,
257
- w: 3,
258
- l: 6.25,
259
- },
260
- {
261
- x: 0.294,
262
- y: 3.535,
263
- w: 3,
264
- l: 6.287,
265
- },
266
- {
267
- x: 6.563,
268
- y: 6.758,
269
- w: 3,
270
- l: 6.25,
271
- },
272
- {
273
- x: 6.5,
274
- y: 3.535,
275
- w: 3,
276
- l: 6.331,
277
- },
278
- {
279
- x: 12.813,
280
- y: 6.758,
281
- w: 3,
282
- l: 6.25,
283
- },
284
- {
285
- x: 12.75,
286
- y: 3.535,
287
- w: 3,
288
- l: 6.331,
289
- },
290
- {
291
- x: 0.313,
292
- y: 9.98,
293
- w: 3,
294
- l: 6.25,
295
- },
296
- {
297
- x: 0.294,
298
- y: 6.758,
299
- w: 3,
300
- l: 6.287,
301
- },
302
- {
303
- x: 6.563,
304
- y: 9.98,
305
- w: 3,
306
- l: 6.25,
307
- },
308
- {
309
- x: 6.5,
310
- y: 6.758,
311
- w: 3,
312
- l: 6.331,
313
- },
314
- {
315
- x: 12.813,
316
- y: 9.98,
317
- w: 3,
318
- l: 6.25,
319
- },
320
- {
321
- x: 12.75,
322
- y: 6.758,
323
- w: 3,
324
- l: 6.331,
325
- },
326
- {
327
- x: 0.313,
328
- y: 13.203,
329
- w: 3,
330
- l: 6.25,
331
- },
332
- {
333
- x: 0.294,
334
- y: 9.98,
335
- w: 3,
336
- l: 6.287,
337
- },
338
- {
339
- x: 6.563,
340
- y: 13.203,
341
- w: 3,
342
- l: 6.25,
343
- },
344
- {
345
- x: 6.5,
346
- y: 9.98,
347
- w: 3,
348
- l: 6.331,
349
- },
350
- {
351
- x: 12.813,
352
- y: 13.203,
353
- w: 3,
354
- l: 6.25,
355
- },
356
- {
357
- x: 12.75,
358
- y: 9.98,
359
- w: 3,
360
- l: 6.331,
361
- },
362
- {
363
- x: 0.313,
364
- y: 16.381,
365
- w: 3,
366
- l: 6.25,
367
- },
368
- {
369
- x: 0.294,
370
- y: 13.203,
371
- w: 3,
372
- l: 6.287,
373
- },
374
- {
375
- x: 6.563,
376
- y: 16.381,
377
- w: 3,
378
- l: 6.25,
379
- },
380
- {
381
- x: 6.5,
382
- y: 13.203,
383
- w: 3,
384
- l: 6.331,
385
- },
386
- {
387
- x: 12.813,
388
- y: 16.381,
389
- w: 3,
390
- l: 6.25,
391
- },
392
- {
393
- x: 12.75,
394
- y: 13.203,
395
- w: 3,
396
- l: 6.331,
397
- },
398
- ],
399
- VLines: [
400
- {
401
- x: 6.563,
402
- y: 0.313,
403
- w: 3,
404
- l: 3.241,
405
- },
406
- {
407
- x: 0.356,
408
- y: 0.313,
409
- w: 3,
410
- l: 3.241,
411
- },
412
- {
413
- x: 12.813,
414
- y: 0.313,
415
- w: 3,
416
- l: 3.241,
417
- },
418
- {
419
- x: 6.563,
420
- y: 0.313,
421
- w: 3,
422
- l: 3.241,
423
- },
424
- {
425
- x: 19.019,
426
- y: 0.313,
427
- w: 3,
428
- l: 3.241,
429
- },
430
- {
431
- x: 12.813,
432
- y: 0.313,
433
- w: 3,
434
- l: 3.241,
435
- },
436
- {
437
- x: 6.563,
438
- y: 3.535,
439
- w: 3,
440
- l: 3.241,
441
- },
442
- {
443
- x: 0.356,
444
- y: 3.535,
445
- w: 3,
446
- l: 3.241,
447
- },
448
- {
449
- x: 12.813,
450
- y: 3.535,
451
- w: 3,
452
- l: 3.241,
453
- },
454
- {
455
- x: 6.563,
456
- y: 3.535,
457
- w: 3,
458
- l: 3.241,
459
- },
460
- {
461
- x: 19.019,
462
- y: 3.535,
463
- w: 3,
464
- l: 3.241,
465
- },
466
- {
467
- x: 12.813,
468
- y: 3.535,
469
- w: 3,
470
- l: 3.241,
471
- },
472
- {
473
- x: 6.563,
474
- y: 6.758,
475
- w: 3,
476
- l: 3.241,
477
- },
478
- {
479
- x: 0.356,
480
- y: 6.758,
481
- w: 3,
482
- l: 3.241,
483
- },
484
- {
485
- x: 12.813,
486
- y: 6.758,
487
- w: 3,
488
- l: 3.241,
489
- },
490
- {
491
- x: 6.563,
492
- y: 6.758,
493
- w: 3,
494
- l: 3.241,
495
- },
496
- {
497
- x: 19.019,
498
- y: 6.758,
499
- w: 3,
500
- l: 3.241,
501
- },
502
- {
503
- x: 12.813,
504
- y: 6.758,
505
- w: 3,
506
- l: 3.241,
507
- },
508
- {
509
- x: 6.563,
510
- y: 9.98,
511
- w: 3,
512
- l: 3.241,
513
- },
514
- {
515
- x: 0.356,
516
- y: 9.98,
517
- w: 3,
518
- l: 3.241,
519
- },
520
- {
521
- x: 12.813,
522
- y: 9.98,
523
- w: 3,
524
- l: 3.241,
525
- },
526
- {
527
- x: 6.563,
528
- y: 9.98,
529
- w: 3,
530
- l: 3.241,
531
- },
532
- {
533
- x: 19.019,
534
- y: 9.98,
535
- w: 3,
536
- l: 3.241,
537
- },
538
- {
539
- x: 12.813,
540
- y: 9.98,
541
- w: 3,
542
- l: 3.241,
543
- },
544
- {
545
- x: 6.563,
546
- y: 13.203,
547
- w: 3,
548
- l: 3.241,
549
- },
550
- {
551
- x: 0.356,
552
- y: 13.203,
553
- w: 3,
554
- l: 3.241,
555
- },
556
- {
557
- x: 12.813,
558
- y: 13.203,
559
- w: 3,
560
- l: 3.241,
561
- },
562
- {
563
- x: 6.563,
564
- y: 13.203,
565
- w: 3,
566
- l: 3.241,
567
- },
568
- {
569
- x: 19.019,
570
- y: 13.203,
571
- w: 3,
572
- l: 3.241,
573
- },
574
- {
575
- x: 12.813,
576
- y: 13.203,
577
- w: 3,
578
- l: 3.241,
579
- },
580
- ],
581
- Fills: [
582
- {
583
- x: 0,
584
- y: 0,
585
- w: 0,
586
- h: 0,
587
- clr: 1,
588
- },
589
- ],
590
- Texts: [
591
- {
592
- x: 0.063,
593
- y: 1.2610000000000001,
594
- w: 41.13,
595
- sw: 0.32553125,
596
- clr: 0,
597
- A: "left",
598
- R: [
599
- {
600
- T: "Header%201",
601
- S: -1,
602
- TS: [0, 13, 0, 0],
603
- },
604
- ],
605
- },
606
- {
607
- x: 6.313,
608
- y: 1.2610000000000001,
609
- w: 41.13,
610
- sw: 0.32553125,
611
- clr: 0,
612
- A: "left",
613
- R: [
614
- {
615
- T: "Header%202",
616
- S: -1,
617
- TS: [0, 13, 0, 0],
618
- },
619
- ],
620
- },
621
- {
622
- x: 12.563,
623
- y: 1.2610000000000001,
624
- w: 41.13,
625
- sw: 0.32553125,
626
- clr: 0,
627
- A: "left",
628
- R: [
629
- {
630
- T: "Header%203",
631
- S: -1,
632
- TS: [0, 13, 0, 0],
633
- },
634
- ],
635
- },
636
- {
637
- x: 0.063,
638
- y: 4.484,
639
- w: 41.13,
640
- sw: 0.32553125,
641
- clr: 0,
642
- A: "left",
643
- R: [
644
- {
645
- T: "Header%204",
646
- S: -1,
647
- TS: [0, 13, 0, 0],
648
- },
649
- ],
650
- },
651
- {
652
- x: 6.313,
653
- y: 4.484,
654
- w: 41.13,
655
- sw: 0.32553125,
656
- clr: 0,
657
- A: "left",
658
- R: [
659
- {
660
- T: "Header%205",
661
- S: -1,
662
- TS: [0, 13, 0, 0],
663
- },
664
- ],
665
- },
666
- {
667
- x: 12.563,
668
- y: 4.484,
669
- w: 41.13,
670
- sw: 0.32553125,
671
- clr: 0,
672
- A: "left",
673
- R: [
674
- {
675
- T: "Header%206",
676
- S: -1,
677
- TS: [0, 13, 0, 0],
678
- },
679
- ],
680
- },
681
- {
682
- x: 0.063,
683
- y: 7.7059999999999995,
684
- w: 54.46,
685
- sw: 0.32553125,
686
- clr: 0,
687
- A: "left",
688
- R: [
689
- {
690
- T: "Row%201%20Col%201",
691
- S: -1,
692
- TS: [0, 13, 0, 0],
693
- },
694
- ],
695
- },
696
- {
697
- x: 6.313,
698
- y: 7.7059999999999995,
699
- w: 23.34,
700
- sw: 0.32553125,
701
- clr: 0,
702
- A: "left",
703
- R: [
704
- {
705
- T: "Col%202",
706
- S: -1,
707
- TS: [0, 13, 0, 0],
708
- },
709
- ],
710
- },
711
- {
712
- x: 12.563,
713
- y: 7.7059999999999995,
714
- w: 23.34,
715
- sw: 0.32553125,
716
- clr: 0,
717
- A: "left",
718
- R: [
719
- {
720
- T: "Col%203",
721
- S: -1,
722
- TS: [0, 13, 0, 0],
723
- },
724
- ],
725
- },
726
- {
727
- x: 0.063,
728
- y: 10.929,
729
- w: 54.46,
730
- sw: 0.32553125,
731
- clr: 0,
732
- A: "left",
733
- R: [
734
- {
735
- T: "Row%202%20Col%201",
736
- S: -1,
737
- TS: [0, 13, 0, 0],
738
- },
739
- ],
740
- },
741
- {
742
- x: 6.313,
743
- y: 10.929,
744
- w: 23.34,
745
- sw: 0.32553125,
746
- clr: 0,
747
- A: "left",
748
- R: [
749
- {
750
- T: "Col%202",
751
- S: -1,
752
- TS: [0, 13, 0, 0],
753
- },
754
- ],
755
- },
756
- {
757
- x: 12.563,
758
- y: 10.929,
759
- w: 23.34,
760
- sw: 0.32553125,
761
- clr: 0,
762
- A: "left",
763
- R: [
764
- {
765
- T: "Col%203",
766
- S: -1,
767
- TS: [0, 13, 0, 0],
768
- },
769
- ],
770
- },
771
- {
772
- x: 0.063,
773
- y: 14.151,
774
- w: 54.46,
775
- sw: 0.32553125,
776
- clr: 0,
777
- A: "left",
778
- R: [
779
- {
780
- T: "Row%203%20Col%201",
781
- S: -1,
782
- TS: [0, 13, 0, 0],
783
- },
784
- ],
785
- },
786
- {
787
- x: 6.313,
788
- y: 14.151,
789
- w: 23.34,
790
- sw: 0.32553125,
791
- clr: 0,
792
- A: "left",
793
- R: [
794
- {
795
- T: "Col%202",
796
- S: -1,
797
- TS: [0, 13, 0, 0],
798
- },
799
- ],
800
- },
801
- {
802
- x: 12.563,
803
- y: 14.151,
804
- w: 23.34,
805
- sw: 0.32553125,
806
- clr: 0,
807
- A: "left",
808
- R: [
809
- {
810
- T: "Col%203",
811
- S: -1,
812
- TS: [0, 13, 0, 0],
813
- },
814
- ],
815
- },
816
- ],
817
- Fields: [],
818
- Boxsets: [],
819
- },
820
- ],
821
- Width: 37.188,
822
- },
823
- },
824
- };
1
+ /* eslint-disable max-lines */
2
+ import React from "react";
3
+ import { ExportTestDef } from "../export-test-def";
4
+ import {
5
+ Paragraph,
6
+ AbstractDoc,
7
+ Section,
8
+ Table,
9
+ TableRow,
10
+ TableCell,
11
+ TextRun,
12
+ Group,
13
+ render,
14
+ } from "../../../../abstract-document-jsx";
15
+ import * as TableStyle from "../../../../abstract-document/styles/table-style";
16
+ import * as TableCellStyle from "../../../../abstract-document/styles/table-cell-style";
17
+ import * as AD from "../../../../abstract-document";
18
+
19
+ const borders = { left: 2, bottom: 2, right: 2, top: 2 };
20
+ const margins = { left: 5, bottom: 5, right: 5, top: 5 };
21
+
22
+ const tablestylemargin = TableStyle.create({
23
+ cellStyle: TableCellStyle.create({ borders: borders, borderColor: "black" }),
24
+ });
25
+
26
+ const header = [
27
+ render(
28
+ <TableRow>
29
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
30
+ <Paragraph>
31
+ <TextRun text="Header 1" />
32
+ </Paragraph>
33
+ </TableCell>
34
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
35
+ <Paragraph>
36
+ <TextRun text="Header 2" />
37
+ </Paragraph>
38
+ </TableCell>
39
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
40
+ <Paragraph>
41
+ <TextRun text="Header 3" />
42
+ </Paragraph>
43
+ </TableCell>
44
+ </TableRow>
45
+ ),
46
+ render(
47
+ <TableRow>
48
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
49
+ <Paragraph>
50
+ <TextRun text="Header 4" />
51
+ </Paragraph>
52
+ </TableCell>
53
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
54
+ <Paragraph>
55
+ <TextRun text="Header 5" />
56
+ </Paragraph>
57
+ </TableCell>
58
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
59
+ <Paragraph>
60
+ <TextRun text="Header 6" />
61
+ </Paragraph>
62
+ </TableCell>
63
+ </TableRow>
64
+ ),
65
+ ];
66
+
67
+ export const test: ExportTestDef = {
68
+ name: "Pagebreak table with header 2",
69
+ abstractDocJsx: (
70
+ <AbstractDoc>
71
+ <Section>
72
+ <Table columnWidths={[150]} style={tablestylemargin}>
73
+ <TableRow>
74
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 680 }) })}>
75
+ <Paragraph>
76
+ <TextRun text="Test table starts below this line" />
77
+ </Paragraph>
78
+ </TableCell>
79
+ </TableRow>
80
+ </Table>
81
+ <Table
82
+ columnWidths={[100, 100, 100]}
83
+ style={TableStyle.create({
84
+ margins: margins,
85
+ cellStyle: TableCellStyle.create({ borders: borders, borderColor: "black" }),
86
+ })}
87
+ headerRows={header}
88
+ >
89
+ <TableRow>
90
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
91
+ <Paragraph>
92
+ <TextRun text={`Row 1 Col 1`} />
93
+ </Paragraph>
94
+ </TableCell>
95
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
96
+ <Paragraph>
97
+ <TextRun text="Col 2" />
98
+ </Paragraph>
99
+ </TableCell>
100
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
101
+ <Paragraph>
102
+ <TextRun text="Col 3" />
103
+ </Paragraph>
104
+ </TableCell>
105
+ </TableRow>
106
+ <TableRow>
107
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
108
+ <Paragraph>
109
+ <TextRun text={`Row 2 Col 1`} />
110
+ </Paragraph>
111
+ </TableCell>
112
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
113
+ <Paragraph>
114
+ <TextRun text="Col 2" />
115
+ </Paragraph>
116
+ </TableCell>
117
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
118
+ <Paragraph>
119
+ <TextRun text="Col 3" />
120
+ </Paragraph>
121
+ </TableCell>
122
+ </TableRow>
123
+ <TableRow>
124
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
125
+ <Paragraph>
126
+ <TextRun text={`Row 3 Col 1`} />
127
+ </Paragraph>
128
+ </TableCell>
129
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
130
+ <Paragraph>
131
+ <TextRun text="Col 2" />
132
+ </Paragraph>
133
+ </TableCell>
134
+ <TableCell style={TableCellStyle.create({ padding: AD.LayoutFoundation.create({ top: 20, bottom: 20 }) })}>
135
+ <Paragraph>
136
+ <TextRun text="Col 3" />
137
+ </Paragraph>
138
+ </TableCell>
139
+ </TableRow>
140
+ </Table>
141
+ </Section>
142
+ </AbstractDoc>
143
+ ),
144
+ expectedPdfJson: {
145
+ formImage: {
146
+ Transcoder: "pdf2json@1.2.3 [https://github.com/modesty/pdf2json]",
147
+ Agency: "",
148
+ Id: {
149
+ AgencyId: "",
150
+ Name: "",
151
+ MC: false,
152
+ Max: 1,
153
+ Parent: "",
154
+ },
155
+ Pages: [
156
+ {
157
+ Height: 52.625,
158
+ HLines: [
159
+ {
160
+ x: 0,
161
+ y: 43.179,
162
+ w: 3,
163
+ l: 9.375,
164
+ },
165
+ {
166
+ x: -0.019,
167
+ y: 0.044,
168
+ w: 3,
169
+ l: 9.412,
170
+ },
171
+ ],
172
+ VLines: [
173
+ {
174
+ x: 9.331,
175
+ y: 0,
176
+ w: 3,
177
+ l: 43.241,
178
+ },
179
+ {
180
+ x: 0.044,
181
+ y: 0,
182
+ w: 3,
183
+ l: 43.241,
184
+ },
185
+ ],
186
+ Fills: [
187
+ {
188
+ x: 0,
189
+ y: 0,
190
+ w: 0,
191
+ h: 0,
192
+ clr: 1,
193
+ },
194
+ ],
195
+ Texts: [
196
+ {
197
+ x: -0.25,
198
+ y: 42.199,
199
+ w: 136.72,
200
+ sw: 0.32553125,
201
+ clr: 0,
202
+ A: "left",
203
+ R: [
204
+ {
205
+ T: "Test%20table%20starts%20below%20this%20line",
206
+ S: -1,
207
+ TS: [0, 13, 0, 0],
208
+ },
209
+ ],
210
+ },
211
+ ],
212
+ Fields: [],
213
+ Boxsets: [],
214
+ },
215
+ {
216
+ Height: 52.625,
217
+ HLines: [
218
+ {
219
+ x: 0.313,
220
+ y: 3.535,
221
+ w: 3,
222
+ l: 6.25,
223
+ },
224
+ {
225
+ x: 0.294,
226
+ y: 0.356,
227
+ w: 3,
228
+ l: 6.287,
229
+ },
230
+ {
231
+ x: 6.563,
232
+ y: 3.535,
233
+ w: 3,
234
+ l: 6.25,
235
+ },
236
+ {
237
+ x: 6.5,
238
+ y: 0.356,
239
+ w: 3,
240
+ l: 6.331,
241
+ },
242
+ {
243
+ x: 12.813,
244
+ y: 3.535,
245
+ w: 3,
246
+ l: 6.25,
247
+ },
248
+ {
249
+ x: 12.75,
250
+ y: 0.356,
251
+ w: 3,
252
+ l: 6.331,
253
+ },
254
+ {
255
+ x: 0.313,
256
+ y: 6.758,
257
+ w: 3,
258
+ l: 6.25,
259
+ },
260
+ {
261
+ x: 0.294,
262
+ y: 3.535,
263
+ w: 3,
264
+ l: 6.287,
265
+ },
266
+ {
267
+ x: 6.563,
268
+ y: 6.758,
269
+ w: 3,
270
+ l: 6.25,
271
+ },
272
+ {
273
+ x: 6.5,
274
+ y: 3.535,
275
+ w: 3,
276
+ l: 6.331,
277
+ },
278
+ {
279
+ x: 12.813,
280
+ y: 6.758,
281
+ w: 3,
282
+ l: 6.25,
283
+ },
284
+ {
285
+ x: 12.75,
286
+ y: 3.535,
287
+ w: 3,
288
+ l: 6.331,
289
+ },
290
+ {
291
+ x: 0.313,
292
+ y: 9.98,
293
+ w: 3,
294
+ l: 6.25,
295
+ },
296
+ {
297
+ x: 0.294,
298
+ y: 6.758,
299
+ w: 3,
300
+ l: 6.287,
301
+ },
302
+ {
303
+ x: 6.563,
304
+ y: 9.98,
305
+ w: 3,
306
+ l: 6.25,
307
+ },
308
+ {
309
+ x: 6.5,
310
+ y: 6.758,
311
+ w: 3,
312
+ l: 6.331,
313
+ },
314
+ {
315
+ x: 12.813,
316
+ y: 9.98,
317
+ w: 3,
318
+ l: 6.25,
319
+ },
320
+ {
321
+ x: 12.75,
322
+ y: 6.758,
323
+ w: 3,
324
+ l: 6.331,
325
+ },
326
+ {
327
+ x: 0.313,
328
+ y: 13.203,
329
+ w: 3,
330
+ l: 6.25,
331
+ },
332
+ {
333
+ x: 0.294,
334
+ y: 9.98,
335
+ w: 3,
336
+ l: 6.287,
337
+ },
338
+ {
339
+ x: 6.563,
340
+ y: 13.203,
341
+ w: 3,
342
+ l: 6.25,
343
+ },
344
+ {
345
+ x: 6.5,
346
+ y: 9.98,
347
+ w: 3,
348
+ l: 6.331,
349
+ },
350
+ {
351
+ x: 12.813,
352
+ y: 13.203,
353
+ w: 3,
354
+ l: 6.25,
355
+ },
356
+ {
357
+ x: 12.75,
358
+ y: 9.98,
359
+ w: 3,
360
+ l: 6.331,
361
+ },
362
+ {
363
+ x: 0.313,
364
+ y: 16.381,
365
+ w: 3,
366
+ l: 6.25,
367
+ },
368
+ {
369
+ x: 0.294,
370
+ y: 13.203,
371
+ w: 3,
372
+ l: 6.287,
373
+ },
374
+ {
375
+ x: 6.563,
376
+ y: 16.381,
377
+ w: 3,
378
+ l: 6.25,
379
+ },
380
+ {
381
+ x: 6.5,
382
+ y: 13.203,
383
+ w: 3,
384
+ l: 6.331,
385
+ },
386
+ {
387
+ x: 12.813,
388
+ y: 16.381,
389
+ w: 3,
390
+ l: 6.25,
391
+ },
392
+ {
393
+ x: 12.75,
394
+ y: 13.203,
395
+ w: 3,
396
+ l: 6.331,
397
+ },
398
+ ],
399
+ VLines: [
400
+ {
401
+ x: 6.563,
402
+ y: 0.313,
403
+ w: 3,
404
+ l: 3.241,
405
+ },
406
+ {
407
+ x: 0.356,
408
+ y: 0.313,
409
+ w: 3,
410
+ l: 3.241,
411
+ },
412
+ {
413
+ x: 12.813,
414
+ y: 0.313,
415
+ w: 3,
416
+ l: 3.241,
417
+ },
418
+ {
419
+ x: 6.563,
420
+ y: 0.313,
421
+ w: 3,
422
+ l: 3.241,
423
+ },
424
+ {
425
+ x: 19.019,
426
+ y: 0.313,
427
+ w: 3,
428
+ l: 3.241,
429
+ },
430
+ {
431
+ x: 12.813,
432
+ y: 0.313,
433
+ w: 3,
434
+ l: 3.241,
435
+ },
436
+ {
437
+ x: 6.563,
438
+ y: 3.535,
439
+ w: 3,
440
+ l: 3.241,
441
+ },
442
+ {
443
+ x: 0.356,
444
+ y: 3.535,
445
+ w: 3,
446
+ l: 3.241,
447
+ },
448
+ {
449
+ x: 12.813,
450
+ y: 3.535,
451
+ w: 3,
452
+ l: 3.241,
453
+ },
454
+ {
455
+ x: 6.563,
456
+ y: 3.535,
457
+ w: 3,
458
+ l: 3.241,
459
+ },
460
+ {
461
+ x: 19.019,
462
+ y: 3.535,
463
+ w: 3,
464
+ l: 3.241,
465
+ },
466
+ {
467
+ x: 12.813,
468
+ y: 3.535,
469
+ w: 3,
470
+ l: 3.241,
471
+ },
472
+ {
473
+ x: 6.563,
474
+ y: 6.758,
475
+ w: 3,
476
+ l: 3.241,
477
+ },
478
+ {
479
+ x: 0.356,
480
+ y: 6.758,
481
+ w: 3,
482
+ l: 3.241,
483
+ },
484
+ {
485
+ x: 12.813,
486
+ y: 6.758,
487
+ w: 3,
488
+ l: 3.241,
489
+ },
490
+ {
491
+ x: 6.563,
492
+ y: 6.758,
493
+ w: 3,
494
+ l: 3.241,
495
+ },
496
+ {
497
+ x: 19.019,
498
+ y: 6.758,
499
+ w: 3,
500
+ l: 3.241,
501
+ },
502
+ {
503
+ x: 12.813,
504
+ y: 6.758,
505
+ w: 3,
506
+ l: 3.241,
507
+ },
508
+ {
509
+ x: 6.563,
510
+ y: 9.98,
511
+ w: 3,
512
+ l: 3.241,
513
+ },
514
+ {
515
+ x: 0.356,
516
+ y: 9.98,
517
+ w: 3,
518
+ l: 3.241,
519
+ },
520
+ {
521
+ x: 12.813,
522
+ y: 9.98,
523
+ w: 3,
524
+ l: 3.241,
525
+ },
526
+ {
527
+ x: 6.563,
528
+ y: 9.98,
529
+ w: 3,
530
+ l: 3.241,
531
+ },
532
+ {
533
+ x: 19.019,
534
+ y: 9.98,
535
+ w: 3,
536
+ l: 3.241,
537
+ },
538
+ {
539
+ x: 12.813,
540
+ y: 9.98,
541
+ w: 3,
542
+ l: 3.241,
543
+ },
544
+ {
545
+ x: 6.563,
546
+ y: 13.203,
547
+ w: 3,
548
+ l: 3.241,
549
+ },
550
+ {
551
+ x: 0.356,
552
+ y: 13.203,
553
+ w: 3,
554
+ l: 3.241,
555
+ },
556
+ {
557
+ x: 12.813,
558
+ y: 13.203,
559
+ w: 3,
560
+ l: 3.241,
561
+ },
562
+ {
563
+ x: 6.563,
564
+ y: 13.203,
565
+ w: 3,
566
+ l: 3.241,
567
+ },
568
+ {
569
+ x: 19.019,
570
+ y: 13.203,
571
+ w: 3,
572
+ l: 3.241,
573
+ },
574
+ {
575
+ x: 12.813,
576
+ y: 13.203,
577
+ w: 3,
578
+ l: 3.241,
579
+ },
580
+ ],
581
+ Fills: [
582
+ {
583
+ x: 0,
584
+ y: 0,
585
+ w: 0,
586
+ h: 0,
587
+ clr: 1,
588
+ },
589
+ ],
590
+ Texts: [
591
+ {
592
+ x: 0.063,
593
+ y: 1.2610000000000001,
594
+ w: 41.13,
595
+ sw: 0.32553125,
596
+ clr: 0,
597
+ A: "left",
598
+ R: [
599
+ {
600
+ T: "Header%201",
601
+ S: -1,
602
+ TS: [0, 13, 0, 0],
603
+ },
604
+ ],
605
+ },
606
+ {
607
+ x: 6.313,
608
+ y: 1.2610000000000001,
609
+ w: 41.13,
610
+ sw: 0.32553125,
611
+ clr: 0,
612
+ A: "left",
613
+ R: [
614
+ {
615
+ T: "Header%202",
616
+ S: -1,
617
+ TS: [0, 13, 0, 0],
618
+ },
619
+ ],
620
+ },
621
+ {
622
+ x: 12.563,
623
+ y: 1.2610000000000001,
624
+ w: 41.13,
625
+ sw: 0.32553125,
626
+ clr: 0,
627
+ A: "left",
628
+ R: [
629
+ {
630
+ T: "Header%203",
631
+ S: -1,
632
+ TS: [0, 13, 0, 0],
633
+ },
634
+ ],
635
+ },
636
+ {
637
+ x: 0.063,
638
+ y: 4.484,
639
+ w: 41.13,
640
+ sw: 0.32553125,
641
+ clr: 0,
642
+ A: "left",
643
+ R: [
644
+ {
645
+ T: "Header%204",
646
+ S: -1,
647
+ TS: [0, 13, 0, 0],
648
+ },
649
+ ],
650
+ },
651
+ {
652
+ x: 6.313,
653
+ y: 4.484,
654
+ w: 41.13,
655
+ sw: 0.32553125,
656
+ clr: 0,
657
+ A: "left",
658
+ R: [
659
+ {
660
+ T: "Header%205",
661
+ S: -1,
662
+ TS: [0, 13, 0, 0],
663
+ },
664
+ ],
665
+ },
666
+ {
667
+ x: 12.563,
668
+ y: 4.484,
669
+ w: 41.13,
670
+ sw: 0.32553125,
671
+ clr: 0,
672
+ A: "left",
673
+ R: [
674
+ {
675
+ T: "Header%206",
676
+ S: -1,
677
+ TS: [0, 13, 0, 0],
678
+ },
679
+ ],
680
+ },
681
+ {
682
+ x: 0.063,
683
+ y: 7.7059999999999995,
684
+ w: 54.46,
685
+ sw: 0.32553125,
686
+ clr: 0,
687
+ A: "left",
688
+ R: [
689
+ {
690
+ T: "Row%201%20Col%201",
691
+ S: -1,
692
+ TS: [0, 13, 0, 0],
693
+ },
694
+ ],
695
+ },
696
+ {
697
+ x: 6.313,
698
+ y: 7.7059999999999995,
699
+ w: 23.34,
700
+ sw: 0.32553125,
701
+ clr: 0,
702
+ A: "left",
703
+ R: [
704
+ {
705
+ T: "Col%202",
706
+ S: -1,
707
+ TS: [0, 13, 0, 0],
708
+ },
709
+ ],
710
+ },
711
+ {
712
+ x: 12.563,
713
+ y: 7.7059999999999995,
714
+ w: 23.34,
715
+ sw: 0.32553125,
716
+ clr: 0,
717
+ A: "left",
718
+ R: [
719
+ {
720
+ T: "Col%203",
721
+ S: -1,
722
+ TS: [0, 13, 0, 0],
723
+ },
724
+ ],
725
+ },
726
+ {
727
+ x: 0.063,
728
+ y: 10.929,
729
+ w: 54.46,
730
+ sw: 0.32553125,
731
+ clr: 0,
732
+ A: "left",
733
+ R: [
734
+ {
735
+ T: "Row%202%20Col%201",
736
+ S: -1,
737
+ TS: [0, 13, 0, 0],
738
+ },
739
+ ],
740
+ },
741
+ {
742
+ x: 6.313,
743
+ y: 10.929,
744
+ w: 23.34,
745
+ sw: 0.32553125,
746
+ clr: 0,
747
+ A: "left",
748
+ R: [
749
+ {
750
+ T: "Col%202",
751
+ S: -1,
752
+ TS: [0, 13, 0, 0],
753
+ },
754
+ ],
755
+ },
756
+ {
757
+ x: 12.563,
758
+ y: 10.929,
759
+ w: 23.34,
760
+ sw: 0.32553125,
761
+ clr: 0,
762
+ A: "left",
763
+ R: [
764
+ {
765
+ T: "Col%203",
766
+ S: -1,
767
+ TS: [0, 13, 0, 0],
768
+ },
769
+ ],
770
+ },
771
+ {
772
+ x: 0.063,
773
+ y: 14.151,
774
+ w: 54.46,
775
+ sw: 0.32553125,
776
+ clr: 0,
777
+ A: "left",
778
+ R: [
779
+ {
780
+ T: "Row%203%20Col%201",
781
+ S: -1,
782
+ TS: [0, 13, 0, 0],
783
+ },
784
+ ],
785
+ },
786
+ {
787
+ x: 6.313,
788
+ y: 14.151,
789
+ w: 23.34,
790
+ sw: 0.32553125,
791
+ clr: 0,
792
+ A: "left",
793
+ R: [
794
+ {
795
+ T: "Col%202",
796
+ S: -1,
797
+ TS: [0, 13, 0, 0],
798
+ },
799
+ ],
800
+ },
801
+ {
802
+ x: 12.563,
803
+ y: 14.151,
804
+ w: 23.34,
805
+ sw: 0.32553125,
806
+ clr: 0,
807
+ A: "left",
808
+ R: [
809
+ {
810
+ T: "Col%203",
811
+ S: -1,
812
+ TS: [0, 13, 0, 0],
813
+ },
814
+ ],
815
+ },
816
+ ],
817
+ Fields: [],
818
+ Boxsets: [],
819
+ },
820
+ ],
821
+ Width: 37.188,
822
+ },
823
+ },
824
+ };