pyropdf 0.2.1__tar.gz → 0.3.0__tar.gz

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 (296) hide show
  1. {pyropdf-0.2.1 → pyropdf-0.3.0}/Cargo.lock +87 -70
  2. pyropdf-0.3.0/Cargo.toml +52 -0
  3. {pyropdf-0.2.1 → pyropdf-0.3.0}/PKG-INFO +15 -5
  4. {pyropdf-0.2.1 → pyropdf-0.3.0}/README.md +6 -4
  5. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/Cargo.toml +9 -6
  6. pyropdf-0.3.0/crates/pyropdf-engine/proptest-regressions/content/shading/tests.txt +7 -0
  7. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/annotations/icons.rs +12 -0
  8. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/annotations/missing.rs +20 -2
  9. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/annotations/mod.rs +23 -4
  10. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/annotations/text.rs +22 -6
  11. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/bridge/mod.rs +5 -1
  12. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/content/mod.rs +7 -3
  13. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/content/page.rs +9 -10
  14. pyropdf-0.3.0/crates/pyropdf-engine/src/content/shading/tests.rs +595 -0
  15. pyropdf-0.3.0/crates/pyropdf-engine/src/content/shading.rs +979 -0
  16. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/content/tests.rs +41 -7
  17. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/extract/font_guard.rs +7 -12
  18. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/extract/glyphs.rs +13 -7
  19. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/extract/images.rs +14 -4
  20. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/extract/mod.rs +34 -14
  21. pyropdf-0.3.0/crates/pyropdf-engine/src/extract/model.rs +2597 -0
  22. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/extract/provenance.rs +2 -1
  23. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/extract/reads.rs +4 -0
  24. pyropdf-0.3.0/crates/pyropdf-engine/src/extract/stretch.rs +91 -0
  25. pyropdf-0.3.0/crates/pyropdf-engine/src/extract/tests.rs +961 -0
  26. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/extract/text/layout.rs +6 -2
  27. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/extract/text/search.rs +5 -1
  28. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/extract/text/selection.rs +2 -1
  29. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/extract/text/tables.rs +137 -4
  30. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/extract/text.rs +396 -51
  31. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/bitmap/tests.rs +101 -0
  32. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/bitmap.rs +185 -0
  33. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/fonts/cff.rs +328 -66
  34. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/colour/tests.rs +172 -0
  35. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/colour.rs +287 -0
  36. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/colr/tests.rs +402 -0
  37. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/colr.rs +1674 -0
  38. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/compact/tests.rs +674 -0
  39. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/compact.rs +462 -0
  40. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/fonts/embed/tests.rs +3 -1
  41. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/fonts/embed.rs +44 -10
  42. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/instance/tests.rs +517 -0
  43. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/instance.rs +881 -0
  44. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/fonts/mod.rs +12 -1
  45. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/settle/tests.rs +114 -0
  46. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/fonts/settle.rs +90 -9
  47. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/fonts/sfnt.rs +124 -3
  48. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/fonts/shape/tests.rs +67 -16
  49. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/shape.rs +319 -0
  50. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/NotoSansArabic-Variable-subset-instances.txt +169 -0
  51. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/README.md +11 -0
  52. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-bitmaps-cbdt-only.ttf +0 -0
  53. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-bitmaps-cbdt.ttf +0 -0
  54. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-bitmaps-sbix-2048.ttf +0 -0
  55. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-bitmaps-sbix-only.ttf +0 -0
  56. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-bitmaps-sbix.ttf +0 -0
  57. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-cbdt-raw.ttf +0 -0
  58. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-cbdt.ttf +0 -0
  59. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-colr-paints.ttf +0 -0
  60. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-colr-sweep.ttf +0 -0
  61. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-colr0.ttf +0 -0
  62. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-colr1.ttf +0 -0
  63. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-eblc-only.ttf +0 -0
  64. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-eblc.ttf +0 -0
  65. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-sbix-damaged.ttf +0 -0
  66. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-sbix-jpeg.ttf +0 -0
  67. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-sbix.ttf +0 -0
  68. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-svg-cff.otf +0 -0
  69. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour-svg.ttf +0 -0
  70. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/colour_faces.py +561 -0
  71. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/variable-bitmaps-cbdt.ttf +0 -0
  72. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/variable-bitmaps-sbix.ttf +0 -0
  73. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/variable-colour.ttf +0 -0
  74. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/variable-colr.ttf +0 -0
  75. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/variable-composites.ttf +0 -0
  76. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/variable-latin.ttf +0 -0
  77. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/variable-overflow.ttf +0 -0
  78. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/testdata/variable_faces.py +232 -0
  79. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/fonts/tests.rs +116 -0
  80. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/type3/tests.rs +216 -0
  81. pyropdf-0.3.0/crates/pyropdf-engine/src/fonts/type3.rs +734 -0
  82. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/forms/defaults.rs +77 -10
  83. pyropdf-0.3.0/crates/pyropdf-engine/src/forms/face.rs +541 -0
  84. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/forms/flatten.rs +117 -44
  85. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/forms/mod.rs +64 -7
  86. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/forms/tests.rs +60 -0
  87. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/forms/text.rs +5 -1
  88. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/lib.rs +9 -0
  89. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/ocr/layer.rs +8 -0
  90. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/ocr/mod.rs +55 -7
  91. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/pages/copy.rs +131 -5
  92. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/pages/import/graft.rs +70 -19
  93. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/pages/import.rs +8 -0
  94. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/render/batch.rs +34 -7
  95. pyropdf-0.3.0/crates/pyropdf-engine/src/render/fallback.rs +527 -0
  96. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/render/mod.rs +124 -45
  97. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/render/svg.rs +20 -9
  98. pyropdf-0.3.0/crates/pyropdf-engine/src/render/tests.rs +434 -0
  99. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/sign/key.rs +4 -0
  100. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/sign/mod.rs +8 -0
  101. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/sign/pkcs12.rs +47 -1
  102. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/sign/verify.rs +30 -1
  103. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/standard/layout.rs +12 -0
  104. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/standard/scan.rs +16 -2
  105. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/Cargo.toml +2 -2
  106. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/annotations/links.rs +180 -122
  107. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/annotations.rs +841 -447
  108. pyropdf-0.3.0/crates/pyropdf-python/src/buffers.rs +1194 -0
  109. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/cancel.rs +17 -13
  110. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/changes.rs +72 -20
  111. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/check.rs +38 -29
  112. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/codecs.rs +96 -39
  113. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/content.rs +45 -25
  114. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/document.rs +268 -195
  115. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/errors.rs +37 -1
  116. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/fax.rs +27 -13
  117. pyropdf-0.3.0/crates/pyropdf-python/src/fonts.rs +1356 -0
  118. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/forms.rs +969 -576
  119. pyropdf-0.3.0/crates/pyropdf-python/src/history/testing.rs +112 -0
  120. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/history.rs +263 -177
  121. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/images.rs +164 -137
  122. pyropdf-0.3.0/crates/pyropdf-python/src/items.rs +203 -0
  123. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/lib.rs +21 -5
  124. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/objects.rs +258 -172
  125. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/ocr.rs +139 -112
  126. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/outline.rs +295 -173
  127. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/pages.rs +786 -648
  128. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/pixel_ops.rs +98 -4
  129. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/pixmap.rs +751 -572
  130. pyropdf-0.3.0/crates/pyropdf-python/src/render.rs +51 -0
  131. pyropdf-0.3.0/crates/pyropdf-python/src/schema.rs +61 -0
  132. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/security.rs +33 -29
  133. pyropdf-0.3.0/crates/pyropdf-python/src/shadings.rs +176 -0
  134. pyropdf-0.3.0/crates/pyropdf-python/src/sign.rs +389 -0
  135. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/text.rs +194 -150
  136. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/unrotate.rs +230 -155
  137. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/windows_permissions.rs +8 -2
  138. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-schema/src/check/expr.rs +20 -0
  139. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-schema/src/check/mod.rs +96 -7
  140. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-schema/src/lib.rs +7 -0
  141. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/Cargo.toml +2 -2
  142. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/budget/code.rs +4 -3
  143. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/index/mod.rs +3 -2
  144. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/index/tests.rs +1 -4
  145. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/pages/tests.rs +1 -5
  146. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/save/raw.rs +1 -2
  147. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/security/tests.rs +1 -1
  148. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/security/value.rs +2 -1
  149. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/value/copy.rs +7 -5
  150. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/value/mod.rs +3 -6
  151. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/value/read.rs +53 -25
  152. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/value/tests.rs +53 -14
  153. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/version/tests.rs +1 -4
  154. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/version/transaction.rs +133 -8
  155. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/write/tests.rs +6 -10
  156. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/tests/corpus.rs +2 -2
  157. {pyropdf-0.2.1 → pyropdf-0.3.0}/pyproject.toml +17 -6
  158. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/__init__.py +17 -1
  159. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_canvas.py +631 -156
  160. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_content.py +467 -38
  161. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_core.pyi +115 -4
  162. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_document.py +78 -9
  163. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_errors.py +3 -0
  164. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_fonts.py +276 -26
  165. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_form.py +3 -2
  166. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_images.py +10 -8
  167. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_limit_codes.py +3 -3
  168. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_operations.py +2 -2
  169. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_page.py +91 -15
  170. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_text.py +10 -6
  171. pyropdf-0.2.1/Cargo.toml +0 -35
  172. pyropdf-0.2.1/crates/pyropdf-engine/src/extract/model.rs +0 -1449
  173. pyropdf-0.2.1/crates/pyropdf-engine/src/extract/tests.rs +0 -295
  174. pyropdf-0.2.1/crates/pyropdf-engine/src/fonts/compact/tests.rs +0 -146
  175. pyropdf-0.2.1/crates/pyropdf-engine/src/fonts/compact.rs +0 -199
  176. pyropdf-0.2.1/crates/pyropdf-engine/src/fonts/shape.rs +0 -292
  177. pyropdf-0.2.1/crates/pyropdf-engine/src/fonts/testdata/README.md +0 -7
  178. pyropdf-0.2.1/crates/pyropdf-engine/src/forms/face.rs +0 -259
  179. pyropdf-0.2.1/crates/pyropdf-engine/src/render/tests.rs +0 -176
  180. pyropdf-0.2.1/crates/pyropdf-python/src/buffers.rs +0 -596
  181. pyropdf-0.2.1/crates/pyropdf-python/src/fonts.rs +0 -887
  182. pyropdf-0.2.1/crates/pyropdf-python/src/items.rs +0 -124
  183. pyropdf-0.2.1/crates/pyropdf-python/src/render.rs +0 -48
  184. pyropdf-0.2.1/crates/pyropdf-python/src/schema.rs +0 -51
  185. pyropdf-0.2.1/crates/pyropdf-python/src/sign.rs +0 -352
  186. pyropdf-0.2.1/crates/pyropdf-store/clippy.toml +0 -101
  187. {pyropdf-0.2.1 → pyropdf-0.3.0}/LICENSE +0 -0
  188. {pyropdf-0.2.1 → pyropdf-0.3.0}/NOTICE +0 -0
  189. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/proptest-regressions/fonts/tests.txt +0 -0
  190. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/proptest-regressions/standard/tests.txt +0 -0
  191. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/annotations/shapes.rs +0 -0
  192. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/annotations/tests.rs +0 -0
  193. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/bridge/tests.rs +0 -0
  194. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/fonts/testdata/NotoSansArabic-Variable-subset.ttf +0 -0
  195. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/fonts/testdata/NotoSansHebrew-subset.ttf +0 -0
  196. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/fonts/testdata/NotoSansJP-subset.otf +0 -0
  197. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/fonts/testdata/OFL.txt +0 -0
  198. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/pages/mod.rs +0 -0
  199. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/pages/sources.rs +0 -0
  200. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/sign/signer_info.rs +0 -0
  201. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/sign/tests.rs +0 -0
  202. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/standard/appearance.rs +0 -0
  203. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/standard/font.rs +0 -0
  204. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/standard/mod.rs +0 -0
  205. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/standard/ops.rs +0 -0
  206. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-engine/src/standard/tests.rs +0 -0
  207. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/annotations/input.rs +0 -0
  208. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-python/src/source.rs +0 -0
  209. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-schema/Cargo.toml +0 -0
  210. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-schema/src/check/tests.rs +0 -0
  211. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-schema/src/generated.rs +0 -0
  212. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-schema/src/tests.rs +0 -0
  213. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/examples/parser_budget_probe.rs +0 -0
  214. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/proptest-regressions/refs/tests.txt +0 -0
  215. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/budget/cancel.rs +0 -0
  216. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/budget/decode.rs +0 -0
  217. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/budget/limits.rs +0 -0
  218. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/budget/mod.rs +0 -0
  219. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/budget/shared.rs +0 -0
  220. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/budget/tests.rs +0 -0
  221. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/budget/vec.rs +0 -0
  222. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/error.rs +0 -0
  223. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/index/lex.rs +0 -0
  224. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/index/objstm.rs +0 -0
  225. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/index/read.rs +0 -0
  226. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/index/scan.rs +0 -0
  227. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/lib.rs +0 -0
  228. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/memo/dependencies.rs +0 -0
  229. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/memo/mod.rs +0 -0
  230. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/memo/tests.rs +0 -0
  231. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/pages/mod.rs +0 -0
  232. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/refs/copy.rs +0 -0
  233. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/refs/derived.rs +0 -0
  234. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/refs/form_impact.rs +0 -0
  235. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/refs/forms.rs +0 -0
  236. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/refs/labels.rs +0 -0
  237. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/refs/mod.rs +0 -0
  238. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/refs/navigation.rs +0 -0
  239. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/refs/roles.rs +0 -0
  240. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/refs/rules.rs +0 -0
  241. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/refs/structure.rs +0 -0
  242. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/refs/tests.rs +0 -0
  243. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/save/base.rs +0 -0
  244. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/save/linear.rs +0 -0
  245. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/save/merge.rs +0 -0
  246. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/save/mod.rs +0 -0
  247. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/save/pack.rs +0 -0
  248. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/save/prune.rs +0 -0
  249. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/save/recode.rs +0 -0
  250. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/save/renumber.rs +0 -0
  251. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/save/tests.rs +0 -0
  252. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/security/crypto.rs +0 -0
  253. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/security/mod.rs +0 -0
  254. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/settle/tests.rs +0 -0
  255. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/settle.rs +0 -0
  256. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/value/bytes.rs +0 -0
  257. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/version/base.rs +0 -0
  258. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/version/document.rs +0 -0
  259. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/version/journal.rs +0 -0
  260. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/version/mod.rs +0 -0
  261. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/version/stale.rs +0 -0
  262. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/version/stamps.rs +0 -0
  263. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/version/table.rs +0 -0
  264. {pyropdf-0.2.1 → pyropdf-0.3.0}/crates/pyropdf-store/src/write/mod.rs +0 -0
  265. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_annotations.py +0 -0
  266. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_attachments.py +0 -0
  267. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_changes.py +0 -0
  268. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_check.py +0 -0
  269. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_chunks.py +0 -0
  270. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_clean.py +0 -0
  271. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_encryption.py +0 -0
  272. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_geometry.py +0 -0
  273. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_history.py +0 -0
  274. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_layers.py +0 -0
  275. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_limits.py +0 -0
  276. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_links.py +0 -0
  277. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_markdown.py +0 -0
  278. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_metadata.py +0 -0
  279. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_objects.py +0 -0
  280. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_ocr.py +0 -0
  281. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_outline.py +0 -0
  282. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_page_labels.py +0 -0
  283. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_pages.py +0 -0
  284. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_pixmap.py +0 -0
  285. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_profiles.py +0 -0
  286. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_recolor.py +0 -0
  287. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_sanitize.py +0 -0
  288. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_signing.py +0 -0
  289. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_tables.py +0 -0
  290. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_targets.py +0 -0
  291. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_text_edit.py +0 -0
  292. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/_widgets.py +0 -0
  293. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/py.typed +0 -0
  294. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/typed.py +0 -0
  295. {pyropdf-0.2.1 → pyropdf-0.3.0}/python/pyropdf/typed.pyi +0 -0
  296. {pyropdf-0.2.1 → pyropdf-0.3.0}/tools/arlington/model/LICENSE +0 -0
@@ -2,6 +2,12 @@
2
2
  # It is not intended for manual editing.
3
3
  version = 4
4
4
 
5
+ [[package]]
6
+ name = "ab_glyph_rasterizer"
7
+ version = "0.1.10"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
10
+
5
11
  [[package]]
6
12
  name = "adler2"
7
13
  version = "2.0.1"
@@ -26,9 +32,9 @@ dependencies = [
26
32
 
27
33
  [[package]]
28
34
  name = "aes"
29
- version = "0.9.3"
35
+ version = "0.9.4"
30
36
  source = "registry+https://github.com/rust-lang/crates.io-index"
31
- checksum = "35f0f96ce78e38c3dc6d8948aa8163d06385be74000f3c7a95bf1eef35d3ea32"
37
+ checksum = "fc0fc36d7440d015b45468ba08a21e80e056ebbd014c611c6298bb7503e04bd1"
32
38
  dependencies = [
33
39
  "cipher",
34
40
  "cpubits",
@@ -222,9 +228,9 @@ checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
222
228
 
223
229
  [[package]]
224
230
  name = "cms"
225
- version = "0.3.0-rc.0"
231
+ version = "0.3.0-rc.1"
226
232
  source = "registry+https://github.com/rust-lang/crates.io-index"
227
- checksum = "2a7e16fb99a745fd8c7327eeb7deb9f667c03320f4f61d23c1927a55813b4466"
233
+ checksum = "6e99ff55bfffd019bf15e3f0d5edef2ca1e3af5ade276ed100e3c0c3455050c2"
228
234
  dependencies = [
229
235
  "const-oid",
230
236
  "der",
@@ -270,9 +276,9 @@ dependencies = [
270
276
 
271
277
  [[package]]
272
278
  name = "crc32fast"
273
- version = "1.5.3"
279
+ version = "1.5.4"
274
280
  source = "registry+https://github.com/rust-lang/crates.io-index"
275
- checksum = "0ba106e844045ddc02c20768ac4b0b7cb45f2cc2ecbd833ac9f5dacb183c2055"
281
+ checksum = "5f97d3416d5337d15c4b0d78c8c91df922ca143f57ec20e2d1c188333047ef04"
276
282
  dependencies = [
277
283
  "cfg-if",
278
284
  ]
@@ -344,9 +350,9 @@ dependencies = [
344
350
 
345
351
  [[package]]
346
352
  name = "ctutils"
347
- version = "0.4.7"
353
+ version = "0.4.8"
348
354
  source = "registry+https://github.com/rust-lang/crates.io-index"
349
- checksum = "a2376ffd6f96d8a9db59875b4b6b0237d6900b5baf64279714e05493ce64828a"
355
+ checksum = "261af4dc7a06ea8a527a8717d8cbba3417530d6ea14e1edb3de6b67806be474f"
350
356
  dependencies = [
351
357
  "cmov",
352
358
  "subtle",
@@ -467,9 +473,9 @@ checksum = "f4beca3cb2444e3304ac30843cc091f44ed58932353cd492ce740067bfce6b12"
467
473
 
468
474
  [[package]]
469
475
  name = "fearless_simd"
470
- version = "1.1.0"
476
+ version = "1.2.0"
471
477
  source = "registry+https://github.com/rust-lang/crates.io-index"
472
- checksum = "3296eb97d869113eaf148a6bdf01884e90b3828ad7ae2340b0f93362fc158611"
478
+ checksum = "629c9d6b6f30b5604089e0980f4d924a013aacb1654a6cdf5d3d852224f68651"
473
479
 
474
480
  [[package]]
475
481
  name = "ff"
@@ -609,15 +615,15 @@ dependencies = [
609
615
 
610
616
  [[package]]
611
617
  name = "harfrust"
612
- version = "0.13.3"
618
+ version = "0.15.0"
613
619
  source = "registry+https://github.com/rust-lang/crates.io-index"
614
- checksum = "948d0741125ba89cd3e1c23e5642415b6ade7e1d29d67ba25fb925b533e989d6"
620
+ checksum = "865dcc4105d51c323d8fedbb2d75b5e9c8ecddf5613f74c82f851d0afbc97114"
615
621
  dependencies = [
616
622
  "bitflags 2.13.2",
617
623
  "bytemuck",
618
- "once_cell",
619
- "read-fonts 0.43.3",
624
+ "read-fonts 0.46.0",
620
625
  "smallvec",
626
+ "yoke",
621
627
  ]
622
628
 
623
629
  [[package]]
@@ -631,12 +637,12 @@ dependencies = [
631
637
 
632
638
  [[package]]
633
639
  name = "hayro"
634
- version = "0.8.0"
635
- source = "registry+https://github.com/rust-lang/crates.io-index"
636
- checksum = "4675ff5acd7ca41c0c34ccd2a3a154f5c86d8b5ec92bef0a114bfb194969e2af"
640
+ version = "0.9.0"
641
+ source = "git+https://github.com/yhay81/hayro?rev=394e4a0d37baf8af513f6ebda15f4bada85d6f23#394e4a0d37baf8af513f6ebda15f4bada85d6f23"
637
642
  dependencies = [
643
+ "ab_glyph_rasterizer",
638
644
  "bytemuck",
639
- "fearless_simd 1.1.0",
645
+ "fearless_simd 1.2.0",
640
646
  "hayro-interpret",
641
647
  "image",
642
648
  "kurbo",
@@ -647,69 +653,75 @@ dependencies = [
647
653
 
648
654
  [[package]]
649
655
  name = "hayro-ccitt"
650
- version = "0.4.0"
651
- source = "registry+https://github.com/rust-lang/crates.io-index"
652
- checksum = "2866f0d976e76497480b853d5e258dab6e4b89ecfe991124e08f15dfa8fd03ad"
656
+ version = "0.5.0"
657
+ source = "git+https://github.com/yhay81/hayro?rev=394e4a0d37baf8af513f6ebda15f4bada85d6f23#394e4a0d37baf8af513f6ebda15f4bada85d6f23"
653
658
 
654
659
  [[package]]
655
660
  name = "hayro-cmap"
656
- version = "0.1.0"
657
- source = "registry+https://github.com/rust-lang/crates.io-index"
658
- checksum = "24d285dc30731c8485de5fa732fbdf2b3affdf01e4da7c2135022ca6fa664bf6"
661
+ version = "0.1.1"
662
+ source = "git+https://github.com/yhay81/hayro?rev=394e4a0d37baf8af513f6ebda15f4bada85d6f23#394e4a0d37baf8af513f6ebda15f4bada85d6f23"
659
663
  dependencies = [
660
664
  "brotli",
661
665
  "hayro-postscript",
662
666
  ]
663
667
 
668
+ [[package]]
669
+ name = "hayro-font"
670
+ version = "0.5.0"
671
+ source = "git+https://github.com/yhay81/hayro?rev=394e4a0d37baf8af513f6ebda15f4bada85d6f23#394e4a0d37baf8af513f6ebda15f4bada85d6f23"
672
+ dependencies = [
673
+ "bitflags 2.13.2",
674
+ "hayro-cmap",
675
+ "hayro-syntax",
676
+ "kurbo",
677
+ "phf",
678
+ "rustc-hash",
679
+ "siphasher",
680
+ "skrifa 0.49.0",
681
+ ]
682
+
664
683
  [[package]]
665
684
  name = "hayro-interpret"
666
- version = "0.8.0"
667
- source = "registry+https://github.com/rust-lang/crates.io-index"
668
- checksum = "ac9df074ff163a63864cec9b0bf640ccbff8abf4e44481df7369ce0ac172ffbe"
685
+ version = "0.9.0"
686
+ source = "git+https://github.com/yhay81/hayro?rev=394e4a0d37baf8af513f6ebda15f4bada85d6f23#394e4a0d37baf8af513f6ebda15f4bada85d6f23"
669
687
  dependencies = [
670
688
  "bitflags 2.13.2",
671
689
  "hayro-cmap",
690
+ "hayro-font",
672
691
  "hayro-syntax",
673
692
  "kurbo",
674
693
  "moxcms",
675
- "phf",
676
694
  "rustc-hash",
677
695
  "siphasher",
678
- "skrifa 0.46.2",
679
696
  "smallvec",
680
- "yoke",
681
697
  ]
682
698
 
683
699
  [[package]]
684
700
  name = "hayro-jbig2"
685
- version = "0.3.1"
686
- source = "registry+https://github.com/rust-lang/crates.io-index"
687
- checksum = "000e025850f4592ddcaee85640db70704151f2bafd43b6f431aa5b6a2c6a35a9"
701
+ version = "0.4.0"
702
+ source = "git+https://github.com/yhay81/hayro?rev=394e4a0d37baf8af513f6ebda15f4bada85d6f23#394e4a0d37baf8af513f6ebda15f4bada85d6f23"
688
703
  dependencies = [
689
- "fearless_simd 1.1.0",
704
+ "fearless_simd 1.2.0",
690
705
  "hayro-ccitt",
691
706
  ]
692
707
 
693
708
  [[package]]
694
709
  name = "hayro-jpeg2000"
695
- version = "0.4.1"
696
- source = "registry+https://github.com/rust-lang/crates.io-index"
697
- checksum = "122c5f834c37a2260b9c851bb8be685cf539b2a8b94b704a931ef7d2525d5835"
710
+ version = "0.5.0"
711
+ source = "git+https://github.com/yhay81/hayro?rev=394e4a0d37baf8af513f6ebda15f4bada85d6f23#394e4a0d37baf8af513f6ebda15f4bada85d6f23"
698
712
  dependencies = [
699
- "fearless_simd 1.1.0",
713
+ "fearless_simd 1.2.0",
700
714
  ]
701
715
 
702
716
  [[package]]
703
717
  name = "hayro-postscript"
704
- version = "0.1.0"
705
- source = "registry+https://github.com/rust-lang/crates.io-index"
706
- checksum = "885c5ef0654933139a9b9546fc2c69e18d37f38aa2520f079092b1be18f1fcaa"
718
+ version = "0.2.0"
719
+ source = "git+https://github.com/yhay81/hayro?rev=394e4a0d37baf8af513f6ebda15f4bada85d6f23#394e4a0d37baf8af513f6ebda15f4bada85d6f23"
707
720
 
708
721
  [[package]]
709
722
  name = "hayro-svg"
710
- version = "0.8.0"
711
- source = "registry+https://github.com/rust-lang/crates.io-index"
712
- checksum = "e7377affc9513cf5b66c4a8b5fa1e6058ae652eef3d13fdc4709004a03968488"
723
+ version = "0.9.0"
724
+ source = "git+https://github.com/yhay81/hayro?rev=394e4a0d37baf8af513f6ebda15f4bada85d6f23#394e4a0d37baf8af513f6ebda15f4bada85d6f23"
713
725
  dependencies = [
714
726
  "base64",
715
727
  "hayro-interpret",
@@ -722,9 +734,8 @@ dependencies = [
722
734
 
723
735
  [[package]]
724
736
  name = "hayro-syntax"
725
- version = "0.8.0"
726
- source = "registry+https://github.com/rust-lang/crates.io-index"
727
- checksum = "6cdc818d8d265dcb42081d488f7599df4f73fb79e9d347ecedcd3c23809d2026"
737
+ version = "0.9.0"
738
+ source = "git+https://github.com/yhay81/hayro?rev=394e4a0d37baf8af513f6ebda15f4bada85d6f23#394e4a0d37baf8af513f6ebda15f4bada85d6f23"
728
739
  dependencies = [
729
740
  "flate2",
730
741
  "hayro-ccitt",
@@ -823,9 +834,9 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
823
834
 
824
835
  [[package]]
825
836
  name = "log"
826
- version = "0.4.34"
837
+ version = "0.4.35"
827
838
  source = "registry+https://github.com/rust-lang/crates.io-index"
828
- checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
839
+ checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c"
829
840
 
830
841
  [[package]]
831
842
  name = "md-5"
@@ -1201,12 +1212,13 @@ dependencies = [
1201
1212
 
1202
1213
  [[package]]
1203
1214
  name = "pyropdf-engine"
1204
- version = "0.2.1"
1215
+ version = "0.3.0"
1205
1216
  dependencies = [
1206
1217
  "cms",
1207
1218
  "der",
1208
1219
  "harfrust",
1209
1220
  "hayro",
1221
+ "hayro-font",
1210
1222
  "hayro-svg",
1211
1223
  "hmac",
1212
1224
  "p256",
@@ -1218,7 +1230,7 @@ dependencies = [
1218
1230
  "rten",
1219
1231
  "rten-tensor",
1220
1232
  "sha2",
1221
- "skrifa 0.46.2",
1233
+ "skrifa 0.49.0",
1222
1234
  "unicode-bidi",
1223
1235
  "unicode-linebreak",
1224
1236
  "unicode-script",
@@ -1228,7 +1240,7 @@ dependencies = [
1228
1240
 
1229
1241
  [[package]]
1230
1242
  name = "pyropdf-python"
1231
- version = "0.2.1"
1243
+ version = "0.3.0"
1232
1244
  dependencies = [
1233
1245
  "flate2",
1234
1246
  "gif",
@@ -1246,11 +1258,11 @@ dependencies = [
1246
1258
 
1247
1259
  [[package]]
1248
1260
  name = "pyropdf-schema"
1249
- version = "0.2.1"
1261
+ version = "0.3.0"
1250
1262
 
1251
1263
  [[package]]
1252
1264
  name = "pyropdf-store"
1253
- version = "0.2.1"
1265
+ version = "0.3.0"
1254
1266
  dependencies = [
1255
1267
  "aes",
1256
1268
  "flate2",
@@ -1339,13 +1351,16 @@ dependencies = [
1339
1351
 
1340
1352
  [[package]]
1341
1353
  name = "read-fonts"
1342
- version = "0.43.3"
1354
+ version = "0.46.0"
1343
1355
  source = "registry+https://github.com/rust-lang/crates.io-index"
1344
- checksum = "005c8acf251756c478b0bf402885bfd88a1476020c4c7e6060edc1aa68da38ea"
1356
+ checksum = "bdaa4fffe9ff3ca2c353fa9729792805b9b3e324695ff5a081f860612e81b330"
1345
1357
  dependencies = [
1346
1358
  "bytemuck",
1359
+ "foldhash",
1347
1360
  "font-types",
1348
1361
  "once_cell",
1362
+ "smallvec",
1363
+ "yoke",
1349
1364
  ]
1350
1365
 
1351
1366
  [[package]]
@@ -1573,12 +1588,15 @@ dependencies = [
1573
1588
 
1574
1589
  [[package]]
1575
1590
  name = "skrifa"
1576
- version = "0.46.2"
1591
+ version = "0.49.0"
1577
1592
  source = "registry+https://github.com/rust-lang/crates.io-index"
1578
- checksum = "d4febebda507fb889c545a37a135517769d1391941013561292897961d1887d6"
1593
+ checksum = "a7459fb60888ad9a5f367dd293fa2fb9df142cb451aa6bfd6cd66a7d6a9b739d"
1579
1594
  dependencies = [
1580
1595
  "bytemuck",
1581
- "read-fonts 0.43.3",
1596
+ "once_cell",
1597
+ "read-fonts 0.46.0",
1598
+ "smallvec",
1599
+ "yoke",
1582
1600
  ]
1583
1601
 
1584
1602
  [[package]]
@@ -1720,9 +1738,9 @@ checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f"
1720
1738
 
1721
1739
  [[package]]
1722
1740
  name = "unicode-script"
1723
- version = "0.5.8"
1741
+ version = "0.5.9"
1724
1742
  source = "registry+https://github.com/rust-lang/crates.io-index"
1725
- checksum = "383ad40bb927465ec0ce7720e033cb4ca06912855fc35db31b5755d0de75b1ee"
1743
+ checksum = "aa04c955db05429d464c74d495c1ee677e1866e783a4c3747f9c0cef7756cabf"
1726
1744
 
1727
1745
  [[package]]
1728
1746
  name = "unicode-segmentation"
@@ -1771,12 +1789,11 @@ dependencies = [
1771
1789
 
1772
1790
  [[package]]
1773
1791
  name = "wasm-bindgen"
1774
- version = "0.2.129"
1792
+ version = "0.2.130"
1775
1793
  source = "registry+https://github.com/rust-lang/crates.io-index"
1776
- checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409"
1794
+ checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c"
1777
1795
  dependencies = [
1778
1796
  "cfg-if",
1779
- "once_cell",
1780
1797
  "rustversion",
1781
1798
  "wasm-bindgen-macro",
1782
1799
  "wasm-bindgen-shared",
@@ -1784,9 +1801,9 @@ dependencies = [
1784
1801
 
1785
1802
  [[package]]
1786
1803
  name = "wasm-bindgen-macro"
1787
- version = "0.2.129"
1804
+ version = "0.2.130"
1788
1805
  source = "registry+https://github.com/rust-lang/crates.io-index"
1789
- checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535"
1806
+ checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9"
1790
1807
  dependencies = [
1791
1808
  "quote",
1792
1809
  "wasm-bindgen-macro-support",
@@ -1794,9 +1811,9 @@ dependencies = [
1794
1811
 
1795
1812
  [[package]]
1796
1813
  name = "wasm-bindgen-macro-support"
1797
- version = "0.2.129"
1814
+ version = "0.2.130"
1798
1815
  source = "registry+https://github.com/rust-lang/crates.io-index"
1799
- checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7"
1816
+ checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a"
1800
1817
  dependencies = [
1801
1818
  "bumpalo",
1802
1819
  "proc-macro2",
@@ -1807,9 +1824,9 @@ dependencies = [
1807
1824
 
1808
1825
  [[package]]
1809
1826
  name = "wasm-bindgen-shared"
1810
- version = "0.2.129"
1827
+ version = "0.2.130"
1811
1828
  source = "registry+https://github.com/rust-lang/crates.io-index"
1812
- checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6"
1829
+ checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e"
1813
1830
  dependencies = [
1814
1831
  "unicode-ident",
1815
1832
  ]
@@ -0,0 +1,52 @@
1
+ [workspace]
2
+ members = ["crates/*"]
3
+ resolver = "3"
4
+
5
+ [workspace.package]
6
+ version = "0.3.0"
7
+ authors = ["Yusuke Hayashi <yusuke8h@gmail.com>"]
8
+ edition = "2024"
9
+ license = "MIT"
10
+ repository = "https://github.com/yhay81/pyropdf"
11
+ publish = false
12
+
13
+ # The crates of DESIGN.md section 11. A crate depends only on the crates that
14
+ # section lists before it; tests/test_crate_dependencies.py checks the graph.
15
+ [workspace.dependencies]
16
+ pyropdf-store = { path = "crates/pyropdf-store" }
17
+ pyropdf-schema = { path = "crates/pyropdf-schema" }
18
+ pyropdf-engine = { path = "crates/pyropdf-engine" }
19
+
20
+ # hayro 0.9.0 lacks `GlyphRun::font_dict()`, which groups glyphs by font
21
+ # (#584). Until a release contains LaurenzV/hayro#1734, every hayro crate
22
+ # comes from one commit, hayro main 4f7d16fa with #1734, since the crates
23
+ # name each other by path and their types agree only from one source.
24
+ # fuzz/Cargo.toml repeats this table. #603 removes both.
25
+ [patch.crates-io]
26
+ hayro = { git = "https://github.com/yhay81/hayro", rev = "394e4a0d37baf8af513f6ebda15f4bada85d6f23" }
27
+ hayro-ccitt = { git = "https://github.com/yhay81/hayro", rev = "394e4a0d37baf8af513f6ebda15f4bada85d6f23" }
28
+ hayro-cmap = { git = "https://github.com/yhay81/hayro", rev = "394e4a0d37baf8af513f6ebda15f4bada85d6f23" }
29
+ hayro-font = { git = "https://github.com/yhay81/hayro", rev = "394e4a0d37baf8af513f6ebda15f4bada85d6f23" }
30
+ hayro-interpret = { git = "https://github.com/yhay81/hayro", rev = "394e4a0d37baf8af513f6ebda15f4bada85d6f23" }
31
+ hayro-jbig2 = { git = "https://github.com/yhay81/hayro", rev = "394e4a0d37baf8af513f6ebda15f4bada85d6f23" }
32
+ hayro-jpeg2000 = { git = "https://github.com/yhay81/hayro", rev = "394e4a0d37baf8af513f6ebda15f4bada85d6f23" }
33
+ hayro-postscript = { git = "https://github.com/yhay81/hayro", rev = "394e4a0d37baf8af513f6ebda15f4bada85d6f23" }
34
+ hayro-svg = { git = "https://github.com/yhay81/hayro", rev = "394e4a0d37baf8af513f6ebda15f4bada85d6f23" }
35
+ hayro-syntax = { git = "https://github.com/yhay81/hayro", rev = "394e4a0d37baf8af513f6ebda15f4bada85d6f23" }
36
+
37
+ # The release profile of pylopdf, where thin LTO kept most of fat LTO's gains
38
+ # in size and speed without the regressions that fat LTO showed there.
39
+ [profile.release]
40
+ lto = "thin"
41
+ codegen-units = 1
42
+ # PyO3 converts Rust panics into Python exceptions only when they unwind.
43
+ panic = "unwind"
44
+ # Leave `strip` unset so Cargo removes only debug information. Symbol tables
45
+ # name frames in panic backtraces, debuggers, and profilers; in pylopdf,
46
+ # stripping them saved only 0.34 to 0.49 MiB per Linux or macOS wheel.
47
+
48
+ # hayro renders the corpus in the tests of pyropdf-engine; unoptimized, one
49
+ # page takes seconds. Optimizing the dependencies alone keeps the workspace's
50
+ # own code quick to rebuild.
51
+ [profile.dev.package."*"]
52
+ opt-level = 2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyropdf
3
- Version: 0.2.1
3
+ Version: 0.3.0
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: Programming Language :: Python :: 3
@@ -13,8 +13,16 @@ Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
13
13
  Classifier: Programming Language :: Rust
14
14
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
15
  Classifier: Typing :: Typed
16
+ Requires-Dist: pylopdf-fonts-jp>=0.1.1,<0.2 ; extra == 'jp'
17
+ Requires-Dist: pylopdf-fonts-ko>=0.1.1,<0.2 ; extra == 'ko'
16
18
  Requires-Dist: pylopdf-ocr-models>=0.1.0,<0.2 ; extra == 'ocr'
19
+ Requires-Dist: pylopdf-fonts-zh-cn>=0.1.1,<0.2 ; extra == 'zh-cn'
20
+ Requires-Dist: pylopdf-fonts-zh-tw>=0.1.1,<0.2 ; extra == 'zh-tw'
21
+ Provides-Extra: jp
22
+ Provides-Extra: ko
17
23
  Provides-Extra: ocr
24
+ Provides-Extra: zh-cn
25
+ Provides-Extra: zh-tw
18
26
  License-File: LICENSE
19
27
  License-File: NOTICE
20
28
  License-File: tools/arlington/model/LICENSE
@@ -37,7 +45,7 @@ store that every engine reads, so an edit costs what it touches, every
37
45
  change can be undone, and a failed transaction leaves the document as it
38
46
  was.
39
47
 
40
- **Status:** alpha, 0.2. The API may change between minor versions. Documentation:
48
+ **Status:** 0.3. The API may change between minor versions. Documentation:
41
49
  <https://pyropdf.haya.works/>. [DESIGN.md](DESIGN.md) describes the
42
50
  foundation, and [CHANGELOG.md](CHANGELOG.md) what each release holds.
43
51
 
@@ -57,10 +65,12 @@ with pyropdf.open("input.pdf") as doc:
57
65
  doc.save("output.pdf", incremental=True)
58
66
  ```
59
67
 
60
- 0.2.1 reads text, words, layout, tables, images, fonts, and Markdown,
68
+ 0.3.0 reads text, words, layout, tables, images, fonts, and Markdown,
61
69
  exports them as JSON or retrieval chunks, runs offline OCR, and renders
62
- pages to pixmaps and SVG. It draws paths, images, pages, and text in
63
- Standard 14 or OpenType fonts with `page.draw`; edits pages and their boxes,
70
+ pages to pixmaps and SVG, drawing the CJK fonts that a document does not
71
+ embed in fallback faces. It draws paths and text in colors or gradients,
72
+ images, and pages, the text in Standard 14 or OpenType fonts, in color
73
+ glyphs and any weight of a variable face, with `page.draw`; edits pages and their boxes,
64
74
  text, images, colors, annotations, links, form fields, outlines,
65
75
  attachments, metadata, page labels, and layers; signs documents and verifies
66
76
  signatures; removes hidden or active content and subsets fonts; and saves
@@ -6,7 +6,7 @@ store that every engine reads, so an edit costs what it touches, every
6
6
  change can be undone, and a failed transaction leaves the document as it
7
7
  was.
8
8
 
9
- **Status:** alpha, 0.2. The API may change between minor versions. Documentation:
9
+ **Status:** 0.3. The API may change between minor versions. Documentation:
10
10
  <https://pyropdf.haya.works/>. [DESIGN.md](DESIGN.md) describes the
11
11
  foundation, and [CHANGELOG.md](CHANGELOG.md) what each release holds.
12
12
 
@@ -26,10 +26,12 @@ with pyropdf.open("input.pdf") as doc:
26
26
  doc.save("output.pdf", incremental=True)
27
27
  ```
28
28
 
29
- 0.2.1 reads text, words, layout, tables, images, fonts, and Markdown,
29
+ 0.3.0 reads text, words, layout, tables, images, fonts, and Markdown,
30
30
  exports them as JSON or retrieval chunks, runs offline OCR, and renders
31
- pages to pixmaps and SVG. It draws paths, images, pages, and text in
32
- Standard 14 or OpenType fonts with `page.draw`; edits pages and their boxes,
31
+ pages to pixmaps and SVG, drawing the CJK fonts that a document does not
32
+ embed in fallback faces. It draws paths and text in colors or gradients,
33
+ images, and pages, the text in Standard 14 or OpenType fonts, in color
34
+ glyphs and any weight of a variable face, with `page.draw`; edits pages and their boxes,
33
35
  text, images, colors, annotations, links, form fields, outlines,
34
36
  attachments, metadata, page labels, and layers; signs documents and verifies
35
37
  signatures; removes hidden or active content and subsets fonts; and saves
@@ -11,10 +11,13 @@ publish.workspace = true
11
11
  [dependencies]
12
12
  # Every engine reads the document through the store (DESIGN.md F1).
13
13
  pyropdf-store.workspace = true
14
- hayro = "0.8.0"
15
- hayro-svg = "0.8.0"
14
+ hayro = "0.9.0"
15
+ hayro-svg = "0.9.0"
16
+ # The stretch of a substitute font's glyph, which hayro-interpret keeps to
17
+ # itself, for the advances of text (#656).
18
+ hayro-font = "0.5.0"
16
19
  # The font tables that hayro already reads, for the line metrics of text.
17
- skrifa = "0.46.2"
20
+ skrifa = "0.49.0"
18
21
  # The bidirectional classes of the reading order of text.
19
22
  unicode-bidi = "0.3.18"
20
23
  # The Standard 14 fonts' Adobe metrics, and the break opportunities and
@@ -29,7 +32,7 @@ rten-tensor = "0.27.0"
29
32
  # structures of the RustCrypto next line, without cms's builder feature,
30
33
  # which pulls in the rsa crate and RUSTSEC-2023-0071. RSA keys sign through
31
34
  # a callback outside pyropdf.
32
- cms = { version = "0.3.0-rc.0", default-features = false }
35
+ cms = { version = "0.3.0-rc.1", default-features = false }
33
36
  der = { version = "0.8.3", features = ["alloc", "derive", "oid", "pem"] }
34
37
  x509-cert = { version = "0.3.0", default-features = false, features = ["pem"] }
35
38
  p256 = { version = "0.14.0", default-features = false, features = ["ecdsa", "pem"] }
@@ -39,8 +42,8 @@ p384 = { version = "0.14.0", default-features = false, features = ["ecdsa", "pem
39
42
  pkcs8 = { version = "0.11.0", features = ["encryption", "pem"] }
40
43
  sha2 = "0.11.1"
41
44
  hmac = "0.13.0"
42
- harfrust = "0.13.3"
43
- unicode-script = "0.5"
45
+ harfrust = "0.15.0"
46
+ unicode-script = "0.5.9"
44
47
 
45
48
  [dev-dependencies]
46
49
  # Property tests of the bridge (DESIGN.md F9).
@@ -0,0 +1,7 @@
1
+ # Seeds for failure cases proptest has generated in the past. It is
2
+ # automatically read and these particular cases re-run before any
3
+ # novel cases are generated.
4
+ #
5
+ # It is recommended to check this file in to source control so that
6
+ # everyone who runs the test benefits from these saved cases.
7
+ cc b1ed637011ddf3935d700425be7ebfbf2b74421814cbf6b3e413c9e7060cbd2c # shrinks to geometry = Radial { start: [0.0, 0.0], start_radius: 0.0, end: [0.0, -6172.224034019796], end_radius: 0.14545095578665812 }, stops = [Stop { offset: 0.0, color: [0.0, 0.0, 0.0], alpha: 0.0 }], extend = Repeat, area = [0.0, 0.0, 9170.304028324017, 0.0], repaired = false
@@ -11,6 +11,10 @@ const BLACK: (f64, f64, f64) = (0.0, 0.0, 0.0);
11
11
  pub(super) fn draw(canvas: &mut Canvas, paint: &Paint, icon: &[u8], size: (f64, f64)) {
12
12
  let (sx, sy) = (size.0 / 20.0, size.1 / 20.0);
13
13
  let mut shape = |operators: &str, coordinates: &[f64], filled: bool, outline: Option<f64>| {
14
+ #[expect(
15
+ clippy::disallowed_methods,
16
+ reason = "the coordinates of one of the constant shapes of an icon"
17
+ )]
14
18
  let scaled: Vec<f64> = coordinates
15
19
  .iter()
16
20
  .enumerate()
@@ -56,6 +60,10 @@ pub(super) fn draw(canvas: &mut Canvas, paint: &Paint, icon: &[u8], size: (f64,
56
60
  Some(1.5),
57
61
  );
58
62
  // The dot is black, not the annotation's color.
63
+ #[expect(
64
+ clippy::disallowed_methods,
65
+ reason = "the coordinates of one constant ellipse"
66
+ )]
59
67
  let dot: Vec<f64> = ellipse(9.0, 14.5, 11.0, 16.5)
60
68
  .iter()
61
69
  .enumerate()
@@ -163,6 +171,10 @@ pub(super) fn file(canvas: &mut Canvas, paint: &Paint, icon: &[u8], size: (f64,
163
171
  coordinates: &[f64],
164
172
  fill: Option<(f64, f64, f64)>,
165
173
  outline: Option<f64>| {
174
+ #[expect(
175
+ clippy::disallowed_methods,
176
+ reason = "the coordinates of one of the constant shapes of an icon"
177
+ )]
166
178
  let scaled: Vec<f64> = coordinates
167
179
  .as_chunks::<2>()
168
180
  .0
@@ -54,9 +54,17 @@ pub fn synthesized(
54
54
  }
55
55
  // Hash slots, load-factor slack, and temporary rehash storage.
56
56
  budget.charge(LimitCode::MemorySize, 64)?;
57
+ #[expect(
58
+ clippy::disallowed_methods,
59
+ reason = "the entry is charged to the budget above"
60
+ )]
57
61
  visited
58
62
  .try_reserve(1)
59
63
  .map_err(|_| LimitExceeded::new(LimitCode::MemorySize))?;
64
+ #[expect(
65
+ clippy::disallowed_methods,
66
+ reason = "the entry is charged to the budget above, and room is made for it"
67
+ )]
60
68
  visited.insert(reference);
61
69
  let Some((dict, form)) = plan(&reader, reference)? else {
62
70
  continue;
@@ -100,8 +108,14 @@ fn substitute(
100
108
  .filter(|number| *number < u32::MAX)
101
109
  .ok_or_else(|| Error::malformed("no object number remains for a synthesized appearance"))?;
102
110
  let mut normal = Dict::new();
103
- normal.insert(Name::from("N"), Value::Reference(Reference::new(number, 0)));
104
- dict.insert(Name::from("AP"), Value::Dict(normal));
111
+ #[expect(
112
+ clippy::disallowed_methods,
113
+ reason = "each key is a constant: the appearances hold one entry, and the annotation gains one"
114
+ )]
115
+ {
116
+ normal.insert(Name::from("N"), Value::Reference(Reference::new(number, 0)));
117
+ dict.insert(Name::from("AP"), Value::Dict(normal));
118
+ }
105
119
  Ok([
106
120
  (reference, Value::Dict(dict)),
107
121
  (Reference::new(number, 0), Value::from(form)),
@@ -137,6 +151,10 @@ fn plan(reader: &Reader<'_>, reference: Reference) -> Result<Option<(Dict, Strea
137
151
  .charge(LimitCode::AnnotationSynthesisCount, 1)?;
138
152
  charge_copy(CopyPart::Dict(dict), reader.budget)?;
139
153
  let mut dict = dict.clone();
154
+ #[expect(
155
+ clippy::disallowed_methods,
156
+ reason = "the annotation grows by one entry at most"
157
+ )]
140
158
  dict.insert(Name::from("Rect"), numbers_array(&drawn.rect));
141
159
  Ok(Some((dict, drawn.form())))
142
160
  }