@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
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 RentnerKev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,136 @@
1
- # Temporary Holding Version
1
+ # RentnerPDF
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ <p align="center">
4
+ <img src="assets/readme/banner.png" alt="RentnerPDF, a React PDF generator" width="100%">
5
+ </p>
6
+
7
+ > Native speed. TypeScript simplicity.
8
+
9
+ <p>
10
+ <a href="https://github.com/RentnerKev/RentnerPDF/actions/workflows/ci.yml"><img src="https://github.com/RentnerKev/RentnerPDF/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
11
+ <a href="https://github.com/RentnerKev/RentnerPDF/actions/workflows/codeql.yml"><img src="https://github.com/RentnerKev/RentnerPDF/actions/workflows/codeql.yml/badge.svg?branch=main" alt="CodeQL"></a>
12
+ <a href="https://scorecard.dev/viewer/?uri=github.com/RentnerKev/RentnerPDF"><img src="https://api.scorecard.dev/projects/github.com/RentnerKev/RentnerPDF/badge" alt="OpenSSF Scorecard"></a>
13
+ <img src="https://img.shields.io/badge/status-pre--release-orange" alt="Status: pre-release">
14
+ <a href="./LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT license"></a>
15
+ </p>
16
+
17
+ RentnerPDF is a PDF engine for JavaScript and TypeScript with a Rust core. Describe documents with React-style components and Tailwind-style `className` utilities; the engine lays them out with real pagination and writes standards-ready PDFs – natively on Node.js and Bun, and via WebAssembly on macOS and in browsers.
18
+
19
+ > [!IMPORTANT]
20
+ > RentnerPDF `0.1.1` is the candidate for the first npm release. One package, `@rentnerkev/pdf`, includes the TypeScript API, six native bindings and WebAssembly. The TypeScript API and IR v1 freeze with `1.0.0`. The worker engine, React preview, Vite plugin and `renderToStream()` remain experimental until promoted. [Development](#development) · [Install](docs/usage.md#install) · [Roadmap](docs/planning/10-roadmap.md)
21
+
22
+ ## Features
23
+
24
+ - **Three ways to write documents:** an own zero-dependency JSX runtime, React 19 components (`@rentnerkev/pdf/react` with hooks, context, `use()` and Suspense) or plain factory functions; all render byte-identical PDFs.
25
+ - **Tailwind styling:** `className` with Tailwind CSS v4 semantics and print units, your app's design tokens, IntelliSense, `clsx` and `tailwind-merge`.
26
+ - **Layout for business documents:** block, flex and grid; page templates with headers, footers, page numbers and letterheads; keep rules, widows and orphans, and diagnostics that explain every page break.
27
+ - **Tables:** element tables and data tables for 10,000+ rows with repeated headers, sums, running totals and number formats for amounts in cents.
28
+ - **Typography and languages:** bundled Noto Sans, font fallback, color emoji, variable fonts, right-to-left and complex scripts, hyphenation, justification and optimal line breaking.
29
+ - **Standards:** PDF/A-2 and PDF/A-3, tagged PDF/UA-1 and ZUGFeRD/Factur-X attachments, validated with veraPDF and Mustang in CI.
30
+ - **Engine:** a native addon that renders off the event loop on its own threads, batches with bounded memory, streams, cancellation, fonts added at run time and resource limits for untrusted input; a WebAssembly engine with the same output and a Web Worker preview for browsers.
31
+ - **Supply chain:** zero runtime dependencies, no install scripts.
32
+
33
+ ## Performance
34
+
35
+ From the [benchmark report](docs/benchmarks.md): GitHub-hosted Linux runners with 4 vCPUs, Node.js 24, 02.12.2026, against React-PDF 4.9.2 and pdfmake 0.3.15; every output passes the same correctness gate.
36
+
37
+ | Focus area | RentnerPDF | pdfmake | React-PDF |
38
+ | --------------------------------------------------- | -------------------- | ------------------- | ------------------- |
39
+ | Mass generation: 10,000 invoices on 4 workers | 697 docs/s, 199 MiB | 54 docs/s, 1.25 GiB | 43 docs/s, 7.99 GiB |
40
+ | Event loop while serving invoices: timer drift p99 | 3.2 ms at 961 PDFs/s | 224 ms at 37 PDFs/s | 306 ms at 29 PDFs/s |
41
+ | 500-page statement, 24,000 rows with running totals | 1.38 s, 579 MiB | not supported | not supported |
42
+ | 100-page text report | 143 ms, 210 MiB | 869 ms, 594 MiB | 3.80 s, 1.37 GiB |
43
+
44
+ The report also covers the WebAssembly engine, every case where another library wins, a local run on Windows and how to reproduce each number.
45
+
46
+ ## Requirements
47
+
48
+ - Node.js 22.14+ or Bun 1.4+; React 19 only for `@rentnerkev/pdf/react`.
49
+ - Native engines for Windows and Linux (x64 and arm64; glibc and musl). macOS and browsers use the WebAssembly engine.
50
+
51
+ What CI checks on which runtime, platform and framework: [compatibility](docs/usage.md#compatibility).
52
+
53
+ ## Quick start
54
+
55
+ Write a document as components with the own JSX runtime (no React needed) and render it to a `Uint8Array`:
56
+
57
+ <!-- snippet: web/src/tests/docs/usage/quick-start.tsx#quick-start -->
58
+
59
+ ```tsx
60
+ /** @jsxImportSource @rentnerkev/pdf */
61
+ import { writeFile } from 'node:fs/promises'
62
+ import { Document, Page, render, Text, View } from '@rentnerkev/pdf'
63
+
64
+ function Invoice({ number, total }: { number: string; total: string }) {
65
+ return (
66
+ <Document title={`Invoice ${number}`} lang="en">
67
+ <Page size="A4" className="p-page text-sm">
68
+ <View className="mb-8 flex justify-between">
69
+ <Text role="h1" className="text-2xl font-bold">
70
+ Invoice {number}
71
+ </Text>
72
+ <Text className="text-gray-500">Muster GmbH</Text>
73
+ </View>
74
+ <Text>Total: {total}</Text>
75
+ </Page>
76
+ </Document>
77
+ )
78
+ }
79
+
80
+ const pdf = await render(<Invoice number="2026-001" total="1.234,56 €" />)
81
+ await writeFile('invoice.pdf', pdf)
82
+ ```
83
+
84
+ - **JSX setup:** the per-file pragma above, or `"jsx": "react-jsx"` and `"jsxImportSource": "@rentnerkev/pdf"` in a tsconfig.
85
+ - **React projects** import the same components from `@rentnerkev/pdf/react` and render with `renderToPdf()`.
86
+ - **Your fonts, theme and limits:** create one engine per process with `createEngine({ fonts, theme })` and call `engine.render()`.
87
+
88
+ ## Documentation
89
+
90
+ | Guide | Content |
91
+ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------- |
92
+ | [Usage guide](docs/usage.md) | Install, engine, components, styling, tables, templates, typography, standards, accessibility, browser preview |
93
+ | [Compatibility](docs/usage.md#compatibility) | Runtimes, platforms, frameworks and what CI verifies for each |
94
+ | [Limits](docs/usage.md#limits) | Resource limits for untrusted input and what is not supported yet |
95
+ | Migrating from [React-PDF](docs/migrating-from-react-pdf.md), [pdfmake](docs/migrating-from-pdfmake.md), [PDFKit](docs/migrating-from-pdfkit.md) | Concept mappings, side-by-side examples, what has no equivalent |
96
+ | [Recipes](docs/recipes/README.md) | Node.js, Bun, TanStack Start, Next.js, ZUGFeRD/Factur-X invoices |
97
+ | [Tailwind support matrix](docs/tailwind-support.md) | Every utility and what it does on paper |
98
+ | [Benchmarks](docs/benchmarks.md) | Every scenario against React-PDF and pdfmake, how to reproduce it; re-measured weekly |
99
+ | [Planning](docs/planning/README.md) | Architecture, decisions and roadmap |
100
+
101
+ The [playground](docs/usage.md#playground) is a local JSX editor with a live PDF preview: `bun run build:wasm`, then `bun run playground:dev`.
102
+
103
+ ## Development
104
+
105
+ Requirements: [Bun](https://bun.com) 1.4.5 and [rustup](https://rustup.rs). The Rust toolchain is pinned in `core/rust-toolchain.toml`.
106
+
107
+ ```bash
108
+ bun install --frozen-lockfile
109
+ cargo install wasm-bindgen-cli --version 0.2.130 --locked
110
+ bun run build:native:debug
111
+ bun run build:wasm:debug
112
+ bun run test
113
+ bun run verify
114
+ ```
115
+
116
+ The WebAssembly tests load the local build from `bun run build:wasm` (wasm-bindgen must match the version in `core/Cargo.lock`).
117
+
118
+ | Path | Content |
119
+ | ---------------- | ---------------------------------------------------------------------------------------------------- |
120
+ | `web/src` | TypeScript package source and tests |
121
+ | `web/playground` | Local playground app (React UI, examples): `bun run playground:dev`, `bun run playground:build` |
122
+ | `core/` | Rust workspace: `rentnerpdf` (engine), `rentnerpdf-napi` (Node-API), `rentnerpdf-wasm` (WebAssembly) |
123
+ | `.github/` | Workflows, automation scripts and their tests |
124
+ | `docs` | Usage guide, migration guides, recipes, Tailwind support matrix, benchmarks |
125
+ | `docs/planning` | Architecture and planning documents |
126
+
127
+ See [CONTRIBUTING](.github/CONTRIBUTING.md) for the full workflow.
128
+
129
+ ## Security and support
130
+
131
+ - [Security policy](SECURITY.md) – report vulnerabilities privately.
132
+ - [Support](.github/SUPPORT.md) and [Code of Conduct](.github/CODE_OF_CONDUCT.md).
133
+
134
+ ## License
135
+
136
+ [MIT](LICENSE) © RentnerKev
@@ -0,0 +1,152 @@
1
+ # Third-party notices
2
+
3
+ RentnerPDF is MIT-licensed (see [LICENSE](LICENSE)). The npm packages also contain the following third-party material under its own license. The main package `@rentnerkev/pdf` ships the Noto Sans files. The engine includes Tailwind's default theme, hyphenation patterns, tiny-skia-path and the sRGB ICC profiles of PDF/A output intents. Every package ships this file.
4
+
5
+ ## Noto Sans
6
+
7
+ The default font family (D-21), shipped as unmodified files in `dist/fonts/` (source: `web/src/fonts/`) and registered unless `createEngine({ defaultFont: false })` is used.
8
+
9
+ | Item | Value |
10
+ | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
+ | Files | `NotoSans-Regular.ttf`, `NotoSans-Bold.ttf`, `NotoSans-Italic.ttf`, `NotoSans-BoldItalic.ttf` (unhinted TTF, version 2.015) |
12
+ | Copyright | Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic) |
13
+ | License | SIL Open Font License, Version 1.1; full text in `dist/fonts/OFL.txt` |
14
+ | Source | [notofonts/notofonts.github.io](https://github.com/notofonts/notofonts.github.io) at commit `7a35fe3411ec512a8a0ed9f9e7ace74a24ea3444`, path `fonts/NotoSans/unhinted/ttf/` |
15
+ | Integrity | Download URLs and SHA-256 hashes in `dist/fonts/sources.json`; the test suite verifies them |
16
+
17
+ "Noto" is a trademark of Google LLC. The fonts are bundled unmodified; PDFs embed subsets of them, which the OFL permits for documents created with the fonts.
18
+
19
+ ## Tailwind CSS default theme
20
+
21
+ `core/crates/rentnerpdf/assets/theme/tailwind-theme.css` is Tailwind CSS v4.3.5's `theme.css`, embedded unchanged in the engine as RentnerPDF's built-in default theme (D-22).
22
+
23
+ Source: <https://github.com/tailwindlabs/tailwindcss>
24
+
25
+ ```text
26
+ MIT License
27
+
28
+ Copyright (c) Tailwind Labs, Inc.
29
+
30
+ Permission is hereby granted, free of charge, to any person obtaining a copy
31
+ of this software and associated documentation files (the "Software"), to deal
32
+ in the Software without restriction, including without limitation the rights
33
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
34
+ copies of the Software, and to permit persons to whom the Software is
35
+ furnished to do so, subject to the following conditions:
36
+
37
+ The above copyright notice and this permission notice shall be included in all
38
+ copies or substantial portions of the Software.
39
+
40
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
43
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
44
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
45
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
46
+ SOFTWARE.
47
+ ```
48
+
49
+ ## Hyphenation patterns
50
+
51
+ The engine builds its Knuth–Liang tries from the unmodified hyph-utf8 files in `core/crates/rentnerpdf/assets/hyphenation/`. The default build embeds patterns for five languages under their respective licenses. [hyph-utf8 project](https://www.hyphenation.org/tex), [pattern files used by hypher 0.1.8](https://github.com/typst/hypher/tree/d81cc506416bffef2a75ee2dc969d4b41bc36613/patterns)
52
+
53
+ | Language | Pattern file | Copyright | License |
54
+ | -------------------------- | ------------------ | ---------------------------------------------------------------------------- | ------------------------------------- |
55
+ | German (reformed spelling) | `hyph-de-1996.tex` | Copyright (c) 2013-2024 Deutschsprachige Trennmustermannschaft | MIT |
56
+ | English (American) | `hyph-en-us.tex` | Copyright (C) 1990, 2004, 2005 Gerard D.C. Kuiken | Notice below |
57
+ | Spanish | `hyph-es.tex` | Copyright (C) 1993, 1997 Javier Bezos, 2001-2019 Javier Bezos, CervanTeX | MIT |
58
+ | French | `hyph-fr.tex` | Copyright (C) 1994-2002 Daniel Flipo, Bernard Gaulle, 2016 Arthur Reutenauer | MIT |
59
+ | Italian | `hyph-it.tex` | Copyright (C) 2008-2011 Claudio Beccari | MIT (the file offers LPPL 1.3 or MIT) |
60
+
61
+ The English patterns carry this notice:
62
+
63
+ ```text
64
+ Copying and distribution of this file, with or without modification,
65
+ are permitted in any medium without royalty provided the copyright
66
+ notice and this notice are preserved.
67
+ ```
68
+
69
+ The MIT license of the other patterns:
70
+
71
+ ```text
72
+ Permission is hereby granted, free of charge, to any person obtaining a copy
73
+ of this software and associated documentation files (the "Software"), to deal
74
+ in the Software without restriction, including without limitation the rights
75
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
76
+ copies of the Software, and to permit persons to whom the Software is
77
+ furnished to do so, subject to the following conditions:
78
+
79
+ The above copyright notice and this permission notice shall be included in all
80
+ copies or substantial portions of the Software.
81
+
82
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
83
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
84
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
85
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
86
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
87
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
88
+ SOFTWARE.
89
+ ```
90
+
91
+ The optional Cargo feature `hyphenation-dutch` builds and embeds `hyph-nl.tex` (Copyright (C) 1996 Piet Tutelaers, [LPPL version 1 or later](https://www.latex-project.org/lppl/)). The npm packages embed the five default languages.
92
+
93
+ ## sRGB ICC profiles
94
+
95
+ PDF/A output (`standard="pdf-a-…"`, Phase 5) embeds an sRGB ICC profile as its output intent and for its colors. The profiles come with krilla (`crates/krilla/icc/` at the pinned revision `e750d27`), which compiles them into the engine: `sRGB-v4.icc` (PDF 1.7 and later, used for PDF/A-2 and PDF/A-3) and `sRGB-v2-magic.icc`, with the matching grey profiles.
96
+
97
+ | Item | Value |
98
+ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
99
+ | Source | [saucecontrol/Compact-ICC-Profiles](https://github.com/saucecontrol/Compact-ICC-Profiles), as vendored by [krilla](https://github.com/LaurenzV/krilla) |
100
+ | License | CC0 1.0 Universal (public domain dedication); no attribution required, listed here for provenance |
101
+
102
+ ## tiny-skia-path
103
+
104
+ The engine compiles in [tiny-skia-path](https://github.com/linebender/tiny-skia) 0.12.0 (BSD-3-Clause) through krilla, which uses it for path geometry.
105
+
106
+ ```text
107
+ Copyright (c) 2011 Google Inc. All rights reserved.
108
+ Copyright (c) 2020 Yevhenii Reizner All rights reserved.
109
+
110
+ Redistribution and use in source and binary forms, with or without
111
+ modification, are permitted provided that the following conditions are
112
+ met:
113
+
114
+ * Redistributions of source code must retain the above copyright
115
+ notice, this list of conditions and the following disclaimer.
116
+
117
+ * Redistributions in binary form must reproduce the above copyright
118
+ notice, this list of conditions and the following disclaimer in
119
+ the documentation and/or other materials provided with the
120
+ distribution.
121
+
122
+ * Neither the name of the copyright holder nor the names of its
123
+ contributors may be used to endorse or promote products derived
124
+ from this software without specific prior written permission.
125
+
126
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
127
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
128
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
129
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
130
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
131
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
132
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
133
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
134
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
135
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
136
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
137
+ ```
138
+
139
+ ## Test fonts (repository only)
140
+
141
+ The test suites use these fonts from `fixtures/fonts/`; no package ships them. All are under the SIL Open Font License, Version 1.1. Sources, the subsetting command and SHA-256 hashes are in `fixtures/fonts/sources.json`, which the test suite verifies. Subsets keep only the characters the tests use (fontTools `pyftsubset`); the fonts are otherwise unmodified and keep their names. `malformed/` holds inputs the `font` fuzz target derived from them, deliberately broken and kept as regression tests.
142
+
143
+ | File | Font | Copyright | License file |
144
+ | --------------------------------------------------------------------------------------- | -------------------------------------------- | -------------------------------------------- | ------------------------ |
145
+ | `NotoNaskhArabic-Regular.ttf`, `NotoSansHebrew-Regular.ttf`, `NotoSansThai-Regular.ttf` | Noto Naskh Arabic, Noto Sans Hebrew and Thai | Copyright 2022 The Noto Project Authors | `OFL.txt` |
146
+ | `NotoSansDevanagari-Subset.ttf` | Noto Sans Devanagari (subset) | Copyright 2022 The Noto Project Authors | `OFL.txt` |
147
+ | `NotoSansSC-Subset.otf` | Noto Sans SC (subset) | © 2014-2021 Adobe | `OFL-NotoSansCJK.txt` |
148
+ | `malformed/fuzz-name-record.otf` | Noto Sans SC (subset, mutated by the fuzzer) | © 2014-2021 Adobe | `OFL-NotoSansCJK.txt` |
149
+ | `NotoColorEmoji-COLRv1-Subset.ttf`, `NotoColorEmoji-CBDT-Subset.ttf` | Noto Color Emoji 2.051 (subsets) | Copyright 2022 Google Inc. | `OFL-NotoColorEmoji.txt` |
150
+ | `OpenSans-Variable-Subset.ttf` | Open Sans, `wdth` and `wght` axes (subset) | Copyright 2020 The Open Sans Project Authors | `OFL-OpenSans.txt` |
151
+
152
+ "Noto" is a trademark of Google LLC.
@@ -0,0 +1,3 @@
1
+ /** The built-in components that become IR nodes instead of being called. */
2
+ export type HostName = 'Document' | 'Page' | 'View' | 'Text' | 'Image' | 'Svg' | 'Link' | 'Anchor' | 'PageBreak' | 'Keep' | 'Table' | 'Row' | 'Cell' | 'PageNumber' | 'TotalPages' | 'Marker';
3
+ //# sourceMappingURL=host.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../../web/src/components/Types/host.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GACd,UAAU,GACV,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,MAAM,GACN,QAAQ,GACR,WAAW,GACX,MAAM,GACN,OAAO,GACP,KAAK,GACL,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,QAAQ,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=host.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.js","sourceRoot":"","sources":["../../../web/src/components/Types/host.ts"],"names":[],"mappings":"","sourcesContent":["/** The built-in components that become IR nodes instead of being called. */\nexport type HostName =\n | 'Document'\n | 'Page'\n | 'View'\n | 'Text'\n | 'Image'\n | 'Svg'\n | 'Link'\n | 'Anchor'\n | 'PageBreak'\n | 'Keep'\n | 'Table'\n | 'Row'\n | 'Cell'\n | 'PageNumber'\n | 'TotalPages'\n | 'Marker'\n"]}