pyropdf 0.2.1__tar.gz → 0.2.2__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 (288) hide show
  1. {pyropdf-0.2.1 → pyropdf-0.2.2}/Cargo.lock +87 -70
  2. pyropdf-0.2.2/Cargo.toml +52 -0
  3. {pyropdf-0.2.1 → pyropdf-0.2.2}/PKG-INFO +14 -4
  4. {pyropdf-0.2.1 → pyropdf-0.2.2}/README.md +5 -3
  5. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/Cargo.toml +9 -6
  6. pyropdf-0.2.2/crates/pyropdf-engine/proptest-regressions/content/shading/tests.txt +7 -0
  7. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/annotations/text.rs +18 -6
  8. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/bridge/mod.rs +1 -1
  9. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/content/mod.rs +7 -3
  10. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/content/page.rs +9 -10
  11. pyropdf-0.2.2/crates/pyropdf-engine/src/content/shading/tests.rs +595 -0
  12. pyropdf-0.2.2/crates/pyropdf-engine/src/content/shading.rs +803 -0
  13. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/content/tests.rs +41 -7
  14. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/extract/font_guard.rs +7 -12
  15. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/extract/glyphs.rs +13 -7
  16. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/extract/images.rs +8 -2
  17. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/extract/mod.rs +34 -14
  18. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/extract/model.rs +1088 -220
  19. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/extract/provenance.rs +2 -1
  20. pyropdf-0.2.2/crates/pyropdf-engine/src/extract/stretch.rs +91 -0
  21. pyropdf-0.2.2/crates/pyropdf-engine/src/extract/tests.rs +961 -0
  22. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/extract/text/layout.rs +6 -2
  23. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/extract/text/search.rs +5 -1
  24. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/extract/text/selection.rs +2 -1
  25. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/extract/text/tables.rs +3 -1
  26. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/extract/text.rs +302 -51
  27. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/bitmap/tests.rs +101 -0
  28. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/bitmap.rs +185 -0
  29. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/fonts/cff.rs +184 -38
  30. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/colour/tests.rs +172 -0
  31. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/colour.rs +287 -0
  32. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/colr/tests.rs +402 -0
  33. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/colr.rs +1643 -0
  34. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/compact/tests.rs +612 -0
  35. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/compact.rs +386 -0
  36. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/fonts/embed/tests.rs +3 -1
  37. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/fonts/embed.rs +24 -10
  38. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/instance/tests.rs +517 -0
  39. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/instance.rs +815 -0
  40. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/fonts/mod.rs +5 -0
  41. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/fonts/settle.rs +4 -2
  42. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/fonts/shape/tests.rs +67 -16
  43. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/shape.rs +315 -0
  44. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/NotoSansArabic-Variable-subset-instances.txt +169 -0
  45. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/README.md +11 -0
  46. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-bitmaps-cbdt-only.ttf +0 -0
  47. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-bitmaps-cbdt.ttf +0 -0
  48. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-bitmaps-sbix-2048.ttf +0 -0
  49. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-bitmaps-sbix-only.ttf +0 -0
  50. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-bitmaps-sbix.ttf +0 -0
  51. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-cbdt-raw.ttf +0 -0
  52. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-cbdt.ttf +0 -0
  53. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-colr-paints.ttf +0 -0
  54. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-colr-sweep.ttf +0 -0
  55. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-colr0.ttf +0 -0
  56. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-colr1.ttf +0 -0
  57. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-eblc-only.ttf +0 -0
  58. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-eblc.ttf +0 -0
  59. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-sbix-damaged.ttf +0 -0
  60. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-sbix-jpeg.ttf +0 -0
  61. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-sbix.ttf +0 -0
  62. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-svg-cff.otf +0 -0
  63. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour-svg.ttf +0 -0
  64. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/colour_faces.py +561 -0
  65. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/variable-bitmaps-cbdt.ttf +0 -0
  66. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/variable-bitmaps-sbix.ttf +0 -0
  67. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/variable-colour.ttf +0 -0
  68. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/variable-colr.ttf +0 -0
  69. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/variable-composites.ttf +0 -0
  70. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/variable-latin.ttf +0 -0
  71. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/variable-overflow.ttf +0 -0
  72. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/testdata/variable_faces.py +232 -0
  73. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/type3/tests.rs +216 -0
  74. pyropdf-0.2.2/crates/pyropdf-engine/src/fonts/type3.rs +563 -0
  75. pyropdf-0.2.2/crates/pyropdf-engine/src/forms/face.rs +541 -0
  76. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/forms/mod.rs +1 -0
  77. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/forms/text.rs +1 -1
  78. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/render/batch.rs +7 -5
  79. pyropdf-0.2.2/crates/pyropdf-engine/src/render/fallback.rs +527 -0
  80. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/render/mod.rs +109 -44
  81. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/render/svg.rs +20 -9
  82. pyropdf-0.2.2/crates/pyropdf-engine/src/render/tests.rs +379 -0
  83. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/Cargo.toml +2 -2
  84. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/annotations.rs +13 -4
  85. pyropdf-0.2.2/crates/pyropdf-python/src/buffers.rs +1073 -0
  86. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/content.rs +2 -2
  87. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/document.rs +27 -1
  88. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/fonts.rs +416 -15
  89. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/items.rs +106 -41
  90. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/lib.rs +9 -3
  91. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/pixmap.rs +8 -2
  92. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/render.rs +3 -2
  93. pyropdf-0.2.2/crates/pyropdf-python/src/shadings.rs +151 -0
  94. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/text.rs +39 -10
  95. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/Cargo.toml +2 -2
  96. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/budget/code.rs +4 -3
  97. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/index/mod.rs +3 -2
  98. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/index/tests.rs +1 -4
  99. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/pages/tests.rs +1 -5
  100. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/save/raw.rs +1 -2
  101. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/security/tests.rs +1 -1
  102. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/security/value.rs +2 -1
  103. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/value/copy.rs +7 -5
  104. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/value/mod.rs +3 -6
  105. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/value/read.rs +53 -25
  106. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/value/tests.rs +53 -14
  107. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/version/tests.rs +1 -4
  108. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/version/transaction.rs +133 -8
  109. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/write/tests.rs +6 -10
  110. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/tests/corpus.rs +2 -2
  111. {pyropdf-0.2.1 → pyropdf-0.2.2}/pyproject.toml +17 -6
  112. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/__init__.py +15 -1
  113. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_canvas.py +481 -124
  114. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_content.py +381 -33
  115. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_core.pyi +87 -1
  116. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_document.py +61 -8
  117. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_fonts.py +276 -26
  118. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_form.py +3 -2
  119. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_limit_codes.py +3 -3
  120. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_operations.py +2 -2
  121. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_page.py +73 -14
  122. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_text.py +1 -1
  123. pyropdf-0.2.1/Cargo.toml +0 -35
  124. pyropdf-0.2.1/crates/pyropdf-engine/src/extract/tests.rs +0 -295
  125. pyropdf-0.2.1/crates/pyropdf-engine/src/fonts/compact/tests.rs +0 -146
  126. pyropdf-0.2.1/crates/pyropdf-engine/src/fonts/compact.rs +0 -199
  127. pyropdf-0.2.1/crates/pyropdf-engine/src/fonts/shape.rs +0 -292
  128. pyropdf-0.2.1/crates/pyropdf-engine/src/fonts/testdata/README.md +0 -7
  129. pyropdf-0.2.1/crates/pyropdf-engine/src/forms/face.rs +0 -259
  130. pyropdf-0.2.1/crates/pyropdf-engine/src/render/tests.rs +0 -176
  131. pyropdf-0.2.1/crates/pyropdf-python/src/buffers.rs +0 -596
  132. {pyropdf-0.2.1 → pyropdf-0.2.2}/LICENSE +0 -0
  133. {pyropdf-0.2.1 → pyropdf-0.2.2}/NOTICE +0 -0
  134. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/proptest-regressions/fonts/tests.txt +0 -0
  135. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/proptest-regressions/standard/tests.txt +0 -0
  136. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/annotations/icons.rs +0 -0
  137. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/annotations/missing.rs +0 -0
  138. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/annotations/mod.rs +0 -0
  139. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/annotations/shapes.rs +0 -0
  140. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/annotations/tests.rs +0 -0
  141. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/bridge/tests.rs +0 -0
  142. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/extract/reads.rs +0 -0
  143. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/fonts/sfnt.rs +0 -0
  144. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/fonts/testdata/NotoSansArabic-Variable-subset.ttf +0 -0
  145. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/fonts/testdata/NotoSansHebrew-subset.ttf +0 -0
  146. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/fonts/testdata/NotoSansJP-subset.otf +0 -0
  147. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/fonts/testdata/OFL.txt +0 -0
  148. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/fonts/tests.rs +0 -0
  149. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/forms/defaults.rs +0 -0
  150. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/forms/flatten.rs +0 -0
  151. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/forms/tests.rs +0 -0
  152. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/lib.rs +0 -0
  153. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/ocr/layer.rs +0 -0
  154. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/ocr/mod.rs +0 -0
  155. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/pages/copy.rs +0 -0
  156. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/pages/import/graft.rs +0 -0
  157. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/pages/import.rs +0 -0
  158. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/pages/mod.rs +0 -0
  159. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/pages/sources.rs +0 -0
  160. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/sign/key.rs +0 -0
  161. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/sign/mod.rs +0 -0
  162. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/sign/pkcs12.rs +0 -0
  163. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/sign/signer_info.rs +0 -0
  164. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/sign/tests.rs +0 -0
  165. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/sign/verify.rs +0 -0
  166. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/standard/appearance.rs +0 -0
  167. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/standard/font.rs +0 -0
  168. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/standard/layout.rs +0 -0
  169. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/standard/mod.rs +0 -0
  170. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/standard/ops.rs +0 -0
  171. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/standard/scan.rs +0 -0
  172. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-engine/src/standard/tests.rs +0 -0
  173. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/annotations/input.rs +0 -0
  174. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/annotations/links.rs +0 -0
  175. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/cancel.rs +0 -0
  176. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/changes.rs +0 -0
  177. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/check.rs +0 -0
  178. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/codecs.rs +0 -0
  179. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/errors.rs +0 -0
  180. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/fax.rs +0 -0
  181. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/forms.rs +0 -0
  182. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/history.rs +0 -0
  183. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/images.rs +0 -0
  184. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/objects.rs +0 -0
  185. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/ocr.rs +0 -0
  186. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/outline.rs +0 -0
  187. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/pages.rs +0 -0
  188. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/pixel_ops.rs +0 -0
  189. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/schema.rs +0 -0
  190. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/security.rs +0 -0
  191. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/sign.rs +0 -0
  192. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/source.rs +0 -0
  193. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/unrotate.rs +0 -0
  194. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-python/src/windows_permissions.rs +0 -0
  195. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-schema/Cargo.toml +0 -0
  196. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-schema/src/check/expr.rs +0 -0
  197. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-schema/src/check/mod.rs +0 -0
  198. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-schema/src/check/tests.rs +0 -0
  199. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-schema/src/generated.rs +0 -0
  200. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-schema/src/lib.rs +0 -0
  201. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-schema/src/tests.rs +0 -0
  202. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/clippy.toml +0 -0
  203. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/examples/parser_budget_probe.rs +0 -0
  204. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/proptest-regressions/refs/tests.txt +0 -0
  205. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/budget/cancel.rs +0 -0
  206. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/budget/decode.rs +0 -0
  207. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/budget/limits.rs +0 -0
  208. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/budget/mod.rs +0 -0
  209. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/budget/shared.rs +0 -0
  210. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/budget/tests.rs +0 -0
  211. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/budget/vec.rs +0 -0
  212. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/error.rs +0 -0
  213. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/index/lex.rs +0 -0
  214. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/index/objstm.rs +0 -0
  215. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/index/read.rs +0 -0
  216. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/index/scan.rs +0 -0
  217. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/lib.rs +0 -0
  218. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/memo/dependencies.rs +0 -0
  219. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/memo/mod.rs +0 -0
  220. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/memo/tests.rs +0 -0
  221. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/pages/mod.rs +0 -0
  222. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/refs/copy.rs +0 -0
  223. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/refs/derived.rs +0 -0
  224. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/refs/form_impact.rs +0 -0
  225. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/refs/forms.rs +0 -0
  226. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/refs/labels.rs +0 -0
  227. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/refs/mod.rs +0 -0
  228. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/refs/navigation.rs +0 -0
  229. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/refs/roles.rs +0 -0
  230. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/refs/rules.rs +0 -0
  231. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/refs/structure.rs +0 -0
  232. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/refs/tests.rs +0 -0
  233. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/save/base.rs +0 -0
  234. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/save/linear.rs +0 -0
  235. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/save/merge.rs +0 -0
  236. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/save/mod.rs +0 -0
  237. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/save/pack.rs +0 -0
  238. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/save/prune.rs +0 -0
  239. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/save/recode.rs +0 -0
  240. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/save/renumber.rs +0 -0
  241. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/save/tests.rs +0 -0
  242. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/security/crypto.rs +0 -0
  243. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/security/mod.rs +0 -0
  244. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/settle/tests.rs +0 -0
  245. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/settle.rs +0 -0
  246. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/value/bytes.rs +0 -0
  247. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/version/base.rs +0 -0
  248. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/version/document.rs +0 -0
  249. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/version/journal.rs +0 -0
  250. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/version/mod.rs +0 -0
  251. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/version/stale.rs +0 -0
  252. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/version/stamps.rs +0 -0
  253. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/version/table.rs +0 -0
  254. {pyropdf-0.2.1 → pyropdf-0.2.2}/crates/pyropdf-store/src/write/mod.rs +0 -0
  255. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_annotations.py +0 -0
  256. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_attachments.py +0 -0
  257. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_changes.py +0 -0
  258. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_check.py +0 -0
  259. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_chunks.py +0 -0
  260. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_clean.py +0 -0
  261. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_encryption.py +0 -0
  262. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_errors.py +0 -0
  263. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_geometry.py +0 -0
  264. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_history.py +0 -0
  265. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_images.py +0 -0
  266. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_layers.py +0 -0
  267. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_limits.py +0 -0
  268. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_links.py +0 -0
  269. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_markdown.py +0 -0
  270. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_metadata.py +0 -0
  271. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_objects.py +0 -0
  272. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_ocr.py +0 -0
  273. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_outline.py +0 -0
  274. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_page_labels.py +0 -0
  275. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_pages.py +0 -0
  276. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_pixmap.py +0 -0
  277. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_profiles.py +0 -0
  278. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_recolor.py +0 -0
  279. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_sanitize.py +0 -0
  280. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_signing.py +0 -0
  281. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_tables.py +0 -0
  282. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_targets.py +0 -0
  283. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_text_edit.py +0 -0
  284. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/_widgets.py +0 -0
  285. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/py.typed +0 -0
  286. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/typed.py +0 -0
  287. {pyropdf-0.2.1 → pyropdf-0.2.2}/python/pyropdf/typed.pyi +0 -0
  288. {pyropdf-0.2.1 → pyropdf-0.2.2}/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.2.2"
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.2.2"
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.2.2"
1250
1262
 
1251
1263
  [[package]]
1252
1264
  name = "pyropdf-store"
1253
- version = "0.2.1"
1265
+ version = "0.2.2"
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.2.2"
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.2.2
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
@@ -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.2.2 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 in colors or gradients, images,
72
+ pages, and text in Standard 14 or OpenType fonts, in color glyphs and any
73
+ 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
@@ -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.2.2 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 in colors or gradients, images,
33
+ pages, and text in Standard 14 or OpenType fonts, in color glyphs and any
34
+ 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
@@ -8,7 +8,8 @@ use pyropdf_store::{Error, LimitExceeded, Result};
8
8
 
9
9
  use super::shapes::{LINE_ENDINGS, draw_ending, polyline};
10
10
  use super::{Canvas, KAPPA, Paint, Reader, Stroke, quarter_turn};
11
- use crate::forms::face::FaceText;
11
+ use crate::fonts::shape::ShapeError;
12
+ use crate::forms::face::{FaceText, Undrawable};
12
13
  use crate::forms::text_string;
13
14
  use crate::standard::{
14
15
  Align, Base14Font, DA_FONTS, DefaultAppearance, DeviceColor, FORM_LINE_HEIGHT, LayoutError,
@@ -37,6 +38,9 @@ pub enum TextFit {
37
38
  /// The text holds a character that the embedded face has no glyph
38
39
  /// for, and is not drawn.
39
40
  NoGlyph(char),
41
+ /// The text holds a character whose glyph in the embedded face is a
42
+ /// colour glyph with no outline, and is not drawn.
43
+ NoOutline(char),
40
44
  }
41
45
 
42
46
  /// The font that a drawing's text names: its resource name and the
@@ -244,8 +248,8 @@ pub(super) fn free_text(
244
248
 
245
249
  /// Draws `text` in embedded `face` in a box of `size` that `matrix`
246
250
  /// places, with the face's shaped glyphs, as form fields draw their values
247
- /// in it. Text with a character that the face lacks, or that does not fit,
248
- /// is left out.
251
+ /// in it. Text with a character that the face cannot draw, or that does not
252
+ /// fit, is left out.
249
253
  fn face_text(
250
254
  canvas: &mut Canvas<'_>,
251
255
  face: &mut FaceText<'_>,
@@ -261,10 +265,18 @@ fn face_text(
261
265
  _ => Ok((TextFit::Unfit, None)),
262
266
  }
263
267
  };
264
- match face.missing(text) {
265
- Ok(Some(character)) => return Ok((TextFit::NoGlyph(character), None)),
268
+ match face.undrawable(text) {
269
+ Ok(Some(Undrawable::NoGlyph(character))) => {
270
+ return Ok((TextFit::NoGlyph(character), None));
271
+ }
272
+ Ok(Some(Undrawable::NoOutline(character))) => {
273
+ return Ok((TextFit::NoOutline(character), None));
274
+ }
266
275
  Ok(None) => {}
267
- Err(error) => return refused(error),
276
+ Err(ShapeError::Limit(refusal)) => return Err(refusal.into()),
277
+ Err(ShapeError::Font(reason)) => {
278
+ return Err(Error::malformed(format!("invalid font: {reason}")));
279
+ }
268
280
  }
269
281
  let layout = match face.layout(text, size, style.size, FORM_LINE_HEIGHT) {
270
282
  Ok(layout) => layout,
@@ -278,7 +278,7 @@ fn check_pages(pdf: &Pdf, pages: &PageIndex) -> Result<()> {
278
278
  for (page, ours) in theirs.iter().zip(pages.pages()) {
279
279
  let id = page.raw().obj_id().and_then(|id| {
280
280
  Some(Reference::new(
281
- u32::try_from(id.obj_number).ok()?,
281
+ id.obj_number,
282
282
  u16::try_from(id.gen_number).ok()?,
283
283
  ))
284
284
  });
@@ -8,7 +8,7 @@
8
8
  //! of the previous one to the end of its operator, or to the end of `EI` for
9
9
  //! an inline image, and the bytes after the last operation are the tail: the
10
10
  //! bytes of the operations and the tail, in order, are the content. hayro
11
- //! stops at an operation that it cannot read, such as one with an eleventh
11
+ //! stops at an operation that it cannot read, such as one with a 34th
12
12
  //! operand, and the rest of the content then stays in the tail.
13
13
  //!
14
14
  //! Until hayro reports where each painted item comes from (I4,
@@ -25,6 +25,7 @@ use pyropdf_store::value::{Bytes, Value};
25
25
  use pyropdf_store::{Error, Result};
26
26
 
27
27
  mod page;
28
+ pub mod shading;
28
29
  #[cfg(test)]
29
30
  mod tests;
30
31
 
@@ -87,8 +88,11 @@ impl Operations {
87
88
  /// with `content_operation_count` more operations than the budget
88
89
  /// allows, with the budget's other limits what it does not allow, and
89
90
  /// with a malformed input error an operator written with a `#` escape,
90
- /// whose place hayro-syntax does not report, or a panic of hayro-syntax
91
- /// (I3, yhay81/pyropdf#19).
91
+ /// whose place hayro-syntax does not report, an operand nested deeper
92
+ /// than values are ([`MAX_NESTING`]), although hayro-syntax reads it, or
93
+ /// a panic of hayro-syntax (I3, yhay81/pyropdf#19).
94
+ ///
95
+ /// [`MAX_NESTING`]: pyropdf_store::value::MAX_NESTING
92
96
  pub fn parse(data: Bytes, budget: &Budget) -> Result<Self> {
93
97
  panic::catch_unwind(AssertUnwindSafe(|| parse(&data, budget)))
94
98
  .unwrap_or_else(|_| Err(Error::malformed("hayro-syntax panicked on the content")))