@rentnerkev/pdf 0.0.0-stage → 0.1.1

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 (355) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +135 -2
  3. package/THIRD_PARTY_NOTICES.md +152 -0
  4. package/dist/components/Types/host.d.ts +3 -0
  5. package/dist/components/Types/host.d.ts.map +1 -0
  6. package/dist/components/Types/host.js +2 -0
  7. package/dist/components/Types/host.js.map +1 -0
  8. package/dist/components/Types/props.d.ts +504 -0
  9. package/dist/components/Types/props.d.ts.map +1 -0
  10. package/dist/components/Types/props.js +2 -0
  11. package/dist/components/Types/props.js.map +1 -0
  12. package/dist/components/components.d.ts +87 -0
  13. package/dist/components/components.d.ts.map +1 -0
  14. package/dist/components/components.js +86 -0
  15. package/dist/components/components.js.map +1 -0
  16. package/dist/components/host.d.ts +7 -0
  17. package/dist/components/host.d.ts.map +1 -0
  18. package/dist/components/host.js +15 -0
  19. package/dist/components/host.js.map +1 -0
  20. package/dist/engine/Types/backend.d.ts +120 -0
  21. package/dist/engine/Types/backend.d.ts.map +1 -0
  22. package/dist/engine/Types/backend.js +2 -0
  23. package/dist/engine/Types/backend.js.map +1 -0
  24. package/dist/engine/Types/engine.d.ts +192 -0
  25. package/dist/engine/Types/engine.d.ts.map +1 -0
  26. package/dist/engine/Types/engine.js +2 -0
  27. package/dist/engine/Types/engine.js.map +1 -0
  28. package/dist/engine/Types/errors.d.ts +16 -0
  29. package/dist/engine/Types/errors.d.ts.map +1 -0
  30. package/dist/engine/Types/errors.js +2 -0
  31. package/dist/engine/Types/errors.js.map +1 -0
  32. package/dist/engine/Types/limits.d.ts +55 -0
  33. package/dist/engine/Types/limits.d.ts.map +1 -0
  34. package/dist/engine/Types/limits.js +2 -0
  35. package/dist/engine/Types/limits.js.map +1 -0
  36. package/dist/engine/Types/render-options.d.ts +71 -0
  37. package/dist/engine/Types/render-options.d.ts.map +1 -0
  38. package/dist/engine/Types/render-options.js +2 -0
  39. package/dist/engine/Types/render-options.js.map +1 -0
  40. package/dist/engine/Types/render-result.d.ts +80 -0
  41. package/dist/engine/Types/render-result.d.ts.map +1 -0
  42. package/dist/engine/Types/render-result.js +2 -0
  43. package/dist/engine/Types/render-result.js.map +1 -0
  44. package/dist/engine/abort.d.ts +23 -0
  45. package/dist/engine/abort.d.ts.map +1 -0
  46. package/dist/engine/abort.js +71 -0
  47. package/dist/engine/abort.js.map +1 -0
  48. package/dist/engine/assets.d.ts +22 -0
  49. package/dist/engine/assets.d.ts.map +1 -0
  50. package/dist/engine/assets.js +40 -0
  51. package/dist/engine/assets.js.map +1 -0
  52. package/dist/engine/backend.d.ts +16 -0
  53. package/dist/engine/backend.d.ts.map +1 -0
  54. package/dist/engine/backend.js +43 -0
  55. package/dist/engine/backend.js.map +1 -0
  56. package/dist/engine/backends/native.d.ts +11 -0
  57. package/dist/engine/backends/native.d.ts.map +1 -0
  58. package/dist/engine/backends/native.js +62 -0
  59. package/dist/engine/backends/native.js.map +1 -0
  60. package/dist/engine/backends/wasm.d.ts +16 -0
  61. package/dist/engine/backends/wasm.d.ts.map +1 -0
  62. package/dist/engine/backends/wasm.js +216 -0
  63. package/dist/engine/backends/wasm.js.map +1 -0
  64. package/dist/engine/channel.d.ts +41 -0
  65. package/dist/engine/channel.d.ts.map +1 -0
  66. package/dist/engine/channel.js +140 -0
  67. package/dist/engine/channel.js.map +1 -0
  68. package/dist/engine/create-engine.d.ts +8 -0
  69. package/dist/engine/create-engine.d.ts.map +1 -0
  70. package/dist/engine/create-engine.js +120 -0
  71. package/dist/engine/create-engine.js.map +1 -0
  72. package/dist/engine/default-fonts.d.ts +9 -0
  73. package/dist/engine/default-fonts.d.ts.map +1 -0
  74. package/dist/engine/default-fonts.js +42 -0
  75. package/dist/engine/default-fonts.js.map +1 -0
  76. package/dist/engine/encode.d.ts +9 -0
  77. package/dist/engine/encode.d.ts.map +1 -0
  78. package/dist/engine/encode.js +199 -0
  79. package/dist/engine/encode.js.map +1 -0
  80. package/dist/engine/errors.d.ts +37 -0
  81. package/dist/engine/errors.d.ts.map +1 -0
  82. package/dist/engine/errors.js +71 -0
  83. package/dist/engine/errors.js.map +1 -0
  84. package/dist/engine/fonts.d.ts +9 -0
  85. package/dist/engine/fonts.d.ts.map +1 -0
  86. package/dist/engine/fonts.js +14 -0
  87. package/dist/engine/fonts.js.map +1 -0
  88. package/dist/engine/lifecycle.d.ts +40 -0
  89. package/dist/engine/lifecycle.d.ts.map +1 -0
  90. package/dist/engine/lifecycle.js +104 -0
  91. package/dist/engine/lifecycle.js.map +1 -0
  92. package/dist/engine/markup.d.ts +13 -0
  93. package/dist/engine/markup.d.ts.map +1 -0
  94. package/dist/engine/markup.js +14 -0
  95. package/dist/engine/markup.js.map +1 -0
  96. package/dist/engine/options.d.ts +12 -0
  97. package/dist/engine/options.d.ts.map +1 -0
  98. package/dist/engine/options.js +71 -0
  99. package/dist/engine/options.js.map +1 -0
  100. package/dist/engine/pdf-bytes.d.ts +8 -0
  101. package/dist/engine/pdf-bytes.d.ts.map +1 -0
  102. package/dist/engine/pdf-bytes.js +9 -0
  103. package/dist/engine/pdf-bytes.js.map +1 -0
  104. package/dist/engine/prepare.d.ts +17 -0
  105. package/dist/engine/prepare.d.ts.map +1 -0
  106. package/dist/engine/prepare.js +44 -0
  107. package/dist/engine/prepare.js.map +1 -0
  108. package/dist/engine/render-many.d.ts +14 -0
  109. package/dist/engine/render-many.d.ts.map +1 -0
  110. package/dist/engine/render-many.js +156 -0
  111. package/dist/engine/render-many.js.map +1 -0
  112. package/dist/engine/render-result.d.ts +12 -0
  113. package/dist/engine/render-result.d.ts.map +1 -0
  114. package/dist/engine/render-result.js +62 -0
  115. package/dist/engine/render-result.js.map +1 -0
  116. package/dist/engine/render-stream.d.ts +7 -0
  117. package/dist/engine/render-stream.d.ts.map +1 -0
  118. package/dist/engine/render-stream.js +56 -0
  119. package/dist/engine/render-stream.js.map +1 -0
  120. package/dist/engine/render.d.ts +15 -0
  121. package/dist/engine/render.d.ts.map +1 -0
  122. package/dist/engine/render.js +23 -0
  123. package/dist/engine/render.js.map +1 -0
  124. package/dist/fonts/NotoSans-Bold.ttf +0 -0
  125. package/dist/fonts/NotoSans-BoldItalic.ttf +0 -0
  126. package/dist/fonts/NotoSans-Italic.ttf +0 -0
  127. package/dist/fonts/NotoSans-Regular.ttf +0 -0
  128. package/dist/fonts/OFL.txt +94 -0
  129. package/dist/fonts/sources.json +32 -0
  130. package/dist/index.d.ts +26 -0
  131. package/dist/index.d.ts.map +1 -0
  132. package/dist/index.js +11 -0
  133. package/dist/index.js.map +1 -0
  134. package/dist/ir/Types/input.d.ts +111 -0
  135. package/dist/ir/Types/input.d.ts.map +1 -0
  136. package/dist/ir/Types/input.js +2 -0
  137. package/dist/ir/Types/input.js.map +1 -0
  138. package/dist/ir/factories.d.ts +108 -0
  139. package/dist/ir/factories.d.ts.map +1 -0
  140. package/dist/ir/factories.js +410 -0
  141. package/dist/ir/factories.js.map +1 -0
  142. package/dist/ir/ir.generated.d.ts +811 -0
  143. package/dist/ir/ir.generated.d.ts.map +1 -0
  144. package/dist/ir/ir.generated.js +4 -0
  145. package/dist/ir/ir.generated.js.map +1 -0
  146. package/dist/ir/version.d.ts +9 -0
  147. package/dist/ir/version.d.ts.map +1 -0
  148. package/dist/ir/version.js +13 -0
  149. package/dist/ir/version.js.map +1 -0
  150. package/dist/jsx/Types/context.d.ts +24 -0
  151. package/dist/jsx/Types/context.d.ts.map +1 -0
  152. package/dist/jsx/Types/context.js +2 -0
  153. package/dist/jsx/Types/context.js.map +1 -0
  154. package/dist/jsx/Types/element.d.ts +30 -0
  155. package/dist/jsx/Types/element.d.ts.map +1 -0
  156. package/dist/jsx/Types/element.js +2 -0
  157. package/dist/jsx/Types/element.js.map +1 -0
  158. package/dist/jsx/Types/evaluate.d.ts +61 -0
  159. package/dist/jsx/Types/evaluate.d.ts.map +1 -0
  160. package/dist/jsx/Types/evaluate.js +2 -0
  161. package/dist/jsx/Types/evaluate.js.map +1 -0
  162. package/dist/jsx/Types/jsx.d.ts +16 -0
  163. package/dist/jsx/Types/jsx.d.ts.map +1 -0
  164. package/dist/jsx/Types/jsx.js +2 -0
  165. package/dist/jsx/Types/jsx.js.map +1 -0
  166. package/dist/jsx/context.d.ts +21 -0
  167. package/dist/jsx/context.d.ts.map +1 -0
  168. package/dist/jsx/context.js +49 -0
  169. package/dist/jsx/context.js.map +1 -0
  170. package/dist/jsx/element.d.ts +10 -0
  171. package/dist/jsx/element.d.ts.map +1 -0
  172. package/dist/jsx/element.js +19 -0
  173. package/dist/jsx/element.js.map +1 -0
  174. package/dist/jsx/evaluate.d.ts +16 -0
  175. package/dist/jsx/evaluate.d.ts.map +1 -0
  176. package/dist/jsx/evaluate.js +616 -0
  177. package/dist/jsx/evaluate.js.map +1 -0
  178. package/dist/jsx/source.d.ts +13 -0
  179. package/dist/jsx/source.d.ts.map +1 -0
  180. package/dist/jsx/source.js +49 -0
  181. package/dist/jsx/source.js.map +1 -0
  182. package/dist/jsx-dev-runtime.d.ts +9 -0
  183. package/dist/jsx-dev-runtime.d.ts.map +1 -0
  184. package/dist/jsx-dev-runtime.js +24 -0
  185. package/dist/jsx-dev-runtime.js.map +1 -0
  186. package/dist/jsx-runtime.d.ts +12 -0
  187. package/dist/jsx-runtime.d.ts.map +1 -0
  188. package/dist/jsx-runtime.js +15 -0
  189. package/dist/jsx-runtime.js.map +1 -0
  190. package/dist/native/binding.generated.d.ts +227 -0
  191. package/dist/native/loader.d.ts +22 -0
  192. package/dist/native/loader.d.ts.map +1 -0
  193. package/dist/native/loader.js +98 -0
  194. package/dist/native/loader.js.map +1 -0
  195. package/dist/native/rentnerpdf.linux-arm64-gnu.node +0 -0
  196. package/dist/native/rentnerpdf.linux-arm64-musl.node +0 -0
  197. package/dist/native/rentnerpdf.linux-x64-gnu.node +0 -0
  198. package/dist/native/rentnerpdf.linux-x64-musl.node +0 -0
  199. package/dist/native/rentnerpdf.win32-arm64-msvc.node +0 -0
  200. package/dist/native/rentnerpdf.win32-x64-msvc.node +0 -0
  201. package/dist/node.d.ts +3 -0
  202. package/dist/node.d.ts.map +1 -0
  203. package/dist/node.js +6 -0
  204. package/dist/node.js.map +1 -0
  205. package/dist/react/Types/preview.d.ts +74 -0
  206. package/dist/react/Types/preview.d.ts.map +1 -0
  207. package/dist/react/Types/preview.js +2 -0
  208. package/dist/react/Types/preview.js.map +1 -0
  209. package/dist/react/Types/render.d.ts +24 -0
  210. package/dist/react/Types/render.d.ts.map +1 -0
  211. package/dist/react/Types/render.js +2 -0
  212. package/dist/react/Types/render.js.map +1 -0
  213. package/dist/react/attributes.d.ts +8 -0
  214. package/dist/react/attributes.d.ts.map +1 -0
  215. package/dist/react/attributes.js +44 -0
  216. package/dist/react/attributes.js.map +1 -0
  217. package/dist/react/components.d.ts +60 -0
  218. package/dist/react/components.d.ts.map +1 -0
  219. package/dist/react/components.js +266 -0
  220. package/dist/react/components.js.map +1 -0
  221. package/dist/react/pdf-preview.d.ts +16 -0
  222. package/dist/react/pdf-preview.d.ts.map +1 -0
  223. package/dist/react/pdf-preview.js +26 -0
  224. package/dist/react/pdf-preview.js.map +1 -0
  225. package/dist/react/pdf-render.d.ts +15 -0
  226. package/dist/react/pdf-render.d.ts.map +1 -0
  227. package/dist/react/pdf-render.js +60 -0
  228. package/dist/react/pdf-render.js.map +1 -0
  229. package/dist/react/registry.d.ts +44 -0
  230. package/dist/react/registry.d.ts.map +1 -0
  231. package/dist/react/registry.js +105 -0
  232. package/dist/react/registry.js.map +1 -0
  233. package/dist/react/render.d.ts +36 -0
  234. package/dist/react/render.d.ts.map +1 -0
  235. package/dist/react/render.js +212 -0
  236. package/dist/react/render.js.map +1 -0
  237. package/dist/react/same-document.d.ts +8 -0
  238. package/dist/react/same-document.d.ts.map +1 -0
  239. package/dist/react/same-document.js +59 -0
  240. package/dist/react/same-document.js.map +1 -0
  241. package/dist/react/static.d.ts +13 -0
  242. package/dist/react/static.d.ts.map +1 -0
  243. package/dist/react/static.js +65 -0
  244. package/dist/react/static.js.map +1 -0
  245. package/dist/react/use-pdf.d.ts +25 -0
  246. package/dist/react/use-pdf.d.ts.map +1 -0
  247. package/dist/react/use-pdf.js +59 -0
  248. package/dist/react/use-pdf.js.map +1 -0
  249. package/dist/react.d.ts +9 -0
  250. package/dist/react.d.ts.map +1 -0
  251. package/dist/react.js +10 -0
  252. package/dist/react.js.map +1 -0
  253. package/dist/tailwind/Types/merge-config.d.ts +28 -0
  254. package/dist/tailwind/Types/merge-config.d.ts.map +1 -0
  255. package/dist/tailwind/Types/merge-config.js +2 -0
  256. package/dist/tailwind/Types/merge-config.js.map +1 -0
  257. package/dist/tailwind/merge-config.d.ts +45 -0
  258. package/dist/tailwind/merge-config.d.ts.map +1 -0
  259. package/dist/tailwind/merge-config.js +46 -0
  260. package/dist/tailwind/merge-config.js.map +1 -0
  261. package/dist/tailwind-merge.d.ts +3 -0
  262. package/dist/tailwind-merge.d.ts.map +1 -0
  263. package/dist/tailwind-merge.js +4 -0
  264. package/dist/tailwind-merge.js.map +1 -0
  265. package/dist/tailwind.css +61 -0
  266. package/dist/theme/Types/css-imports.d.ts +38 -0
  267. package/dist/theme/Types/css-imports.d.ts.map +1 -0
  268. package/dist/theme/Types/css-imports.js +2 -0
  269. package/dist/theme/Types/css-imports.js.map +1 -0
  270. package/dist/theme/Types/theme.d.ts +70 -0
  271. package/dist/theme/Types/theme.d.ts.map +1 -0
  272. package/dist/theme/Types/theme.js +2 -0
  273. package/dist/theme/Types/theme.js.map +1 -0
  274. package/dist/theme/Types/warnings.d.ts +9 -0
  275. package/dist/theme/Types/warnings.d.ts.map +1 -0
  276. package/dist/theme/Types/warnings.js +2 -0
  277. package/dist/theme/Types/warnings.js.map +1 -0
  278. package/dist/theme/css-imports.d.ts +11 -0
  279. package/dist/theme/css-imports.d.ts.map +1 -0
  280. package/dist/theme/css-imports.js +138 -0
  281. package/dist/theme/css-imports.js.map +1 -0
  282. package/dist/theme/normalize.d.ts +15 -0
  283. package/dist/theme/normalize.d.ts.map +1 -0
  284. package/dist/theme/normalize.js +51 -0
  285. package/dist/theme/normalize.js.map +1 -0
  286. package/dist/theme/package-imports.d.ts +16 -0
  287. package/dist/theme/package-imports.d.ts.map +1 -0
  288. package/dist/theme/package-imports.js +90 -0
  289. package/dist/theme/package-imports.js.map +1 -0
  290. package/dist/theme/theme-from-css-file.d.ts +35 -0
  291. package/dist/theme/theme-from-css-file.d.ts.map +1 -0
  292. package/dist/theme/theme-from-css-file.js +223 -0
  293. package/dist/theme/theme-from-css-file.js.map +1 -0
  294. package/dist/theme/theme-from-css.d.ts +28 -0
  295. package/dist/theme/theme-from-css.d.ts.map +1 -0
  296. package/dist/theme/theme-from-css.js +62 -0
  297. package/dist/theme/theme-from-css.js.map +1 -0
  298. package/dist/theme/warnings.d.ts +13 -0
  299. package/dist/theme/warnings.d.ts.map +1 -0
  300. package/dist/theme/warnings.js +34 -0
  301. package/dist/theme/warnings.js.map +1 -0
  302. package/dist/vite/Types/plugin.d.ts +47 -0
  303. package/dist/vite/Types/plugin.d.ts.map +1 -0
  304. package/dist/vite/Types/plugin.js +5 -0
  305. package/dist/vite/Types/plugin.js.map +1 -0
  306. package/dist/vite/plugin.d.ts +30 -0
  307. package/dist/vite/plugin.d.ts.map +1 -0
  308. package/dist/vite/plugin.js +80 -0
  309. package/dist/vite/plugin.js.map +1 -0
  310. package/dist/vite.d.ts +3 -0
  311. package/dist/vite.d.ts.map +1 -0
  312. package/dist/vite.js +6 -0
  313. package/dist/vite.js.map +1 -0
  314. package/dist/wasm/binding.generated.d.ts +259 -0
  315. package/dist/wasm/loader.d.ts +17 -0
  316. package/dist/wasm/loader.d.ts.map +1 -0
  317. package/dist/wasm/loader.js +74 -0
  318. package/dist/wasm/loader.js.map +1 -0
  319. package/dist/wasm/pkg/rentnerpdf_wasm.d.ts +259 -0
  320. package/dist/wasm/pkg/rentnerpdf_wasm.js +883 -0
  321. package/dist/wasm/pkg/rentnerpdf_wasm_bg.wasm +0 -0
  322. package/dist/wasm/pkg/rentnerpdf_wasm_bg.wasm.d.ts +40 -0
  323. package/dist/worker/Types/connection.d.ts +25 -0
  324. package/dist/worker/Types/connection.d.ts.map +1 -0
  325. package/dist/worker/Types/connection.js +2 -0
  326. package/dist/worker/Types/connection.js.map +1 -0
  327. package/dist/worker/Types/protocol.d.ts +62 -0
  328. package/dist/worker/Types/protocol.d.ts.map +1 -0
  329. package/dist/worker/Types/protocol.js +2 -0
  330. package/dist/worker/Types/protocol.js.map +1 -0
  331. package/dist/worker/Types/worker-engine.d.ts +91 -0
  332. package/dist/worker/Types/worker-engine.d.ts.map +1 -0
  333. package/dist/worker/Types/worker-engine.js +2 -0
  334. package/dist/worker/Types/worker-engine.js.map +1 -0
  335. package/dist/worker/client.d.ts +20 -0
  336. package/dist/worker/client.d.ts.map +1 -0
  337. package/dist/worker/client.js +131 -0
  338. package/dist/worker/client.js.map +1 -0
  339. package/dist/worker/connection.d.ts +5 -0
  340. package/dist/worker/connection.d.ts.map +1 -0
  341. package/dist/worker/connection.js +119 -0
  342. package/dist/worker/connection.js.map +1 -0
  343. package/dist/worker/protocol.d.ts +24 -0
  344. package/dist/worker/protocol.d.ts.map +1 -0
  345. package/dist/worker/protocol.js +71 -0
  346. package/dist/worker/protocol.js.map +1 -0
  347. package/dist/worker/serve.d.ts +26 -0
  348. package/dist/worker/serve.d.ts.map +1 -0
  349. package/dist/worker/serve.js +119 -0
  350. package/dist/worker/serve.js.map +1 -0
  351. package/dist/worker.d.ts +4 -0
  352. package/dist/worker.d.ts.map +1 -0
  353. package/dist/worker.js +8 -0
  354. package/dist/worker.js.map +1 -0
  355. package/package.json +80 -5
@@ -0,0 +1,504 @@
1
+ import type { Dir, FacturX, HeaderScope, TableColumn as IrTableColumn, MarkerSelect, NumberFormat, Orientation, PageNumberFormat, PageNumbering, PageScope, PageSize, Relationship, RunningTotals, Standard, Style, StyleLength, TableTotals, TextAlign } from '../../ir/ir.generated.ts';
2
+ import type { AttachmentSource, ImageSource, LetterheadInput, SvgSource } from '../../ir/Types/input.ts';
3
+ /**
4
+ * An outline entry (bookmark): a title, `{ title, level }`, or `false` to
5
+ * keep a heading (`role="h1"` … `"h6"`) out of the outline. Headings are
6
+ * entries automatically, titled with their text, at their heading level.
7
+ */
8
+ export type BookmarkInput = string | false | {
9
+ /** Defaults to the text of a `Text`; other nodes need one. */
10
+ readonly title?: string;
11
+ /** Nesting level from 1; defaults to the heading level, else 1. */
12
+ readonly level?: number;
13
+ };
14
+ /** Anchor and outline props of every content node. */
15
+ export interface NavigationAttributes {
16
+ /**
17
+ * Anchor name: `Link href="#id"` jumps here, and so do links to
18
+ * `file.pdf#id` from other documents. Unique in the document.
19
+ */
20
+ readonly id?: string;
21
+ /** Adds, changes or (with `false`) removes the node's outline entry. */
22
+ readonly bookmark?: BookmarkInput;
23
+ }
24
+ /** Styling shared by pages, views and text. */
25
+ export interface BoxAttributes {
26
+ /** Tailwind CSS v4 utility classes, for example `flex gap-4`. */
27
+ readonly className?: string;
28
+ /** Typed style properties; they win over `className` like inline styles. */
29
+ readonly style?: Style;
30
+ }
31
+ /** Document metadata. */
32
+ export interface DocumentAttributes {
33
+ readonly title?: string;
34
+ readonly author?: string;
35
+ readonly subject?: string;
36
+ readonly keywords?: readonly string[];
37
+ /** Natural language of the document as a BCP 47 tag, for example `de-DE`. */
38
+ readonly lang?: string;
39
+ /**
40
+ * Base direction of every page, like `dir` on HTML's root element:
41
+ * `'rtl'` for Arabic or Hebrew documents. Nodes inherit it unless they
42
+ * set their own `dir`.
43
+ */
44
+ readonly dir?: Dir;
45
+ /** The application that created the content, for example `Billing 4.2`. */
46
+ readonly creator?: string;
47
+ /**
48
+ * Creation date written to the PDF: a `Date` (stored in UTC) or an ISO
49
+ * 8601 string such as `2026-12-01` or `2026-12-01T09:30:00+01:00`.
50
+ * Without it the PDF has no date, so the same input always gives the
51
+ * same bytes. PDF/A requires it.
52
+ */
53
+ readonly creationDate?: Date | string;
54
+ /**
55
+ * Standards the PDF conforms to: `'pdf-a-2b'`, `'pdf-a-2u'`,
56
+ * `'pdf-a-3b'`, `'pdf-a-3u'` or `'pdf-ua-1'` (accessible PDF), or a list
57
+ * with at most one of each family. The engine validates the document
58
+ * while writing it; what the standard forbids fails the render with
59
+ * `STANDARD_VIOLATION`. PDF/UA-1 implies `tagged` and needs `title`,
60
+ * `lang` and alt text for every image and figure that is not
61
+ * decorative.
62
+ */
63
+ readonly standard?: Standard | readonly Standard[];
64
+ /**
65
+ * Writes a tagged PDF: a structure tree in reading order with
66
+ * headings, paragraphs, lists, tables and their header cells, figures
67
+ * with alt text and links, and headers, footers, page numbers and
68
+ * decoration marked as artifacts, so screen readers and reflow work.
69
+ * Default `false`; `standard: 'pdf-ua-1'` implies it.
70
+ */
71
+ readonly tagged?: boolean;
72
+ /**
73
+ * Files embedded in the PDF, such as the XML of an electronic invoice:
74
+ * `{ name: 'factur-x.xml', src: xml, mimeType: 'text/xml',
75
+ * description: 'Factur-X invoice', relationship: 'Alternative' }`.
76
+ */
77
+ readonly attachments?: readonly AttachmentAttributes[];
78
+ /**
79
+ * The Factur-X / ZUGFeRD descriptor in the XMP metadata, for an
80
+ * invoice XML attached as `factur-x.xml` (needs a PDF/A-3 standard):
81
+ * `{ conformanceLevel: 'EN 16931' }`.
82
+ */
83
+ readonly facturX?: FacturX;
84
+ }
85
+ /** A file embedded in the PDF. */
86
+ export interface AttachmentAttributes {
87
+ /** The file name viewers show, for example `factur-x.xml`; unique. */
88
+ readonly name: string;
89
+ /** The content: bytes, or a string (embedded as UTF-8). */
90
+ readonly src: AttachmentSource;
91
+ /** MIME type, for example `text/xml`. Required by PDF/A-3. */
92
+ readonly mimeType?: string;
93
+ /** A description viewers show. Required by PDF/A-3. */
94
+ readonly description?: string;
95
+ /**
96
+ * How the file relates to the document; default `'Unspecified'`.
97
+ * Written in PDF/A-3 (`/AFRelationship`).
98
+ */
99
+ readonly relationship?: Relationship;
100
+ /**
101
+ * The file's modification date, like `creationDate`. Without it the
102
+ * file has no date; in PDF/A-3 it gets the document's `creationDate`.
103
+ */
104
+ readonly modificationDate?: Date | string;
105
+ }
106
+ /** Heading roles; the text of a heading is its outline entry too. */
107
+ export type HeadingRole = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
108
+ /**
109
+ * Structure roles of a `Text` in tagged PDF: a paragraph (`p`, the
110
+ * default), a heading, `caption`, `blockquote`, `code`, `label` (the
111
+ * bullet or number of a list item), `presentation` (part of the enclosing
112
+ * element) or `artifact` (decoration, left out of the structure).
113
+ */
114
+ export type TextRole = 'p' | HeadingRole | 'caption' | 'blockquote' | 'code' | 'label' | 'presentation' | 'none' | 'artifact';
115
+ /**
116
+ * Structure roles of a `View`: grouping (`section`, `article`, `part`,
117
+ * `div`, `blockquote`), a `figure` described by `alt`, a `list` of
118
+ * `listitem`s, a `caption`, or a text role for a view whose texts form one
119
+ * paragraph or heading. Without a role a view has no element of its own.
120
+ */
121
+ export type ViewRole = 'section' | 'article' | 'part' | 'div' | 'blockquote' | 'caption' | 'figure' | 'list' | 'listitem' | 'label' | 'p' | HeadingRole | 'code' | 'presentation' | 'none' | 'artifact';
122
+ /**
123
+ * Structure roles of an `Image` or `Svg`: a `figure` (the default, needs
124
+ * `alt`) or `artifact` for decoration; `alt=""` marks it decorative too.
125
+ */
126
+ export type ImageRole = 'figure' | 'artifact' | 'presentation' | 'none';
127
+ /**
128
+ * Structure roles of a `Table`: a data `table` (the default) or
129
+ * `presentation` for a table that only arranges content.
130
+ */
131
+ export type TableRole = 'table' | 'presentation' | 'none' | 'artifact';
132
+ /** Structure roles of a `Cell`: a header (`th`) or data (`td`) cell. */
133
+ export type CellRole = 'th' | 'td';
134
+ export interface PageAttributes extends BoxAttributes {
135
+ /** `A3`, `A4`, `A5`, `Letter`, `Legal` or `{ width, height }` in points. */
136
+ readonly size?: PageSize;
137
+ readonly orientation?: Orientation;
138
+ /**
139
+ * Stationery: `{ src: pdfBytes, page: 0 }` draws that page of an existing
140
+ * PDF behind the content of every page this template creates, at its own
141
+ * size from the top left corner (above `bg-*`, below the content).
142
+ */
143
+ readonly letterhead?: LetterheadInput;
144
+ /**
145
+ * Restarts the page numbers at `start` from this template on, or writes
146
+ * them in another `format` (`'lower-roman'` for a preface). The PDF's
147
+ * page labels show the same numbers.
148
+ */
149
+ readonly numbering?: PageNumbering;
150
+ }
151
+ /**
152
+ * Overrides for some pages of a template: its first page, odd or even pages
153
+ * of the document, or its last page (where its content ends). `null`
154
+ * removes the template's header, footer or letterhead on those pages.
155
+ */
156
+ export interface PageVariantProps<TNode> {
157
+ readonly header?: TNode | null;
158
+ readonly footer?: TNode | null;
159
+ readonly letterhead?: LetterheadInput | null;
160
+ }
161
+ /**
162
+ * Headers, footers and their variants. A header sits at the top and a
163
+ * footer at the bottom of every page's content box (inside the page
164
+ * padding); the content takes the space between them. A page takes each of
165
+ * header, footer and letterhead from `last`, `first`, `odd`/`even`, then
166
+ * the template itself, whichever sets it first.
167
+ */
168
+ export interface PageRegionProps<TNode> {
169
+ /** Content at the top of every page, for example a running title. */
170
+ readonly header?: TNode;
171
+ /** Content at the bottom of every page, for example "Page 1 of 3". */
172
+ readonly footer?: TNode;
173
+ readonly first?: PageVariantProps<TNode>;
174
+ readonly odd?: PageVariantProps<TNode>;
175
+ readonly even?: PageVariantProps<TNode>;
176
+ readonly last?: PageVariantProps<TNode>;
177
+ }
178
+ /** A running marker and its value, for example the current customer. */
179
+ export interface MarkerAssignment {
180
+ readonly name: string;
181
+ readonly value: string;
182
+ }
183
+ /**
184
+ * A running marker a text sets; without a value it takes the text, for
185
+ * example a chapter heading.
186
+ */
187
+ export interface TextMarkerAssignment {
188
+ readonly name: string;
189
+ readonly value?: string;
190
+ }
191
+ export interface ViewAttributes extends BoxAttributes, NavigationAttributes {
192
+ /** Structure role for tagged PDF, for example `section` or `figure`. */
193
+ readonly role?: ViewRole;
194
+ /** Replacement text for assistive technology: describes a `figure`. */
195
+ readonly alt?: string;
196
+ /** Language of this subtree as a BCP 47 tag. */
197
+ readonly lang?: string;
198
+ /**
199
+ * Base direction of this subtree, as HTML's `dir`: text direction and
200
+ * `text-start`/`text-end`, flex rows, grid and table columns, logical
201
+ * sides (`ps-*`, `ms-*`) and the `rtl:`/`ltr:` variants. `'auto'` takes
202
+ * the direction of the first strong character of the text inside.
203
+ */
204
+ readonly dir?: Dir;
205
+ /**
206
+ * Sets running markers where the box starts, like CSS `string-set`:
207
+ * `<Marker name="customer" />` in a header or footer shows the value
208
+ * on every page.
209
+ */
210
+ readonly marker?: MarkerAssignment | readonly MarkerAssignment[];
211
+ }
212
+ export interface LinkAttributes extends ViewAttributes {
213
+ /**
214
+ * `#id` jumps to the node with that `id`; an `http`, `https`, `mailto`
215
+ * or `tel` URI opens in the viewer's application.
216
+ */
217
+ readonly href: string;
218
+ }
219
+ export interface AnchorAttributes {
220
+ /** The anchor name that `Link href="#id"` jumps to. */
221
+ readonly id: string;
222
+ /** An outline entry at the anchor's position. */
223
+ readonly bookmark?: BookmarkInput;
224
+ }
225
+ export interface TextAttributes extends BoxAttributes, NavigationAttributes {
226
+ /** Structure role for tagged PDF, for example `h1`; default `p`. */
227
+ readonly role?: TextRole;
228
+ /** Language of this text as a BCP 47 tag. */
229
+ readonly lang?: string;
230
+ /**
231
+ * Base direction of this text; `'auto'` detects it for every line of
232
+ * input (as without any `dir`).
233
+ */
234
+ readonly dir?: Dir;
235
+ /** Replacement text for assistive technology. */
236
+ readonly alt?: string;
237
+ /**
238
+ * Sets running markers where the text starts: a name takes the text as
239
+ * value (`<Text role="h1" marker="chapter">Results</Text>`).
240
+ */
241
+ readonly marker?: string | TextMarkerAssignment | readonly (string | TextMarkerAssignment)[];
242
+ }
243
+ /** Content of a `text()` node; numbers are converted with `String()`. */
244
+ export type TextValue = string | number | bigint;
245
+ /** The current page's number. */
246
+ export interface PageNumberProps {
247
+ /** How the number is written; default the template's `numbering.format`, else decimal. */
248
+ readonly format?: PageNumberFormat;
249
+ }
250
+ /** The number of pages of the document, or of the page template (`'section'`). */
251
+ export interface TotalPagesProps {
252
+ /** Default `'document'`. */
253
+ readonly scope?: PageScope;
254
+ /** How the count is written; default decimal. */
255
+ readonly format?: PageNumberFormat;
256
+ }
257
+ /**
258
+ * A running marker's value on the current page, like CSS `string()`:
259
+ * `first` (default) and `last` take the first or last value set on the
260
+ * page, else the value in effect where the page starts; `start` the value
261
+ * in effect at the top of the page; `first-except` is empty on pages that
262
+ * set the marker.
263
+ */
264
+ export interface MarkerProps {
265
+ readonly name: string;
266
+ readonly select?: MarkerSelect;
267
+ }
268
+ export interface ImageAttributes extends BoxAttributes, NavigationAttributes {
269
+ /**
270
+ * The image file as bytes: PNG, JPEG, GIF (first frame) or WebP. Read
271
+ * files or fetch URLs yourself; RentnerPDF never touches paths or the
272
+ * network.
273
+ */
274
+ readonly src: ImageSource;
275
+ /**
276
+ * Replacement text for assistive technology; `""` marks a decorative
277
+ * image. Tagged documents warn about images without it (`strict` and
278
+ * PDF/UA-1: an error).
279
+ */
280
+ readonly alt?: string;
281
+ /** Structure role for tagged PDF: `figure` (default) or `artifact` for decoration. */
282
+ readonly role?: ImageRole;
283
+ }
284
+ export interface SvgAttributes extends BoxAttributes, NavigationAttributes {
285
+ /**
286
+ * SVG markup as a string, or the bytes of an `.svg` file. RentnerPDF
287
+ * never loads files or URLs it references: raster images inside must be
288
+ * `data:` URLs, and text uses the engine's fonts.
289
+ */
290
+ readonly src: SvgSource;
291
+ /**
292
+ * Replacement text for assistive technology; `""` marks a decorative
293
+ * graphic. Tagged documents warn about SVGs without it (`strict` and
294
+ * PDF/UA-1: an error).
295
+ */
296
+ readonly alt?: string;
297
+ /** Structure role for tagged PDF: `figure` (default) or `artifact` for decoration. */
298
+ readonly role?: ImageRole;
299
+ }
300
+ /**
301
+ * How a column of an element table is laid out: `width` (points,
302
+ * `'auto'`, `'1fr'`, `'30mm'`, `'25%'`), the default text `align` of its
303
+ * cells, and for number columns `sum` (running totals) and `format` (how
304
+ * `value` cells and sums are written).
305
+ */
306
+ export type TableColumnLayout = Pick<IrTableColumn, 'width' | 'align' | 'sum' | 'format'>;
307
+ /**
308
+ * Props of both element and data-driven tables. Tables set no markers; a
309
+ * `View` around the table can.
310
+ */
311
+ export interface TableBaseAttributes extends Omit<ViewAttributes, 'marker' | 'role' | 'alt'> {
312
+ /** Structure role for tagged PDF: `table` (default) or `presentation` for layout. */
313
+ readonly role?: TableRole;
314
+ /** Classes every cell gets before its own, for example `px-2 py-1`. */
315
+ readonly cellClassName?: string;
316
+ /** Repeat the header rows on every page the table spans (default `true`). */
317
+ readonly repeatHeader?: boolean;
318
+ /**
319
+ * Repeat the footer rows on every page the table spans (default `true`;
320
+ * data tables: the `totals` row, default `false`, as it shows the
321
+ * grand totals).
322
+ */
323
+ readonly repeatFooter?: boolean;
324
+ /**
325
+ * Carried-forward and brought-forward rows with the running sums of the
326
+ * `sum` columns at every page break of the table.
327
+ */
328
+ readonly runningTotals?: RunningTotals;
329
+ }
330
+ export interface TableAttributes extends TableBaseAttributes {
331
+ /** One layout description per column. */
332
+ readonly columns?: readonly TableColumnLayout[];
333
+ /** Element tables have `Row` children instead of `data`. */
334
+ readonly data?: undefined;
335
+ }
336
+ /**
337
+ * A cell value of a data-driven table: a string, a number or bigint
338
+ * (written with `String()`, or integer minor units in a number column), or
339
+ * `null`/`undefined` for an empty cell.
340
+ */
341
+ export type TableCellValue = string | number | bigint | null | undefined;
342
+ /** The keys of `Row` whose values a table cell can show. */
343
+ export type TableColumnKey<Row extends object> = {
344
+ [Key in keyof Row & string]: [Row[Key]] extends [TableCellValue] ? Key : never;
345
+ }[keyof Row & string];
346
+ /** What every column of a data-driven table has. */
347
+ export interface TableColumnBase<Key extends string> {
348
+ /** The row property the column shows. */
349
+ readonly key: Key;
350
+ /** The text of the column's header cell. */
351
+ readonly header?: string;
352
+ /** Points, `'auto'` (default), `'1fr'`, a length such as `'30mm'`, or `'25%'`. */
353
+ readonly width?: StyleLength;
354
+ /** Default text alignment of the column's cells, header included. */
355
+ readonly align?: TextAlign;
356
+ /** Classes of the column's body cells, after the table's `cellClassName`. */
357
+ readonly className?: string;
358
+ }
359
+ /** A text column: strings, and numbers written with `String()`. */
360
+ export interface TextTableColumn<Key extends string> extends TableColumnBase<Key> {
361
+ readonly sum?: false;
362
+ readonly format?: undefined;
363
+ }
364
+ /**
365
+ * A number column of integers in minor units (cents): written with
366
+ * `format`, added up with `sum` in running totals and the totals row.
367
+ */
368
+ export interface NumberTableColumn<Key extends string> extends TableColumnBase<Key> {
369
+ /** Add the column's values in the running totals and the totals row. */
370
+ readonly sum?: boolean;
371
+ /** How the values and sums are written, for example `1.234,56 €`. */
372
+ readonly format?: NumberFormat;
373
+ }
374
+ /**
375
+ * A column of `<Table data columns>`: which property of the rows it shows,
376
+ * its header, width, alignment and classes. Columns with `format` or
377
+ * `sum` hold numbers in integer minor units; the others show text.
378
+ *
379
+ * ```ts
380
+ * const columns = [
381
+ * { key: 'name', header: 'Item', width: '1fr' },
382
+ * { key: 'amountCents', header: 'Amount', align: 'right', sum: true,
383
+ * format: { minorUnits: 2, decimal: ',', group: '.', suffix: ' €' } },
384
+ * ] satisfies TableColumn<Item>[]
385
+ * ```
386
+ */
387
+ export type TableColumn<Row extends object = Record<string, TableCellValue>> = {
388
+ [Key in TableColumnKey<Row>]: [Row[Key]] extends [number | null | undefined] ? NumberTableColumn<Key> : TextTableColumn<Key>;
389
+ }[TableColumnKey<Row>];
390
+ /**
391
+ * A data-driven table (D-09): one row per item of `data`, one cell per
392
+ * column. The rows travel to the engine as columns of compact data and are
393
+ * laid out like `Row`/`Cell` tables, with repeated header rows, zebra rows
394
+ * (`rowClassName="odd:bg-gray-50"`), running totals and a totals row.
395
+ */
396
+ export interface DataTableAttributes<Row extends object> extends TableBaseAttributes {
397
+ /** The rows: objects whose `key` properties the columns show. */
398
+ readonly data: readonly Row[];
399
+ /** The columns, typed with `satisfies TableColumn<Row>[]`. */
400
+ readonly columns: readonly TableColumn<Row>[];
401
+ /** Classes of every body row; `odd:`/`even:` count the body rows. */
402
+ readonly rowClassName?: string;
403
+ /** Classes of the header row built from the columns' `header`s. */
404
+ readonly headerClassName?: string;
405
+ /**
406
+ * A totals row after the body rows: `label` over the columns before the
407
+ * first `sum` column, then the total of every `sum` column.
408
+ */
409
+ readonly totals?: TableTotals;
410
+ }
411
+ export interface RowAttributes extends BoxAttributes {
412
+ /** A header row: first in the table and repeated on every page. */
413
+ readonly header?: boolean;
414
+ /** A footer row: last in the table and repeated on every page. */
415
+ readonly footer?: boolean;
416
+ }
417
+ export interface CellAttributes extends BoxAttributes {
418
+ /** Columns the cell spans (1 to 1,000). */
419
+ readonly colSpan?: number;
420
+ /** Rows the cell spans within its header, body or footer rows. */
421
+ readonly rowSpan?: number;
422
+ /**
423
+ * A number in integer minor units (cents), at most
424
+ * `Number.MAX_SAFE_INTEGER` in magnitude. A cell without children shows
425
+ * it with its column's `format`; `sum` columns add it up.
426
+ */
427
+ readonly value?: number;
428
+ /**
429
+ * Structure role for tagged PDF: `th` for a header cell, `td` for a
430
+ * data cell. Cells of header rows default to `th`, others to `td`.
431
+ */
432
+ readonly role?: CellRole;
433
+ /**
434
+ * The cells a header cell applies to: `col` (the default in header
435
+ * rows), `row` (the default elsewhere, for `role="th"` in body rows)
436
+ * or `both`.
437
+ */
438
+ readonly scope?: HeaderScope;
439
+ /** Language of this cell as a BCP 47 tag. */
440
+ readonly lang?: string;
441
+ /** Base direction of this cell's content. */
442
+ readonly dir?: Dir;
443
+ }
444
+ export interface KeepAttributes extends ViewAttributes {
445
+ /** Also keep the group on the same page as the box that follows it (`keep-with-next`). */
446
+ readonly withNext?: boolean;
447
+ }
448
+ export interface DocumentProps<TNode> extends DocumentAttributes {
449
+ /** `Page` elements. */
450
+ readonly children?: TNode;
451
+ }
452
+ export interface PageProps<TNode> extends PageAttributes, PageRegionProps<TNode> {
453
+ /** Content elements: `View`, `Text`, `Image`, `Svg`, `Table`, `Link`, `Anchor`, `PageBreak`, `Keep`. */
454
+ readonly children?: TNode;
455
+ }
456
+ export interface ViewProps<TNode> extends ViewAttributes {
457
+ /** Content elements: `View`, `Text`, `Image`, `Svg`, `Table`, `Link`, `Anchor`, `PageBreak`, `Keep`. */
458
+ readonly children?: TNode;
459
+ }
460
+ export interface TableProps<TNode> extends TableAttributes {
461
+ /** `Row` elements; header rows come first and footer rows last. */
462
+ readonly children?: TNode;
463
+ }
464
+ export interface DataTableProps<Row extends object> extends DataTableAttributes<Row> {
465
+ /** A data table's rows come from `data`. */
466
+ readonly children?: undefined;
467
+ }
468
+ export interface RowProps<TNode> extends RowAttributes {
469
+ /** `Cell` elements. */
470
+ readonly children?: TNode;
471
+ }
472
+ export interface CellProps<TNode> extends CellAttributes {
473
+ /**
474
+ * Content elements, or strings and numbers, which become one text node
475
+ * styled by the cell's classes.
476
+ */
477
+ readonly children?: TNode;
478
+ }
479
+ /** An image has no children. */
480
+ export type ImageProps = ImageAttributes;
481
+ /** An SVG has no children; its content is `src`. */
482
+ export type SvgProps = SvgAttributes;
483
+ /** A page break takes no props. */
484
+ export type PageBreakProps = Record<never, never>;
485
+ export interface LinkProps<TNode> extends LinkAttributes {
486
+ /** The clickable content: `View`, `Text`, `Image`, `Svg` and so on. */
487
+ readonly children?: TNode;
488
+ }
489
+ /** An anchor has no children. */
490
+ export type AnchorProps = AnchorAttributes;
491
+ export interface KeepProps<TNode> extends KeepAttributes {
492
+ /** The content to keep together on one page. */
493
+ readonly children?: TNode;
494
+ }
495
+ export interface TextProps<TNode> extends TextAttributes {
496
+ /**
497
+ * Strings and numbers, concatenated, and the placeholders `PageNumber`,
498
+ * `TotalPages` and `Marker`; components inside `Text` may return them
499
+ * too. Nested elements such as `View` or a nested `Text` are not part of
500
+ * the IR and fail with `INVALID_DOCUMENT`.
501
+ */
502
+ readonly children?: TNode;
503
+ }
504
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../web/src/components/Types/props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,CAAC,EAAE,KAAK,CAAA;CAC5B;AAED,iCAAiC;AACjC,MAAM,MAAM,WAAW,GAAG,gBAAgB,CAAA;AAE1C,MAAM,WAAW,SAAS,CAAC,KAAK,CAAE,SAAQ,cAAc;IACpD,gDAAgD;IAChD,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAA;CAC5B;AAED,MAAM,WAAW,SAAS,CAAC,KAAK,CAAE,SAAQ,cAAc;IACpD;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAA;CAC5B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.js","sourceRoot":"","sources":["../../../web/src/components/Types/props.ts"],"names":[],"mappings":"","sourcesContent":["// Component props shared by the own JSX runtime and, from Phase 3, the React\n// components (`@rentnerkev/pdf/react`). `TNode` is the runtime's node type\n// (`PdfNode` or `ReactNode`); all other props are identical, so switching\n// between the paths is an import change. The `…Attributes` types are the\n// props without children; the factories take them.\nimport type {\n Dir,\n FacturX,\n HeaderScope,\n TableColumn as IrTableColumn,\n MarkerSelect,\n NumberFormat,\n Orientation,\n PageNumberFormat,\n PageNumbering,\n PageScope,\n PageSize,\n Relationship,\n RunningTotals,\n Standard,\n Style,\n StyleLength,\n TableTotals,\n TextAlign,\n} from '../../ir/ir.generated.ts'\nimport type {\n AttachmentSource,\n ImageSource,\n LetterheadInput,\n SvgSource,\n} from '../../ir/Types/input.ts'\n\n/**\n * An outline entry (bookmark): a title, `{ title, level }`, or `false` to\n * keep a heading (`role=\"h1\"` … `\"h6\"`) out of the outline. Headings are\n * entries automatically, titled with their text, at their heading level.\n */\nexport type BookmarkInput =\n | string\n | false\n | {\n /** Defaults to the text of a `Text`; other nodes need one. */\n readonly title?: string\n /** Nesting level from 1; defaults to the heading level, else 1. */\n readonly level?: number\n }\n\n/** Anchor and outline props of every content node. */\nexport interface NavigationAttributes {\n /**\n * Anchor name: `Link href=\"#id\"` jumps here, and so do links to\n * `file.pdf#id` from other documents. Unique in the document.\n */\n readonly id?: string\n /** Adds, changes or (with `false`) removes the node's outline entry. */\n readonly bookmark?: BookmarkInput\n}\n\n/** Styling shared by pages, views and text. */\nexport interface BoxAttributes {\n /** Tailwind CSS v4 utility classes, for example `flex gap-4`. */\n readonly className?: string\n /** Typed style properties; they win over `className` like inline styles. */\n readonly style?: Style\n}\n\n/** Document metadata. */\nexport interface DocumentAttributes {\n readonly title?: string\n readonly author?: string\n readonly subject?: string\n readonly keywords?: readonly string[]\n /** Natural language of the document as a BCP 47 tag, for example `de-DE`. */\n readonly lang?: string\n /**\n * Base direction of every page, like `dir` on HTML's root element:\n * `'rtl'` for Arabic or Hebrew documents. Nodes inherit it unless they\n * set their own `dir`.\n */\n readonly dir?: Dir\n /** The application that created the content, for example `Billing 4.2`. */\n readonly creator?: string\n /**\n * Creation date written to the PDF: a `Date` (stored in UTC) or an ISO\n * 8601 string such as `2026-12-01` or `2026-12-01T09:30:00+01:00`.\n * Without it the PDF has no date, so the same input always gives the\n * same bytes. PDF/A requires it.\n */\n readonly creationDate?: Date | string\n /**\n * Standards the PDF conforms to: `'pdf-a-2b'`, `'pdf-a-2u'`,\n * `'pdf-a-3b'`, `'pdf-a-3u'` or `'pdf-ua-1'` (accessible PDF), or a list\n * with at most one of each family. The engine validates the document\n * while writing it; what the standard forbids fails the render with\n * `STANDARD_VIOLATION`. PDF/UA-1 implies `tagged` and needs `title`,\n * `lang` and alt text for every image and figure that is not\n * decorative.\n */\n readonly standard?: Standard | readonly Standard[]\n /**\n * Writes a tagged PDF: a structure tree in reading order with\n * headings, paragraphs, lists, tables and their header cells, figures\n * with alt text and links, and headers, footers, page numbers and\n * decoration marked as artifacts, so screen readers and reflow work.\n * Default `false`; `standard: 'pdf-ua-1'` implies it.\n */\n readonly tagged?: boolean\n /**\n * Files embedded in the PDF, such as the XML of an electronic invoice:\n * `{ name: 'factur-x.xml', src: xml, mimeType: 'text/xml',\n * description: 'Factur-X invoice', relationship: 'Alternative' }`.\n */\n readonly attachments?: readonly AttachmentAttributes[]\n /**\n * The Factur-X / ZUGFeRD descriptor in the XMP metadata, for an\n * invoice XML attached as `factur-x.xml` (needs a PDF/A-3 standard):\n * `{ conformanceLevel: 'EN 16931' }`.\n */\n readonly facturX?: FacturX\n}\n\n/** A file embedded in the PDF. */\nexport interface AttachmentAttributes {\n /** The file name viewers show, for example `factur-x.xml`; unique. */\n readonly name: string\n /** The content: bytes, or a string (embedded as UTF-8). */\n readonly src: AttachmentSource\n /** MIME type, for example `text/xml`. Required by PDF/A-3. */\n readonly mimeType?: string\n /** A description viewers show. Required by PDF/A-3. */\n readonly description?: string\n /**\n * How the file relates to the document; default `'Unspecified'`.\n * Written in PDF/A-3 (`/AFRelationship`).\n */\n readonly relationship?: Relationship\n /**\n * The file's modification date, like `creationDate`. Without it the\n * file has no date; in PDF/A-3 it gets the document's `creationDate`.\n */\n readonly modificationDate?: Date | string\n}\n\n/** Heading roles; the text of a heading is its outline entry too. */\nexport type HeadingRole = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n\n/**\n * Structure roles of a `Text` in tagged PDF: a paragraph (`p`, the\n * default), a heading, `caption`, `blockquote`, `code`, `label` (the\n * bullet or number of a list item), `presentation` (part of the enclosing\n * element) or `artifact` (decoration, left out of the structure).\n */\nexport type TextRole =\n | 'p'\n | HeadingRole\n | 'caption'\n | 'blockquote'\n | 'code'\n | 'label'\n | 'presentation'\n | 'none'\n | 'artifact'\n\n/**\n * Structure roles of a `View`: grouping (`section`, `article`, `part`,\n * `div`, `blockquote`), a `figure` described by `alt`, a `list` of\n * `listitem`s, a `caption`, or a text role for a view whose texts form one\n * paragraph or heading. Without a role a view has no element of its own.\n */\nexport type ViewRole =\n | 'section'\n | 'article'\n | 'part'\n | 'div'\n | 'blockquote'\n | 'caption'\n | 'figure'\n | 'list'\n | 'listitem'\n | 'label'\n | 'p'\n | HeadingRole\n | 'code'\n | 'presentation'\n | 'none'\n | 'artifact'\n\n/**\n * Structure roles of an `Image` or `Svg`: a `figure` (the default, needs\n * `alt`) or `artifact` for decoration; `alt=\"\"` marks it decorative too.\n */\nexport type ImageRole = 'figure' | 'artifact' | 'presentation' | 'none'\n\n/**\n * Structure roles of a `Table`: a data `table` (the default) or\n * `presentation` for a table that only arranges content.\n */\nexport type TableRole = 'table' | 'presentation' | 'none' | 'artifact'\n\n/** Structure roles of a `Cell`: a header (`th`) or data (`td`) cell. */\nexport type CellRole = 'th' | 'td'\n\nexport interface PageAttributes extends BoxAttributes {\n /** `A3`, `A4`, `A5`, `Letter`, `Legal` or `{ width, height }` in points. */\n readonly size?: PageSize\n readonly orientation?: Orientation\n /**\n * Stationery: `{ src: pdfBytes, page: 0 }` draws that page of an existing\n * PDF behind the content of every page this template creates, at its own\n * size from the top left corner (above `bg-*`, below the content).\n */\n readonly letterhead?: LetterheadInput\n /**\n * Restarts the page numbers at `start` from this template on, or writes\n * them in another `format` (`'lower-roman'` for a preface). The PDF's\n * page labels show the same numbers.\n */\n readonly numbering?: PageNumbering\n}\n\n/**\n * Overrides for some pages of a template: its first page, odd or even pages\n * of the document, or its last page (where its content ends). `null`\n * removes the template's header, footer or letterhead on those pages.\n */\nexport interface PageVariantProps<TNode> {\n readonly header?: TNode | null\n readonly footer?: TNode | null\n readonly letterhead?: LetterheadInput | null\n}\n\n/**\n * Headers, footers and their variants. A header sits at the top and a\n * footer at the bottom of every page's content box (inside the page\n * padding); the content takes the space between them. A page takes each of\n * header, footer and letterhead from `last`, `first`, `odd`/`even`, then\n * the template itself, whichever sets it first.\n */\nexport interface PageRegionProps<TNode> {\n /** Content at the top of every page, for example a running title. */\n readonly header?: TNode\n /** Content at the bottom of every page, for example \"Page 1 of 3\". */\n readonly footer?: TNode\n readonly first?: PageVariantProps<TNode>\n readonly odd?: PageVariantProps<TNode>\n readonly even?: PageVariantProps<TNode>\n readonly last?: PageVariantProps<TNode>\n}\n\n/** A running marker and its value, for example the current customer. */\nexport interface MarkerAssignment {\n readonly name: string\n readonly value: string\n}\n\n/**\n * A running marker a text sets; without a value it takes the text, for\n * example a chapter heading.\n */\nexport interface TextMarkerAssignment {\n readonly name: string\n readonly value?: string\n}\n\nexport interface ViewAttributes extends BoxAttributes, NavigationAttributes {\n /** Structure role for tagged PDF, for example `section` or `figure`. */\n readonly role?: ViewRole\n /** Replacement text for assistive technology: describes a `figure`. */\n readonly alt?: string\n /** Language of this subtree as a BCP 47 tag. */\n readonly lang?: string\n /**\n * Base direction of this subtree, as HTML's `dir`: text direction and\n * `text-start`/`text-end`, flex rows, grid and table columns, logical\n * sides (`ps-*`, `ms-*`) and the `rtl:`/`ltr:` variants. `'auto'` takes\n * the direction of the first strong character of the text inside.\n */\n readonly dir?: Dir\n /**\n * Sets running markers where the box starts, like CSS `string-set`:\n * `<Marker name=\"customer\" />` in a header or footer shows the value\n * on every page.\n */\n readonly marker?: MarkerAssignment | readonly MarkerAssignment[]\n}\n\nexport interface LinkAttributes extends ViewAttributes {\n /**\n * `#id` jumps to the node with that `id`; an `http`, `https`, `mailto`\n * or `tel` URI opens in the viewer's application.\n */\n readonly href: string\n}\n\nexport interface AnchorAttributes {\n /** The anchor name that `Link href=\"#id\"` jumps to. */\n readonly id: string\n /** An outline entry at the anchor's position. */\n readonly bookmark?: BookmarkInput\n}\n\nexport interface TextAttributes extends BoxAttributes, NavigationAttributes {\n /** Structure role for tagged PDF, for example `h1`; default `p`. */\n readonly role?: TextRole\n /** Language of this text as a BCP 47 tag. */\n readonly lang?: string\n /**\n * Base direction of this text; `'auto'` detects it for every line of\n * input (as without any `dir`).\n */\n readonly dir?: Dir\n /** Replacement text for assistive technology. */\n readonly alt?: string\n /**\n * Sets running markers where the text starts: a name takes the text as\n * value (`<Text role=\"h1\" marker=\"chapter\">Results</Text>`).\n */\n readonly marker?:\n | string\n | TextMarkerAssignment\n | readonly (string | TextMarkerAssignment)[]\n}\n\n/** Content of a `text()` node; numbers are converted with `String()`. */\nexport type TextValue = string | number | bigint\n\n/** The current page's number. */\nexport interface PageNumberProps {\n /** How the number is written; default the template's `numbering.format`, else decimal. */\n readonly format?: PageNumberFormat\n}\n\n/** The number of pages of the document, or of the page template (`'section'`). */\nexport interface TotalPagesProps {\n /** Default `'document'`. */\n readonly scope?: PageScope\n /** How the count is written; default decimal. */\n readonly format?: PageNumberFormat\n}\n\n/**\n * A running marker's value on the current page, like CSS `string()`:\n * `first` (default) and `last` take the first or last value set on the\n * page, else the value in effect where the page starts; `start` the value\n * in effect at the top of the page; `first-except` is empty on pages that\n * set the marker.\n */\nexport interface MarkerProps {\n readonly name: string\n readonly select?: MarkerSelect\n}\n\nexport interface ImageAttributes extends BoxAttributes, NavigationAttributes {\n /**\n * The image file as bytes: PNG, JPEG, GIF (first frame) or WebP. Read\n * files or fetch URLs yourself; RentnerPDF never touches paths or the\n * network.\n */\n readonly src: ImageSource\n /**\n * Replacement text for assistive technology; `\"\"` marks a decorative\n * image. Tagged documents warn about images without it (`strict` and\n * PDF/UA-1: an error).\n */\n readonly alt?: string\n /** Structure role for tagged PDF: `figure` (default) or `artifact` for decoration. */\n readonly role?: ImageRole\n}\n\nexport interface SvgAttributes extends BoxAttributes, NavigationAttributes {\n /**\n * SVG markup as a string, or the bytes of an `.svg` file. RentnerPDF\n * never loads files or URLs it references: raster images inside must be\n * `data:` URLs, and text uses the engine's fonts.\n */\n readonly src: SvgSource\n /**\n * Replacement text for assistive technology; `\"\"` marks a decorative\n * graphic. Tagged documents warn about SVGs without it (`strict` and\n * PDF/UA-1: an error).\n */\n readonly alt?: string\n /** Structure role for tagged PDF: `figure` (default) or `artifact` for decoration. */\n readonly role?: ImageRole\n}\n\n/**\n * How a column of an element table is laid out: `width` (points,\n * `'auto'`, `'1fr'`, `'30mm'`, `'25%'`), the default text `align` of its\n * cells, and for number columns `sum` (running totals) and `format` (how\n * `value` cells and sums are written).\n */\nexport type TableColumnLayout = Pick<\n IrTableColumn,\n 'width' | 'align' | 'sum' | 'format'\n>\n\n/**\n * Props of both element and data-driven tables. Tables set no markers; a\n * `View` around the table can.\n */\nexport interface TableBaseAttributes extends Omit<\n ViewAttributes,\n 'marker' | 'role' | 'alt'\n> {\n /** Structure role for tagged PDF: `table` (default) or `presentation` for layout. */\n readonly role?: TableRole\n /** Classes every cell gets before its own, for example `px-2 py-1`. */\n readonly cellClassName?: string\n /** Repeat the header rows on every page the table spans (default `true`). */\n readonly repeatHeader?: boolean\n /**\n * Repeat the footer rows on every page the table spans (default `true`;\n * data tables: the `totals` row, default `false`, as it shows the\n * grand totals).\n */\n readonly repeatFooter?: boolean\n /**\n * Carried-forward and brought-forward rows with the running sums of the\n * `sum` columns at every page break of the table.\n */\n readonly runningTotals?: RunningTotals\n}\n\nexport interface TableAttributes extends TableBaseAttributes {\n /** One layout description per column. */\n readonly columns?: readonly TableColumnLayout[]\n /** Element tables have `Row` children instead of `data`. */\n readonly data?: undefined\n}\n\n/**\n * A cell value of a data-driven table: a string, a number or bigint\n * (written with `String()`, or integer minor units in a number column), or\n * `null`/`undefined` for an empty cell.\n */\nexport type TableCellValue = string | number | bigint | null | undefined\n\n/** The keys of `Row` whose values a table cell can show. */\nexport type TableColumnKey<Row extends object> = {\n [Key in keyof Row & string]: [Row[Key]] extends [TableCellValue]\n ? Key\n : never\n}[keyof Row & string]\n\n/** What every column of a data-driven table has. */\nexport interface TableColumnBase<Key extends string> {\n /** The row property the column shows. */\n readonly key: Key\n /** The text of the column's header cell. */\n readonly header?: string\n /** Points, `'auto'` (default), `'1fr'`, a length such as `'30mm'`, or `'25%'`. */\n readonly width?: StyleLength\n /** Default text alignment of the column's cells, header included. */\n readonly align?: TextAlign\n /** Classes of the column's body cells, after the table's `cellClassName`. */\n readonly className?: string\n}\n\n/** A text column: strings, and numbers written with `String()`. */\nexport interface TextTableColumn<\n Key extends string,\n> extends TableColumnBase<Key> {\n readonly sum?: false\n readonly format?: undefined\n}\n\n/**\n * A number column of integers in minor units (cents): written with\n * `format`, added up with `sum` in running totals and the totals row.\n */\nexport interface NumberTableColumn<\n Key extends string,\n> extends TableColumnBase<Key> {\n /** Add the column's values in the running totals and the totals row. */\n readonly sum?: boolean\n /** How the values and sums are written, for example `1.234,56 €`. */\n readonly format?: NumberFormat\n}\n\n/**\n * A column of `<Table data columns>`: which property of the rows it shows,\n * its header, width, alignment and classes. Columns with `format` or\n * `sum` hold numbers in integer minor units; the others show text.\n *\n * ```ts\n * const columns = [\n * { key: 'name', header: 'Item', width: '1fr' },\n * { key: 'amountCents', header: 'Amount', align: 'right', sum: true,\n * format: { minorUnits: 2, decimal: ',', group: '.', suffix: ' €' } },\n * ] satisfies TableColumn<Item>[]\n * ```\n */\nexport type TableColumn<Row extends object = Record<string, TableCellValue>> = {\n [Key in TableColumnKey<Row>]: [Row[Key]] extends [number | null | undefined]\n ? NumberTableColumn<Key>\n : TextTableColumn<Key>\n}[TableColumnKey<Row>]\n\n/**\n * A data-driven table (D-09): one row per item of `data`, one cell per\n * column. The rows travel to the engine as columns of compact data and are\n * laid out like `Row`/`Cell` tables, with repeated header rows, zebra rows\n * (`rowClassName=\"odd:bg-gray-50\"`), running totals and a totals row.\n */\nexport interface DataTableAttributes<\n Row extends object,\n> extends TableBaseAttributes {\n /** The rows: objects whose `key` properties the columns show. */\n readonly data: readonly Row[]\n /** The columns, typed with `satisfies TableColumn<Row>[]`. */\n readonly columns: readonly TableColumn<Row>[]\n /** Classes of every body row; `odd:`/`even:` count the body rows. */\n readonly rowClassName?: string\n /** Classes of the header row built from the columns' `header`s. */\n readonly headerClassName?: string\n /**\n * A totals row after the body rows: `label` over the columns before the\n * first `sum` column, then the total of every `sum` column.\n */\n readonly totals?: TableTotals\n}\n\nexport interface RowAttributes extends BoxAttributes {\n /** A header row: first in the table and repeated on every page. */\n readonly header?: boolean\n /** A footer row: last in the table and repeated on every page. */\n readonly footer?: boolean\n}\n\nexport interface CellAttributes extends BoxAttributes {\n /** Columns the cell spans (1 to 1,000). */\n readonly colSpan?: number\n /** Rows the cell spans within its header, body or footer rows. */\n readonly rowSpan?: number\n /**\n * A number in integer minor units (cents), at most\n * `Number.MAX_SAFE_INTEGER` in magnitude. A cell without children shows\n * it with its column's `format`; `sum` columns add it up.\n */\n readonly value?: number\n /**\n * Structure role for tagged PDF: `th` for a header cell, `td` for a\n * data cell. Cells of header rows default to `th`, others to `td`.\n */\n readonly role?: CellRole\n /**\n * The cells a header cell applies to: `col` (the default in header\n * rows), `row` (the default elsewhere, for `role=\"th\"` in body rows)\n * or `both`.\n */\n readonly scope?: HeaderScope\n /** Language of this cell as a BCP 47 tag. */\n readonly lang?: string\n /** Base direction of this cell's content. */\n readonly dir?: Dir\n}\n\nexport interface KeepAttributes extends ViewAttributes {\n /** Also keep the group on the same page as the box that follows it (`keep-with-next`). */\n readonly withNext?: boolean\n}\n\nexport interface DocumentProps<TNode> extends DocumentAttributes {\n /** `Page` elements. */\n readonly children?: TNode\n}\n\nexport interface PageProps<TNode>\n extends PageAttributes, PageRegionProps<TNode> {\n /** Content elements: `View`, `Text`, `Image`, `Svg`, `Table`, `Link`, `Anchor`, `PageBreak`, `Keep`. */\n readonly children?: TNode\n}\n\nexport interface ViewProps<TNode> extends ViewAttributes {\n /** Content elements: `View`, `Text`, `Image`, `Svg`, `Table`, `Link`, `Anchor`, `PageBreak`, `Keep`. */\n readonly children?: TNode\n}\n\nexport interface TableProps<TNode> extends TableAttributes {\n /** `Row` elements; header rows come first and footer rows last. */\n readonly children?: TNode\n}\n\nexport interface DataTableProps<\n Row extends object,\n> extends DataTableAttributes<Row> {\n /** A data table's rows come from `data`. */\n readonly children?: undefined\n}\n\nexport interface RowProps<TNode> extends RowAttributes {\n /** `Cell` elements. */\n readonly children?: TNode\n}\n\nexport interface CellProps<TNode> extends CellAttributes {\n /**\n * Content elements, or strings and numbers, which become one text node\n * styled by the cell's classes.\n */\n readonly children?: TNode\n}\n\n/** An image has no children. */\nexport type ImageProps = ImageAttributes\n\n/** An SVG has no children; its content is `src`. */\nexport type SvgProps = SvgAttributes\n\n/** A page break takes no props. */\nexport type PageBreakProps = Record<never, never>\n\nexport interface LinkProps<TNode> extends LinkAttributes {\n /** The clickable content: `View`, `Text`, `Image`, `Svg` and so on. */\n readonly children?: TNode\n}\n\n/** An anchor has no children. */\nexport type AnchorProps = AnchorAttributes\n\nexport interface KeepProps<TNode> extends KeepAttributes {\n /** The content to keep together on one page. */\n readonly children?: TNode\n}\n\nexport interface TextProps<TNode> extends TextAttributes {\n /**\n * Strings and numbers, concatenated, and the placeholders `PageNumber`,\n * `TotalPages` and `Marker`; components inside `Text` may return them\n * too. Nested elements such as `View` or a nested `Text` are not part of\n * the IR and fail with `INVALID_DOCUMENT`.\n */\n readonly children?: TNode\n}\n"]}