vec-io 0.7.1__tar.gz → 0.7.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 (543) hide show
  1. {vec_io-0.7.1 → vec_io-0.7.2}/PKG-INFO +1 -1
  2. {vec_io-0.7.1 → vec_io-0.7.2}/docs/api.md +42 -25
  3. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/AVIF.md +11 -3
  4. vec_io-0.7.2/docs/reference/Bookmark.md +25 -0
  5. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/CMYK.md +15 -3
  6. vec_io-0.7.2/docs/reference/Color.md +60 -0
  7. vec_io-0.7.2/docs/reference/Document.md +237 -0
  8. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/Filter.md +12 -8
  9. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/Flatten.md +11 -3
  10. vec_io-0.7.2/docs/reference/Font.md +49 -0
  11. vec_io-0.7.2/docs/reference/FontDB.md +195 -0
  12. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/Fonts.md +11 -3
  13. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/GlyphRun.md +6 -0
  14. vec_io-0.7.2/docs/reference/Image.md +119 -0
  15. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/ImagePolicy.md +15 -3
  16. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/JPEG.md +11 -3
  17. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/JXL.md +11 -3
  18. vec_io-0.7.2/docs/reference/Limits.md +49 -0
  19. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/LinearGradient.md +17 -6
  20. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/Matrix.md +42 -2
  21. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/PDF.md +11 -3
  22. vec_io-0.7.2/docs/reference/PDFFile.md +127 -0
  23. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/PDFPage.md +16 -3
  24. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/PNG.md +11 -3
  25. vec_io-0.7.2/docs/reference/Page.md +1189 -0
  26. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/PageBoxes.md +4 -0
  27. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/Path.md +94 -14
  28. vec_io-0.7.2/docs/reference/PathMarker.md +31 -0
  29. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/Pattern.md +9 -2
  30. vec_io-0.7.2/docs/reference/RadialGradient.md +57 -0
  31. vec_io-0.7.2/docs/reference/SVGDocument.md +66 -0
  32. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/Simplify.md +11 -3
  33. vec_io-0.7.2/docs/reference/Span.md +53 -0
  34. vec_io-0.7.2/docs/reference/Spot.md +40 -0
  35. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/Style.md +2 -0
  36. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/TIFF.md +11 -3
  37. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/TextLayout.md +18 -3
  38. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/View.md +17 -5
  39. vec_io-0.7.2/docs/reference/draw.Area.md +64 -0
  40. vec_io-0.7.2/docs/reference/draw.Cells.md +42 -0
  41. vec_io-0.7.2/docs/reference/draw.Circle.md +46 -0
  42. vec_io-0.7.2/docs/reference/draw.ClipPath.md +78 -0
  43. vec_io-0.7.2/docs/reference/draw.Drawing.md +117 -0
  44. vec_io-0.7.2/docs/reference/draw.Element.md +58 -0
  45. vec_io-0.7.2/docs/reference/draw.Ellipse.md +47 -0
  46. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/draw.Group.md +22 -1
  47. vec_io-0.7.2/docs/reference/draw.Image.md +44 -0
  48. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/draw.Line.md +13 -1
  49. vec_io-0.7.2/docs/reference/draw.Lines.md +63 -0
  50. vec_io-0.7.2/docs/reference/draw.Marker.md +57 -0
  51. vec_io-0.7.2/docs/reference/draw.Markers.md +64 -0
  52. vec_io-0.7.2/docs/reference/draw.Mask.md +87 -0
  53. vec_io-0.7.2/docs/reference/draw.Path.md +317 -0
  54. vec_io-0.7.2/docs/reference/draw.Pattern.md +55 -0
  55. vec_io-0.7.2/docs/reference/draw.Polygon.md +90 -0
  56. vec_io-0.7.2/docs/reference/draw.Polygons.md +59 -0
  57. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/draw.Polyline.md +11 -3
  58. vec_io-0.7.2/docs/reference/draw.Rect.md +51 -0
  59. vec_io-0.7.2/docs/reference/draw.Rects.md +62 -0
  60. vec_io-0.7.2/docs/reference/draw.SVG.md +42 -0
  61. vec_io-0.7.2/docs/reference/draw.Segments.md +62 -0
  62. vec_io-0.7.2/docs/reference/draw.TSpan.md +36 -0
  63. vec_io-0.7.2/docs/reference/draw.Text.md +47 -0
  64. vec_io-0.7.2/docs/reference/draw.TextBox.md +53 -0
  65. vec_io-0.7.2/docs/reference/draw.Use.md +40 -0
  66. vec_io-0.7.2/docs/reference/filter.Blend.md +23 -0
  67. vec_io-0.7.2/docs/reference/filter.ColorMatrix.md +23 -0
  68. vec_io-0.7.2/docs/reference/filter.ComponentTransfer.md +26 -0
  69. vec_io-0.7.2/docs/reference/filter.Composite.md +29 -0
  70. vec_io-0.7.2/docs/reference/filter.ConvolveMatrix.md +33 -0
  71. vec_io-0.7.2/docs/reference/filter.DiffuseLighting.md +27 -0
  72. vec_io-0.7.2/docs/reference/filter.DisplacementMap.md +26 -0
  73. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/filter.DistantLight.md +6 -2
  74. vec_io-0.7.2/docs/reference/filter.DropShadow.md +30 -0
  75. vec_io-0.7.2/docs/reference/filter.Flood.md +24 -0
  76. vec_io-0.7.2/docs/reference/filter.GaussianBlur.md +24 -0
  77. vec_io-0.7.2/docs/reference/filter.Image.md +24 -0
  78. vec_io-0.7.2/docs/reference/filter.Merge.md +22 -0
  79. vec_io-0.7.2/docs/reference/filter.Morphology.md +24 -0
  80. vec_io-0.7.2/docs/reference/filter.Offset.md +24 -0
  81. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/filter.PointLight.md +7 -2
  82. vec_io-0.7.2/docs/reference/filter.Primitive.md +27 -0
  83. vec_io-0.7.2/docs/reference/filter.SpecularLighting.md +29 -0
  84. vec_io-0.7.2/docs/reference/filter.SpotLight.md +26 -0
  85. vec_io-0.7.2/docs/reference/filter.Tile.md +30 -0
  86. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/filter.Transfer.md +11 -3
  87. vec_io-0.7.2/docs/reference/filter.Turbulence.md +29 -0
  88. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/text.Extent.md +2 -0
  89. vec_io-0.7.2/docs/reference/text.Glyph.md +48 -0
  90. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/text.Paragraphs.md +20 -4
  91. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/__init__.py +1 -1
  92. vec_io-0.7.2/vec_io/canvas.py +2816 -0
  93. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/convert.py +54 -44
  94. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/document.py +267 -174
  95. vec_io-0.7.2/vec_io/draw.py +2656 -0
  96. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/filter.py +326 -77
  97. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/fontdb.py +91 -32
  98. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/geometry.py +146 -28
  99. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/image/__init__.py +50 -20
  100. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/limits.py +27 -21
  101. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/options.py +99 -15
  102. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/paint.py +100 -35
  103. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdffile.py +63 -26
  104. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/__init__.py +11 -8
  105. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/parse.py +31 -14
  106. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/__init__.py +140 -65
  107. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/breaking.py +19 -5
  108. vec_io-0.7.2/vec_io/types.py +278 -0
  109. vec_io-0.7.1/docs/reference/Bookmark.md +0 -19
  110. vec_io-0.7.1/docs/reference/Color.md +0 -40
  111. vec_io-0.7.1/docs/reference/Document.md +0 -258
  112. vec_io-0.7.1/docs/reference/Font.md +0 -51
  113. vec_io-0.7.1/docs/reference/FontDB.md +0 -135
  114. vec_io-0.7.1/docs/reference/Image.md +0 -89
  115. vec_io-0.7.1/docs/reference/Limits.md +0 -43
  116. vec_io-0.7.1/docs/reference/PDFFile.md +0 -104
  117. vec_io-0.7.1/docs/reference/Page.md +0 -863
  118. vec_io-0.7.1/docs/reference/PathMarker.md +0 -27
  119. vec_io-0.7.1/docs/reference/RadialGradient.md +0 -41
  120. vec_io-0.7.1/docs/reference/SVGDocument.md +0 -49
  121. vec_io-0.7.1/docs/reference/Span.md +0 -38
  122. vec_io-0.7.1/docs/reference/Spot.md +0 -32
  123. vec_io-0.7.1/docs/reference/draw.Area.md +0 -42
  124. vec_io-0.7.1/docs/reference/draw.Cells.md +0 -29
  125. vec_io-0.7.1/docs/reference/draw.Circle.md +0 -36
  126. vec_io-0.7.1/docs/reference/draw.ClipPath.md +0 -31
  127. vec_io-0.7.1/docs/reference/draw.Drawing.md +0 -83
  128. vec_io-0.7.1/docs/reference/draw.Element.md +0 -45
  129. vec_io-0.7.1/docs/reference/draw.Ellipse.md +0 -36
  130. vec_io-0.7.1/docs/reference/draw.Image.md +0 -30
  131. vec_io-0.7.1/docs/reference/draw.Lines.md +0 -45
  132. vec_io-0.7.1/docs/reference/draw.Marker.md +0 -44
  133. vec_io-0.7.1/docs/reference/draw.Markers.md +0 -44
  134. vec_io-0.7.1/docs/reference/draw.Mask.md +0 -40
  135. vec_io-0.7.1/docs/reference/draw.Path.md +0 -198
  136. vec_io-0.7.1/docs/reference/draw.Pattern.md +0 -38
  137. vec_io-0.7.1/docs/reference/draw.Polygon.md +0 -39
  138. vec_io-0.7.1/docs/reference/draw.Polygons.md +0 -43
  139. vec_io-0.7.1/docs/reference/draw.Rect.md +0 -38
  140. vec_io-0.7.1/docs/reference/draw.Rects.md +0 -42
  141. vec_io-0.7.1/docs/reference/draw.SVG.md +0 -30
  142. vec_io-0.7.1/docs/reference/draw.Segments.md +0 -42
  143. vec_io-0.7.1/docs/reference/draw.TSpan.md +0 -30
  144. vec_io-0.7.1/docs/reference/draw.Text.md +0 -38
  145. vec_io-0.7.1/docs/reference/draw.TextBox.md +0 -39
  146. vec_io-0.7.1/docs/reference/draw.Use.md +0 -29
  147. vec_io-0.7.1/docs/reference/filter.Blend.md +0 -21
  148. vec_io-0.7.1/docs/reference/filter.ColorMatrix.md +0 -18
  149. vec_io-0.7.1/docs/reference/filter.ComponentTransfer.md +0 -19
  150. vec_io-0.7.1/docs/reference/filter.Composite.md +0 -19
  151. vec_io-0.7.1/docs/reference/filter.ConvolveMatrix.md +0 -23
  152. vec_io-0.7.1/docs/reference/filter.DiffuseLighting.md +0 -20
  153. vec_io-0.7.1/docs/reference/filter.DisplacementMap.md +0 -19
  154. vec_io-0.7.1/docs/reference/filter.DropShadow.md +0 -23
  155. vec_io-0.7.1/docs/reference/filter.Flood.md +0 -20
  156. vec_io-0.7.1/docs/reference/filter.GaussianBlur.md +0 -21
  157. vec_io-0.7.1/docs/reference/filter.Image.md +0 -19
  158. vec_io-0.7.1/docs/reference/filter.Merge.md +0 -18
  159. vec_io-0.7.1/docs/reference/filter.Morphology.md +0 -20
  160. vec_io-0.7.1/docs/reference/filter.Offset.md +0 -19
  161. vec_io-0.7.1/docs/reference/filter.Primitive.md +0 -18
  162. vec_io-0.7.1/docs/reference/filter.SpecularLighting.md +0 -22
  163. vec_io-0.7.1/docs/reference/filter.SpotLight.md +0 -17
  164. vec_io-0.7.1/docs/reference/filter.Tile.md +0 -20
  165. vec_io-0.7.1/docs/reference/filter.Turbulence.md +0 -21
  166. vec_io-0.7.1/docs/reference/text.Glyph.md +0 -43
  167. vec_io-0.7.1/vec_io/canvas.py +0 -2059
  168. vec_io-0.7.1/vec_io/draw.py +0 -1246
  169. vec_io-0.7.1/vec_io/types.py +0 -167
  170. {vec_io-0.7.1 → vec_io-0.7.2}/LICENSE +0 -0
  171. {vec_io-0.7.1 → vec_io-0.7.2}/README.md +0 -0
  172. {vec_io-0.7.1 → vec_io-0.7.2}/docs/examples.md +0 -0
  173. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/Marker.md +0 -0
  174. {vec_io-0.7.1 → vec_io-0.7.2}/docs/reference/Mask.md +0 -0
  175. {vec_io-0.7.1 → vec_io-0.7.2}/docs/tutorial.md +0 -0
  176. {vec_io-0.7.1 → vec_io-0.7.2}/hatch_build.py +0 -0
  177. {vec_io-0.7.1 → vec_io-0.7.2}/pyproject.toml +0 -0
  178. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/abc.br +0 -0
  179. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/abc.out.z +0 -0
  180. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/big.br +0 -0
  181. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/big.out.z +0 -0
  182. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/binary.br +0 -0
  183. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/binary.out.z +0 -0
  184. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/bits2.br +0 -0
  185. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/bits2.out.z +0 -0
  186. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/dictwords.br +0 -0
  187. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/dictwords.out.z +0 -0
  188. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/empty.br +0 -0
  189. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/empty.out.z +0 -0
  190. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/four.br +0 -0
  191. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/four.out.z +0 -0
  192. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/handmade.br +0 -0
  193. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/handmade.out.z +0 -0
  194. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/ints.br +0 -0
  195. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/ints.out.z +0 -0
  196. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/mixed.br +0 -0
  197. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/mixed.out.z +0 -0
  198. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/multi.br +0 -0
  199. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/multi.out.z +0 -0
  200. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/one.br +0 -0
  201. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/one.out.z +0 -0
  202. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/random.br +0 -0
  203. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/random.out.z +0 -0
  204. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/text11.br +0 -0
  205. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/text11.out.z +0 -0
  206. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/text_q2.br +0 -0
  207. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/text_q2.out.z +0 -0
  208. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/three.br +0 -0
  209. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/three.out.z +0 -0
  210. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/w10.br +0 -0
  211. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/w10.out.z +0 -0
  212. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/w24.br +0 -0
  213. {vec_io-0.7.1 → vec_io-0.7.2}/tests/brotli/w24.out.z +0 -0
  214. {vec_io-0.7.1 → vec_io-0.7.2}/tests/colorfonts/ColrV0Test.ttf +0 -0
  215. {vec_io-0.7.1 → vec_io-0.7.2}/tests/colorfonts/ColrV1Test.ttf +0 -0
  216. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/bench_showcase.svg +0 -0
  217. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/clipping.svg +0 -0
  218. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/css.svg +0 -0
  219. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/empty.svg +0 -0
  220. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/filters.svg +0 -0
  221. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/fonts_face.svg +0 -0
  222. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/gradients.svg +0 -0
  223. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/images.svg +0 -0
  224. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/markers.svg +0 -0
  225. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/masks.svg +0 -0
  226. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/opacity.svg +0 -0
  227. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/paths.svg +0 -0
  228. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/patterns.svg +0 -0
  229. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/rasterized.svg +0 -0
  230. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/shapes.svg +0 -0
  231. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/strokes.svg +0 -0
  232. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/structure.svg +0 -0
  233. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/text-wrap.svg +0 -0
  234. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/text_basic.svg +0 -0
  235. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/text_features.svg +0 -0
  236. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/text_layout.svg +0 -0
  237. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/text_path.svg +0 -0
  238. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/text_unicode.svg +0 -0
  239. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/transforms.svg +0 -0
  240. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/units.svg +0 -0
  241. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/use_symbol.svg +0 -0
  242. {vec_io-0.7.1 → vec_io-0.7.2}/tests/corpus/viewbox.svg +0 -0
  243. {vec_io-0.7.1 → vec_io-0.7.2}/tests/fonts/VioTest-Bold.ttf +0 -0
  244. {vec_io-0.7.1 → vec_io-0.7.2}/tests/fonts/VioTest-Regular.ttf +0 -0
  245. {vec_io-0.7.1 → vec_io-0.7.2}/tests/fuzz_native.py +0 -0
  246. {vec_io-0.7.1 → vec_io-0.7.2}/tests/fuzz_pdfread.py +0 -0
  247. {vec_io-0.7.1 → vec_io-0.7.2}/tests/group_oracle.py +0 -0
  248. {vec_io-0.7.1 → vec_io-0.7.2}/tests/helpers.py +0 -0
  249. {vec_io-0.7.1 → vec_io-0.7.2}/tests/jbig2_encoder.py +0 -0
  250. {vec_io-0.7.1 → vec_io-0.7.2}/tests/jpx_fixtures.py +0 -0
  251. {vec_io-0.7.1 → vec_io-0.7.2}/tests/make_crypt_fixtures.py +0 -0
  252. {vec_io-0.7.1 → vec_io-0.7.2}/tests/maps.py +0 -0
  253. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfbuild.py +0 -0
  254. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/cmyk8.j2k +0 -0
  255. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/cmyk8.jp2 +0 -0
  256. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/gray12.j2k +0 -0
  257. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/gray16.jp2 +0 -0
  258. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/gray4-signed.j2k +0 -0
  259. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/graya16.jp2 +0 -0
  260. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/gs-r2.pdf +0 -0
  261. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/gs-r3.pdf +0 -0
  262. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/icc-gray8.jp2 +0 -0
  263. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/qpdf-r2.pdf +0 -0
  264. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/qpdf-r3.pdf +0 -0
  265. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/qpdf-r4-aes-nometa.pdf +0 -0
  266. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/qpdf-r4-aes.pdf +0 -0
  267. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/qpdf-r4-objstm.pdf +0 -0
  268. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/qpdf-r4-pdfdoc.pdf +0 -0
  269. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/qpdf-r4-rc4.pdf +0 -0
  270. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/qpdf-r5.pdf +0 -0
  271. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/qpdf-r6-empty.pdf +0 -0
  272. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/qpdf-r6-utf8.pdf +0 -0
  273. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/qpdf-r6.pdf +0 -0
  274. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/rgb8.j2k +0 -0
  275. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/rgb8.jp2 +0 -0
  276. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/rgba8.jp2 +0 -0
  277. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/ycc420.jp2 +0 -0
  278. {vec_io-0.7.1 → vec_io-0.7.2}/tests/pdfread/ycc422-offset.jp2 +0 -0
  279. {vec_io-0.7.1 → vec_io-0.7.2}/tests/scene_oracle.py +0 -0
  280. {vec_io-0.7.1 → vec_io-0.7.2}/tests/shapes.py +0 -0
  281. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_actual_text.py +0 -0
  282. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_api.py +0 -0
  283. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_avif.py +0 -0
  284. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_backends.py +0 -0
  285. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_canvas_features.py +0 -0
  286. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_ccitt.py +0 -0
  287. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_cells.py +0 -0
  288. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_chrome_suite.py +0 -0
  289. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_cli.py +0 -0
  290. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_cmap.py +0 -0
  291. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_cmyk.py +0 -0
  292. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_codecs.py +0 -0
  293. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_compile.py +0 -0
  294. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_convert.py +0 -0
  295. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_css_browser.py +0 -0
  296. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_dlist.py +0 -0
  297. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_document_write.py +0 -0
  298. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_dpi.py +0 -0
  299. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_encodings.py +0 -0
  300. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_eps.py +0 -0
  301. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_features.py +0 -0
  302. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_filters.py +0 -0
  303. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_flatten.py +0 -0
  304. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_font_sources.py +0 -0
  305. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_font_tables.py +0 -0
  306. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_fonts_io.py +0 -0
  307. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_google_fonts.py +0 -0
  308. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_image_formats.py +0 -0
  309. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_jpx_jbig2.py +0 -0
  310. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_jxl.py +0 -0
  311. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_marker_runs.py +0 -0
  312. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_native.py +0 -0
  313. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_native_emit.py +0 -0
  314. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_native_jpeg.py +0 -0
  315. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_native_limits.py +0 -0
  316. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_native_png.py +0 -0
  317. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_network.py +0 -0
  318. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_output.py +0 -0
  319. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_paint_browser.py +0 -0
  320. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_parsing.py +0 -0
  321. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_pdf_security.py +0 -0
  322. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_pdfa.py +0 -0
  323. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_pdffile.py +0 -0
  324. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_pdfread.py +0 -0
  325. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_raster.py +0 -0
  326. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_readers.py +0 -0
  327. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_resize.py +0 -0
  328. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_save_pages.py +0 -0
  329. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_scene.py +0 -0
  330. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_shapes.py +0 -0
  331. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_simplify.py +0 -0
  332. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_svg_fonts.py +0 -0
  333. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_svg_semantics.py +0 -0
  334. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_svg_writer.py +0 -0
  335. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_text.py +0 -0
  336. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_text_as_paths.py +0 -0
  337. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_text_browser.py +0 -0
  338. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_textlayout.py +0 -0
  339. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_threads.py +0 -0
  340. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_trim.py +0 -0
  341. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_type1.py +0 -0
  342. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_units.py +0 -0
  343. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_varfonts.py +0 -0
  344. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_views.py +0 -0
  345. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_woff2.py +0 -0
  346. {vec_io-0.7.1 → vec_io-0.7.2}/tests/test_woff2_write.py +0 -0
  347. {vec_io-0.7.1 → vec_io-0.7.2}/tests/testfont.py +0 -0
  348. {vec_io-0.7.1 → vec_io-0.7.2}/tests/typing_sample.py +0 -0
  349. {vec_io-0.7.1 → vec_io-0.7.2}/tests/varfonts/VarTest.otf +0 -0
  350. {vec_io-0.7.1 → vec_io-0.7.2}/tests/varfonts/VarTest.ttf +0 -0
  351. {vec_io-0.7.1 → vec_io-0.7.2}/tests/woff2/make.py +0 -0
  352. {vec_io-0.7.1 → vec_io-0.7.2}/tests/woff2/pair.woff2 +0 -0
  353. {vec_io-0.7.1 → vec_io-0.7.2}/tests/woff2/rich-null.woff2 +0 -0
  354. {vec_io-0.7.1 → vec_io-0.7.2}/tests/woff2/rich.ttf +0 -0
  355. {vec_io-0.7.1 → vec_io-0.7.2}/tests/woff2/rich.woff2 +0 -0
  356. {vec_io-0.7.1 → vec_io-0.7.2}/tools/build_native.py +0 -0
  357. {vec_io-0.7.1 → vec_io-0.7.2}/tools/gen_api.py +0 -0
  358. {vec_io-0.7.1 → vec_io-0.7.2}/tools/zig.lock +0 -0
  359. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/__main__.py +0 -0
  360. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/arrays.py +0 -0
  361. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/cells.py +0 -0
  362. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/cli.py +0 -0
  363. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/css_tokens.py +0 -0
  364. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/eps/__init__.py +0 -0
  365. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/eps/fonts.py +0 -0
  366. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/errors.py +0 -0
  367. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/flate.py +0 -0
  368. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/flatten.py +0 -0
  369. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/__init__.py +0 -0
  370. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/cff.py +0 -0
  371. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/cff2.py +0 -0
  372. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/charstring.py +0 -0
  373. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/colr.py +0 -0
  374. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/ctan.py +0 -0
  375. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/download.py +0 -0
  376. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/encodings.py +0 -0
  377. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/fontshare.py +0 -0
  378. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/fontshare_families.txt +0 -0
  379. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/fontsource.py +0 -0
  380. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/fontsource_families.txt +0 -0
  381. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/glyphlist.txt +0 -0
  382. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/google.py +0 -0
  383. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/google_families.txt +0 -0
  384. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/opentype.py +0 -0
  385. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/program.py +0 -0
  386. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/sfnt.py +0 -0
  387. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/type1.py +0 -0
  388. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/urw.py +0 -0
  389. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/variations.py +0 -0
  390. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/web.py +0 -0
  391. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/fonts/woff2.py +0 -0
  392. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/image/avif.py +0 -0
  393. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/image/bmp.py +0 -0
  394. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/image/codecs.py +0 -0
  395. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/image/gif.py +0 -0
  396. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/image/icc.py +0 -0
  397. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/image/jbig2.py +0 -0
  398. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/image/jpx.py +0 -0
  399. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/image/jxl.py +0 -0
  400. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/image/resource.py +0 -0
  401. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/image/tiff.py +0 -0
  402. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/image/webp.py +0 -0
  403. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/items.py +0 -0
  404. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/lines.py +0 -0
  405. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/README.md +0 -0
  406. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/__init__.py +0 -0
  407. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/__main__.py +0 -0
  408. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/_api.py +0 -0
  409. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/brotli.py +0 -0
  410. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/emit.py +0 -0
  411. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/filters.py +0 -0
  412. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/jpeg.py +0 -0
  413. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/manifest.json +0 -0
  414. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/pdfread.py +0 -0
  415. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/png.py +0 -0
  416. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/alloc.c +0 -0
  417. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/brotli.c +0 -0
  418. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/brotli.h +0 -0
  419. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/brotli_dict.c +0 -0
  420. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/brotli_enc.c +0 -0
  421. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/ccitt.c +0 -0
  422. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/color.c +0 -0
  423. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/crypt.c +0 -0
  424. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/cull.c +0 -0
  425. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/data.c +0 -0
  426. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/dlist.c +0 -0
  427. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/dlist.h +0 -0
  428. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/emit.c +0 -0
  429. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/epsw.c +0 -0
  430. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/filters.c +0 -0
  431. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/flat.c +0 -0
  432. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/flatten.c +0 -0
  433. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/func.c +0 -0
  434. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/image.c +0 -0
  435. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/interp.c +0 -0
  436. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/interp.h +0 -0
  437. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/items.c +0 -0
  438. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/jpeg.h +0 -0
  439. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/jpeg_dec.c +0 -0
  440. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/jpeg_enc.c +0 -0
  441. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/jpx.c +0 -0
  442. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/lex.h +0 -0
  443. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/math.c +0 -0
  444. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/matrix.h +0 -0
  445. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/median.c +0 -0
  446. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/mesh.c +0 -0
  447. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/paint.c +0 -0
  448. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/path.c +0 -0
  449. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/pdfread.c +0 -0
  450. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/png.c +0 -0
  451. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/quant.c +0 -0
  452. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/raster.h +0 -0
  453. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/res.c +0 -0
  454. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/rt.c +0 -0
  455. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/samples.c +0 -0
  456. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/scan.c +0 -0
  457. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/scene.c +0 -0
  458. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/scene.h +0 -0
  459. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/shade.c +0 -0
  460. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/shade.h +0 -0
  461. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/signatures.c +0 -0
  462. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/stroke.c +0 -0
  463. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/svgw.c +0 -0
  464. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/vio.h +0 -0
  465. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/vio_api.h +0 -0
  466. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/src/woff2.c +0 -0
  467. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/native/woff2.py +0 -0
  468. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/network.py +0 -0
  469. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/notebook.py +0 -0
  470. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/output_plan.py +0 -0
  471. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdf/__init__.py +0 -0
  472. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdf/copier.py +0 -0
  473. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdf/images.py +0 -0
  474. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdf/objects.py +0 -0
  475. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdf/pdfa.py +0 -0
  476. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdf/writer.py +0 -0
  477. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/ccitt.py +0 -0
  478. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/cmap.py +0 -0
  479. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/cmap_resources.txt +0 -0
  480. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/cmaps.zip +0 -0
  481. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/colors.py +0 -0
  482. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/content.py +0 -0
  483. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/convert.py +0 -0
  484. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/errors.py +0 -0
  485. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/file.py +0 -0
  486. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/fonts.py +0 -0
  487. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/functions.py +0 -0
  488. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/images.py +0 -0
  489. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/meshes.py +0 -0
  490. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/origin.py +0 -0
  491. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/parser.py +0 -0
  492. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/reader.py +0 -0
  493. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/resources.py +0 -0
  494. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/security.py +0 -0
  495. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/shadings.py +0 -0
  496. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/pdfread/strings.py +0 -0
  497. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/py.typed +0 -0
  498. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/raster/__init__.py +0 -0
  499. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/raster/groups.py +0 -0
  500. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/raster/resources.py +0 -0
  501. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/recorder.py +0 -0
  502. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/records.py +0 -0
  503. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/resample.py +0 -0
  504. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/resources.py +0 -0
  505. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/scene.py +0 -0
  506. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/shapes.py +0 -0
  507. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/simplify.py +0 -0
  508. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/__init__.py +0 -0
  509. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/basic_shapes.py +0 -0
  510. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/clipmask.py +0 -0
  511. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/common.py +0 -0
  512. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/css.py +0 -0
  513. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/filters.py +0 -0
  514. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/fontface.py +0 -0
  515. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/images.py +0 -0
  516. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/markers.py +0 -0
  517. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/painter.py +0 -0
  518. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/properties.py +0 -0
  519. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/references.py +0 -0
  520. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/render.py +0 -0
  521. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/servers.py +0 -0
  522. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/text.py +0 -0
  523. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/text_paint.py +0 -0
  524. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/tree.py +0 -0
  525. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/values.py +0 -0
  526. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/svg/writer.py +0 -0
  527. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/bidi.py +0 -0
  528. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/harfbuzz.py +0 -0
  529. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/hyph_en_us.py +0 -0
  530. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/hyph_fr.py +0 -0
  531. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/hyphenation.py +0 -0
  532. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/mirroring.py +0 -0
  533. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/path.py +0 -0
  534. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/segment.py +0 -0
  535. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/shaping.py +0 -0
  536. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/ucd_grapheme.py +0 -0
  537. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/ucd_ignorable.py +0 -0
  538. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/ucd_linebreak.py +0 -0
  539. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/text/ucd_scripts.py +0 -0
  540. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/threads.py +0 -0
  541. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/transfer.py +0 -0
  542. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/trim.py +0 -0
  543. {vec_io-0.7.1 → vec_io-0.7.2}/vec_io/units.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: vec_io
3
- Version: 0.7.1
3
+ Version: 0.7.2
4
4
  Summary: Vector graphics in Python: read SVG and PDF; write PDF, SVG, EPS, PNG, JPEG, JPEG XL, AVIF
5
5
  Project-URL: Repository, https://github.com/ajgouhier/vec_io
6
6
  Author-email: Arthur Gouhier <ajgouhier@gmail.com>
@@ -525,25 +525,38 @@ them after. A page written while a `state()` or a `group()` (mask, pattern) is o
525
525
  group closed inside one opened in it, raises `StateError`. A value out of range or an unknown keyword raises
526
526
  `ArgumentError`; an unknown attribute `AttributeError` (with the closest name).
527
527
 
528
- | Attribute | Default | Values |
528
+ <!-- gen: style -->
529
+ | Attribute | Default | Meaning |
529
530
  |---|---|---|
530
- | `fill`, `stroke` | `"black"`, `None` | a paint: colour, [`LinearGradient`](reference/LinearGradient.md), [`RadialGradient`](reference/RadialGradient.md), [`Pattern`](reference/Pattern.md), `None` |
531
- | `stroke_width` | `1.0` | ≥ 0 (0: no stroke) |
532
- | `stroke_linecap`, `stroke_linejoin` | `"butt"`, `"miter"` | `butt`, `round`, `square`; `miter`, `miter-clip`, `arcs`, `round`, `bevel` |
533
- | `stroke_miterlimit` | `4.0` | ≥ 1 |
534
- | `stroke_dasharray`, `stroke_dashoffset` | `None`, `0.0` | lengths ≥ 0, a sequence or CSS text (read back as a tuple) |
535
- | `opacity`, `fill_opacity`, `stroke_opacity` | `1.0` | multipliers, 0–1 |
536
- | `font_family` | `"system-ui"` | a CSS family list ([16](#16-fonts)) |
537
- | `font_size` | `12.0` | ≥ 0 |
538
- | `font_weight`, `font_style`, `font_stretch` | `"normal"` | CSS values (`bold`, `1`–`1000`; `italic`, `oblique 10deg`; `condensed`, `50%`–`200%`) |
539
- | `font_variation_settings` | `""` | `'"wght" 650'` or `{"wght": 650}` ([variable fonts](#variable-fonts)) |
540
- | `font_optical_sizing`, `font_kerning` | `"auto"` | `auto`, `none` (kerning also `normal`) |
541
- | `font_embed` | `True` | `False`: a standard 14 font when the family names one |
542
- | `font_variant`, `font_feature_settings` | `"normal"`, `""` | CSS values ([shaping](#shaping)) |
543
- | `direction`, `text_anchor` | `"ltr"`, `"start"` | `ltr`, `rtl`, `auto`; `start`, `middle`, `end` (following the direction) |
544
- | `lang` | `None` | a BCP 47 tag: the text's language for shaping (`locl`) and hyphenation; `None`: the document's `lang` |
545
- | `letter_spacing`, `word_spacing` | `0.0` | lengths |
546
- | `fill_rule` | `"nonzero"` | `nonzero`, `evenodd` |
531
+ | `fill` | `"black"` | The paint of fills, a colour, a `LinearGradient`, `RadialGradient` or `Pattern`; `None`: no fill. |
532
+ | `stroke` | `None` | The paint of strokes, as `fill`; `None`: no stroke. |
533
+ | `stroke_width` | `1.0` | The stroke width, ≥ 0, in the document's unit (0 draws no stroke). |
534
+ | `stroke_linecap` | `"butt"` | The shape of line ends, `"butt"`, `"round"` or `"square"`. |
535
+ | `stroke_linejoin` | `"miter"` | The shape of corners, `"miter"`, `"miter-clip"`, `"arcs"`, `"round"` or `"bevel"`. |
536
+ | `stroke_miterlimit` | `4.0` | The miter limit, ≥ 1: the longest miter join, in stroke widths (longer ones are beveled). |
537
+ | `stroke_dasharray` | `None` | Dash and gap lengths, ≥ 0, a sequence or CSS text (`"4 2"`; read back as a tuple); `None`: solid. |
538
+ | `stroke_dashoffset` | `0.0` | Where the dash pattern starts along each subpath, a length. |
539
+ | `fill_opacity` | `1.0` | A factor on the alpha of fills, clamped to 0–1. |
540
+ | `stroke_opacity` | `1.0` | A factor on the alpha of strokes, clamped to 0–1. |
541
+ | `font_family` | `"system-ui"` | A CSS font family list (`"'DejaVu Sans', serif"`). |
542
+ | `font_size` | `12.0` | The font size, ≥ 0, in the document's unit. |
543
+ | `font_weight` | `"normal"` | `"normal"`, `"bold"`, `"bolder"`, `"lighter"` or 1–1000. |
544
+ | `font_style` | `"normal"` | `"normal"`, `"italic"`, `"oblique"` or `"oblique <angle>"` (`"oblique 10deg"`). |
545
+ | `text_anchor` | `"start"` | Where text lines up with its x, `"start"`, `"middle"` or `"end"` (start and end follow the direction). |
546
+ | `letter_spacing` | `0.0` | Extra space after each character, in the document's unit. |
547
+ | `word_spacing` | `0.0` | Extra space after each space, in the document's unit. |
548
+ | `fill_rule` | `"nonzero"` | Which areas of a self-crossing path are inside, `"nonzero"` or `"evenodd"`. |
549
+ | `font_stretch` | `"normal"` | A CSS font-stretch keyword (`"condensed"`) or a percentage, 50 %–200 %. |
550
+ | `font_variation_settings` | `""` | Variable font axes, CSS text (`'"wght" 650'`) or a dict (`{"wght": 650}`). |
551
+ | `font_optical_sizing` | `"auto"` | `"auto"` (the `opsz` axis follows the size) or `"none"`. |
552
+ | `font_kerning` | `"auto"` | `"auto"`, `"normal"` or `"none"`. |
553
+ | `font_embed` | `True` | `False`: a standard 14 font named by the family is not embedded. |
554
+ | `font_variant` | `"normal"` | CSS `font-variant` keywords (`"no-common-ligatures"`: no ligatures). |
555
+ | `font_feature_settings` | `""` | OpenType features, CSS text (`'"smcp"'`) or a dict (`{"smcp": 1}`). |
556
+ | `direction` | `"ltr"` | The paragraph direction of bidi text, `"ltr"`, `"rtl"` or `"auto"`. |
557
+ | `lang` | `None` | The text's language, a BCP 47 tag, for the fonts' forms (`locl`) and hyphenation; `None`: the document's `lang`. |
558
+ | `opacity` | `1.0` | A factor on every paint's alpha, clamped to 0–1. |
559
+ <!-- end gen -->
547
560
 
548
561
  `width`, `height`: the page size. `font`: the [`Font`](#61-shaping-without-a-page-vec_iotext)
549
562
  of the font attributes, also set from the CSS `font` shorthand (`page.font = "italic bold
@@ -1459,19 +1472,23 @@ leaves the document as it is, so one document can be written from several thread
1459
1472
  |---|---|---|
1460
1473
  | `compression` | PDF, EPS, SVGZ | `"fast"`, `"balanced"` (default) or `"small"`: zlib level 1, 6 or 9 for every compressed stream and image samples, and the effort of JPEG and JPEG XL encoding; `None`: streams uncompressed (a readable file). SVGZ: the gzip level (not `None`). |
1461
1474
  | `simplify` | all | `True` (300 dpi) or a resolution: leave out what later content hides at that resolution (no pixel changes by more than half a level) and decimate lines whose x values increase; `"auto"`: markers culled as with `True`, dense lines and areas decimated; a `Simplify` (or a dict of its fields): as `True` with its `dpi` and `tolerance`; `None` (default): only what the content asks for. Images only decimate. |
1462
- | `images` | PDF, EPS, SVG, SVGZ | An `ImagePolicy`: how images are stored. |
1463
- | `flatten` | PDF, EPS, SVG, SVGZ | A `Flatten`: translucent content drawn as opaque vectors. |
1475
+ | `images` | PDF, EPS, SVG, SVGZ | An `ImagePolicy` (or a dict of its fields): how images are stored. |
1476
+ | `dpi` | all | The output's resolution: images rendered at it (default the document's `default_dpi`); PDF, EPS and SVG images resampled to it (default: kept as they are). |
1477
+ | `flatten` | PDF, EPS, SVG, SVGZ | A `Flatten` (or a dict of its fields): translucent content drawn as opaque vectors; `None`: the format's default (EPS always flattens). |
1464
1478
  | `font_hinting` | PDF, EPS, SVG, SVGZ | The hints of embedded subsets: `"auto"` (default: CFF and Type 1 hints kept, TrueType hinting when it adds at most 1 KB or 10 % of the subset), `True` (all kept) or `False` (none; CFF glyphs re-encoded without subroutines). |
1465
1479
  | `text` | PDF, EPS, SVG, SVGZ | `"fonts"` (default: fonts embedded as subsets), `"paths"` (text drawn as glyph outlines, no font written) or `"names"` (SVG: fonts named, not embedded). |
1466
1480
  | `color` | PDF, EPS, TIFF | `"rgb"` (default) or `"cmyk"` (RGB colours, gradients, PNG images and rasterized groups converted to DeviceCMYK, K = 1 − max(R, G, B); TIFF: each page rendered in RGB, then converted). |
1467
1481
  | `ink_limit` | PDF, EPS, TIFF | With `color="cmyk"`, the total ink of converted colours, in percent. |
1468
- | `pdf` | PDF | A `PDF`: PDF/A level and output intent. |
1482
+ | `pdf` | PDF | A `PDF` (or a dict of its fields): PDF/A level and output intent. |
1469
1483
  | `id_prefix` | SVG, SVGZ | The start of every id and class name; default `None`: `v`, 8 hex digits of a SHA-256 of the file and `-`; `""`: none. |
1470
1484
  | `svg_filters` | SVG, SVGZ | `"native"` (default: filtered groups as `<filter>` elements the viewer runs) or `"images"` (as the PDF has them). |
1471
- | `dpi` | all | The output's resolution: images rendered at it (default the document's `default_dpi`); PDF, EPS and SVG images resampled to it (default: kept as they are). |
1472
- | `view` | all | A `View` (numbers in CSS pixels) for this output only. |
1473
- | `background` | PNG, JPEG, JPEG XL, AVIF, TIFF | A colour under the page; `None`: transparent (white for JPEG and CMYK TIFF). |
1474
- | `png`, `jpeg`, `jxl`, `avif`, `tiff` | PNG, JPEG, JPEG XL, AVIF, TIFF | The format's options, `PNG`, `JPEG`, `JXL`, `AVIF`, `TIFF`. |
1485
+ | `view` | all | A `View` (or a dict of its fields; numbers in CSS pixels) for this output only. |
1486
+ | `background` | PNG, JPEG, JPEG XL, AVIF, TIFF | A colour under the page; `None` (default): transparent (white for JPEG and CMYK TIFF). |
1487
+ | `png` | PNG | PNG's options, a `PNG` or a dict of its fields; `None`: the defaults. |
1488
+ | `jpeg` | JPEG | JPEG's options, a `JPEG` or a dict of its fields; `None`: the defaults. |
1489
+ | `jxl` | JPEG XL | JPEG XL's options, a `JXL` or a dict of its fields; `None`: the defaults. |
1490
+ | `avif` | AVIF | AVIF's options, an `AVIF` or a dict of its fields; `None`: the defaults. |
1491
+ | `tiff` | TIFF | TIFF's options, a `TIFF` or a dict of its fields; `None`: the defaults. |
1475
1492
  <!-- end gen -->
1476
1493
 
1477
1494
  An unknown option, one of another output (`"compression applies to PDF, EPS and SVGZ
@@ -26,7 +26,11 @@ AVIF(*, quality=None, compression="balanced")
26
26
  avif.replace(**changes)
27
27
  ```
28
28
 
29
- A copy with `changes` (fields and their values), checked.
29
+ A copy with `changes`, checked.
30
+
31
+ | Parameter | Meaning |
32
+ |---|---|
33
+ | `changes` | Fields and their new values. |
30
34
 
31
35
  ### of
32
36
 
@@ -34,8 +38,12 @@ A copy with `changes` (fields and their values), checked.
34
38
  AVIF.of(value, what)
35
39
  ```
36
40
 
37
- `value` as this option: `None`, an instance, or a dict of its fields.
38
- Raises `OptionError`.
41
+ `value` as this option. Raises `OptionError`.
42
+
43
+ | Parameter | Meaning |
44
+ |---|---|
45
+ | `value` | `None`, an instance, or a dict of its fields. |
46
+ | `what` | The argument's name, for the error. |
39
47
 
40
48
  ## See also
41
49
 
@@ -0,0 +1,25 @@
1
+ # Bookmark
2
+
3
+ ```python
4
+ from vec_io import Bookmark
5
+ ```
6
+
7
+ An entry of the document outline, made by [`Document.add_bookmark()`](Document.md#add_bookmark) (it is the
8
+ `parent` of the entries under it). The arguments are attributes of the same names,
9
+ with `children` (the entries under it). The top-level entries are
10
+ [`Document.bookmarks`](Document.md#bookmarks).
11
+
12
+ | Parameter | Meaning |
13
+ |---|---|
14
+ | `title` | The entry's text. |
15
+ | `page` | The `Page` it opens. |
16
+ | `y` | The height on the page, in the document's unit; `None`: the top. |
17
+ | `parent` | The entry it is under; `None`: a top-level entry. |
18
+
19
+ ```python
20
+ Bookmark(title, page, y, parent)
21
+ ```
22
+
23
+ ## See also
24
+
25
+ - [4. Document and Page](../api.md#4-document-and-page)
@@ -4,11 +4,19 @@
4
4
  from vec_io import CMYK
5
5
  ```
6
6
 
7
- A device CMYK color: `CMYK(c, m, y, k, alpha=1.0)`, components in [0, 1].
7
+ A device CMYK color; components and alpha are clamped to [0, 1].
8
8
 
9
9
  Written to the PDF as given (`k` / `K` operators). `rgb` and `rgba` are its
10
- display (`cmyk_to_rgb()`), used where RGB is needed (rasters, luminosity, SVG output without
11
- `device-cmyk`). Equal only to a CMYK color of the same components.
10
+ display, by `cmyk_to_rgb()`, used where RGB is needed (rasters, luminosity, SVG
11
+ output without `device-cmyk`). Equal only to a CMYK color of the same components.
12
+
13
+ | Parameter | Meaning |
14
+ |---|---|
15
+ | `c` | Cyan in [0, 1]. |
16
+ | `m` | Magenta in [0, 1]. |
17
+ | `y` | Yellow in [0, 1]. |
18
+ | `k` | Black in [0, 1]. |
19
+ | `alpha` | Alpha (opacity) in [0, 1]. |
12
20
 
13
21
  ```python
14
22
  CMYK(c, m, y, k, alpha=1.0)
@@ -30,6 +38,10 @@ cmyk.with_alpha(alpha) -> CMYK
30
38
 
31
39
  This color with another alpha.
32
40
 
41
+ | Parameter | Meaning |
42
+ |---|---|
43
+ | `alpha` | New alpha in [0, 1]. |
44
+
33
45
  ### css
34
46
 
35
47
  ```python
@@ -0,0 +1,60 @@
1
+ # Color
2
+
3
+ ```python
4
+ from vec_io import Color
5
+ ```
6
+
7
+ An sRGB color, a 4-tuple of red, green, blue and alpha in [0, 1] (any 3- or 4-tuple
8
+ of numbers in [0, 1], a CSS string, [`CMYK`](CMYK.md) or [`Spot`](Spot.md) is a color too).
9
+
10
+ | Parameter | Meaning |
11
+ |---|---|
12
+ | `r` | Red in [0, 1]. |
13
+ | `g` | Green in [0, 1]. |
14
+ | `b` | Blue in [0, 1]. |
15
+ | `alpha` | Alpha (opacity) in [0, 1]. |
16
+
17
+ The type of the None singleton.
18
+
19
+ ```python
20
+ Color(r, g, b, alpha=1.0) -> Color
21
+ ```
22
+
23
+ ## Members
24
+
25
+ ### rgb255
26
+
27
+ ```python
28
+ Color.rgb255(r, g, b, alpha=1.0) -> Color
29
+ ```
30
+
31
+ The color of red, green and blue on the 0-255 scale.
32
+
33
+ | Parameter | Meaning |
34
+ |---|---|
35
+ | `r` | Red in [0, 255]. |
36
+ | `g` | Green in [0, 255]. |
37
+ | `b` | Blue in [0, 255]. |
38
+ | `alpha` | Alpha (opacity) in [0, 1]. |
39
+
40
+ ### alpha
41
+
42
+ Property.
43
+
44
+ The alpha channel.
45
+
46
+ ### with_alpha
47
+
48
+ ```python
49
+ color.with_alpha(alpha) -> Color
50
+ ```
51
+
52
+ This color with another alpha.
53
+
54
+ | Parameter | Meaning |
55
+ |---|---|
56
+ | `alpha` | New alpha in [0, 1]. |
57
+
58
+ ## See also
59
+
60
+ - [1. Conventions](../api.md#1-conventions)
@@ -0,0 +1,237 @@
1
+ # Document
2
+
3
+ ```python
4
+ from vec_io import Document
5
+ ```
6
+
7
+ A document made of pages you draw on, written as PDF, SVG, EPS, PNG, JPEG, JPEG XL or
8
+ AVIF.
9
+
10
+ A document records what is drawn; it is written with `write()` or `save()` and
11
+ its pages rendered with [`Page.render()`](Page.md#render), any number of times and in any order, with
12
+ the options of each output. Drawing may go on after a save. A notebook shows its
13
+ first page as SVG.
14
+
15
+ The arguments are attributes of the same names (`unit` read-only), with `pages`
16
+ (its [`Page`](Page.md) objects), `bookmarks` (the top-level [`Bookmark`](Bookmark.md) entries),
17
+ `font_db` and `points_per_unit`.
18
+
19
+ Colours, images and text are recorded as given; the output options of `write()`
20
+ (`color`, `ink_limit`, `pdf`, `text`) convert them. SVGs placed from text or
21
+ bytes resolve their own references against `base_dir`; an element's `data-filters`
22
+ attribute overrides `filters`. `network=False` also turns font downloads off (a
23
+ `Fonts(db=…)` keeps its own setting). PDF/A files without a `creation_date` are
24
+ dated the time they are written; other files have no date unless one is given. Vector
25
+ output never uses `default_dpi` (its images keep their resolution unless an output's
26
+ `ImagePolicy` sets `dpi`).
27
+
28
+ | Parameter | Meaning |
29
+ |---|---|
30
+ | `unit` | The unit of every page's size and coordinate system, of lengths in drawing calls and of font sizes: `"pt"`, `"px"` (CSS pixels, 1/96 in), `"mm"`, `"cm"`, `"in"`, `"pc"` or `"q"`. |
31
+ | `title` | The document's title (metadata). |
32
+ | `author` | The document's author (metadata). |
33
+ | `subject` | The document's subject (metadata). |
34
+ | `keywords` | The document's keywords (metadata). |
35
+ | `creator` | The application that made the document (metadata). |
36
+ | `lang` | The document's language, a BCP 47 tag such as `"en"` or `"fr-CA"` (PDF: the catalog's `/Lang` and the XMP `dc:language`); also the language of the pages' text (a page's `lang` state otherwise), for fonts' forms and hyphenation. |
37
+ | `alt` | The text alternative of each page drawn (PDF: a tagged `/Figure` with `/Alt` per page; pages copied from a PDF file keep their own content, untagged). |
38
+ | `fonts` | Where fonts come from, a `Fonts` or a dict of its fields; `None`: the system's, `VEC_IO_FONT_DIRS` and downloads of named families that are not installed. |
39
+ | `base_dir` | The directory relative paths are resolved against (images, SVG files, fonts, attachments, the ICC profile); `None`: the working directory. |
40
+ | `filters` | Apply the SVG filter effects of placed SVGs and drawings (rasterized). |
41
+ | `network` | Fetch the http and https URLs that placed SVGs refer to (images, other SVG documents, style sheets, fonts), each once, within the fetch limits of `Limits`, and download fonts; `False` fetches nothing. |
42
+ | `creation_date` | Written as creation and modification date, a `datetime.datetime`, a `datetime.date` (midnight) or ISO 8601 text; naive values are UTC; `None`: no date. |
43
+ | `default_dpi` | The resolution of image output when none is given (`Page.render`, `convert` to an image format), a number or `"Nx"` (N × 96). |
44
+ | `embedding` | `"honor"`: a font whose embedding permissions (`OS/2` `fsType`, Type 1 `/FSType`) forbid embedding (Restricted License) or allow bitmaps only is drawn as the outlines of its glyphs, with one warning per font; `"ignore"`: such fonts are embedded as any other. |
45
+
46
+ ```python
47
+ Document(unit="pt", *, title=None, author=None, subject=None, keywords=None, creator=None,
48
+ lang=None, alt=None, fonts=None, base_dir=None, filters=True, network=True,
49
+ creation_date=None, default_dpi="2x", embedding="honor")
50
+ ```
51
+
52
+ ## Members
53
+
54
+ ### creation_date
55
+
56
+ Property.
57
+
58
+ The creation date written (UTC when given naive), or `None`.
59
+
60
+ ### bookmarks
61
+
62
+ Property.
63
+
64
+ The outline: its top-level [`Bookmark`](Bookmark.md) entries (those of a PDF file read
65
+ are read on first use).
66
+
67
+ ### font_db
68
+
69
+ Property.
70
+
71
+ The font database text is shaped with (from `fonts`).
72
+
73
+ ### unit
74
+
75
+ Property.
76
+
77
+ The document's unit (read-only: set at construction).
78
+
79
+ ### points_per_unit
80
+
81
+ Property.
82
+
83
+ Points per document unit (`1` for `"pt"`, `0.75` for `"px"`).
84
+
85
+ ### add_page
86
+
87
+ ```python
88
+ document.add_page(width=None, height=None, *, size="A4", landscape=False, copy=None) -> Page
89
+ ```
90
+
91
+ Add a page and return it.
92
+
93
+ Give `width` and `height`, or `size`; one of `width` and `height` alone
94
+ raises `ArgumentError`. With `copy` no size is given; what the copied page draws
95
+ is copied, later drawing on either page is its own. Named sizes: `A0`–`A6`,
96
+ `B4`, `B5`, `Letter`, `Legal`, `Tabloid`, `Ledger`, `Executive` (any
97
+ case). A side over 14,400 pt is written to PDF with `/UserUnit` (PDF 1.6).
98
+
99
+ | Parameter | Meaning |
100
+ |---|---|
101
+ | `width` | The page's width, a number in the document's unit, a length such as `"210mm"` or a paper size's side. |
102
+ | `height` | The page's height, as `width`. |
103
+ | `size` | A paper size (`"A4"`, `"Letter"`, `"us"`, `"a4-landscape"`, ...), two lengths (`"8.5in x 11in"`; numbers in the document's unit) or a pair; used without `width` and `height`. |
104
+ | `landscape` | Put the long side across. |
105
+ | `copy` | A page of any document whose content, size and view the new page takes. |
106
+
107
+ ### extend
108
+
109
+ ```python
110
+ document.extend(other, *, pages=None)
111
+ ```
112
+
113
+ Add copies of `other`'s pages at the end, with their bookmarks; links to pages not
114
+ copied are dropped. Pages read from PDF stay read from their file (PDF output copies
115
+ them as the file has them).
116
+
117
+ | Parameter | Meaning |
118
+ |---|---|
119
+ | `other` | The document whose pages are copied (this one included). |
120
+ | `pages` | Pages or indices of `other`; `None`: all. |
121
+
122
+ ### add_bookmark
123
+
124
+ ```python
125
+ document.add_bookmark(title, page, y=None, parent=None) -> Bookmark
126
+ ```
127
+
128
+ Add an outline entry pointing at `page` and return it; the returned
129
+ [`Bookmark`](Bookmark.md) is the `parent` of entries nested under it.
130
+
131
+ | Parameter | Meaning |
132
+ |---|---|
133
+ | `title` | The entry's text. |
134
+ | `page` | The page it opens, a `Page` or an index. |
135
+ | `y` | A vertical position on the page, in the document's unit; `None`: the top. |
136
+ | `parent` | The entry it is under; `None`: a top-level entry. |
137
+
138
+ ### attach
139
+
140
+ ```python
141
+ document.attach(name, data, *, mime=None, description=None, relationship="Unspecified")
142
+ ```
143
+
144
+ Embed a file in the document. PDF/A-2 files cannot have attachments.
145
+
146
+ | Parameter | Meaning |
147
+ |---|---|
148
+ | `name` | The file's name in the document (unique). |
149
+ | `data` | The file's content, bytes or a path. |
150
+ | `mime` | The file's MIME type; `None`: a guess from `name`. |
151
+ | `description` | A description shown with the file. |
152
+ | `relationship` | The PDF/A-3 `AFRelationship`, `"Source"`, `"Data"`, `"Alternative"`, `"Supplement"` or `"Unspecified"`. |
153
+
154
+ ### write
155
+
156
+ ```python
157
+ document.write(format, *, pages=None, limits=None, **options) -> bytes
158
+ ```
159
+
160
+ The document as a file of `format`, as `bytes`. The formats other than PDF
161
+ and TIFF hold one page (`save()` to a path with `{page}` writes one file per
162
+ page). A document without pages gets an empty A4 page.
163
+
164
+ Each output takes the options that apply to it (`vec_io.convert.WRITE_KEYS`;
165
+ docs/api.md §18.1); an option object or a dict of its fields.
166
+
167
+ EPS: EPSF-3.0, PostScript LanguageLevel 3, 7-bit clean; transparency always
168
+ flattened; fonts embedded (TrueType as Type 42, CFF as CIDFontType 0, variable
169
+ fonts as the static instance the PDF has), standard 14 fonts not embedded are the
170
+ interpreter's own. SVG: `vec_io.svg.writer`, sized in the document's unit;
171
+ SVGZ: its bytes in gzip (no name, time 0). The other SVG options apply to SVGZ.
172
+ TIFF: `vec_io.image.tiff`, every page in one file, RGB or RGBA (CMYK with
173
+ `color="cmyk"`).
174
+ Content outside a page is clipped to it in every output. Writing leaves the
175
+ document as it is, so one document can be written from several threads at once.
176
+
177
+ Raises `OptionError` for an unknown option, an option of another
178
+ output, or a value that cannot be used, and `LimitError` past a limit.
179
+
180
+ | Parameter | Meaning |
181
+ |---|---|
182
+ | `format` | `"pdf"`, `"eps"`, `"svg"`, `"svgz"`, `"png"`, `"jpeg"` (`"jpg"`), `"jxl"`, `"avif"` or `"tiff"` (`"tif"`). |
183
+ | `pages` | A `Page`, an index or a list of them; `None`: every page for PDF and TIFF, the first for the others. |
184
+ | `limits` | A `Limits` (time, pixels of a rendering); `None`: those the document was opened with. |
185
+ | `**options` | The write options ([18.1](../api.md#181-options)). |
186
+
187
+ ### save
188
+
189
+ ```python
190
+ document.save(file, *, format=None, pages=None, limits=None, **options) -> Union
191
+ ```
192
+
193
+ Write the document to a path or a binary file object, as `write()` (the option
194
+ objects: [`ImagePolicy`](ImagePolicy.md), [`Flatten`](Flatten.md),
195
+ [`View`](View.md), [`PDF`](PDF.md), [`PNG`](PNG.md),
196
+ [`JPEG`](JPEG.md), [`JXL`](JXL.md), [`AVIF`](AVIF.md),
197
+ [`TIFF`](TIFF.md)).
198
+
199
+ A path with a `{page}` field (`format()`: `"fig-{page}.png"`,
200
+ `"fig-{page:02}.pdf"`) writes one file per page of `pages` (default: every
201
+ page), each numbered from 1 by its index in the document, and returns the list of
202
+ paths written. SVG links to another page written go to its file.
203
+
204
+ | Parameter | Meaning |
205
+ |---|---|
206
+ | `file` | A path (with `{page}`: one file per page) or a binary file object. |
207
+ | `format` | As `write`; `None`: the extension of a path, else PDF. |
208
+ | `pages` | As `write`. |
209
+ | `limits` | As `write`. |
210
+ | `**options` | The write options ([18.1](../api.md#181-options)). |
211
+
212
+ ### add_font
213
+
214
+ ```python
215
+ document.add_font(data_or_path, *, family=None, weight=None, italic=None, limits=None)
216
+ ```
217
+
218
+ Register a font file for use by name in this document.
219
+
220
+ | Parameter | Meaning |
221
+ |---|---|
222
+ | `data_or_path` | The font file, bytes or a path. |
223
+ | `family` | The family name it is used by; `None`: the font's own. |
224
+ | `weight` | The weight of its faces; `None`: the font's own. |
225
+ | `italic` | Whether it is italic; `None`: the font's own. |
226
+ | `limits` | A `Limits` the font is read within. |
227
+
228
+ ## See also
229
+
230
+ - [4. Document and Page](../api.md#4-document-and-page)
231
+ - Example: [document.py](../examples.md#documents-and-pages)
232
+ - Example: [text_layout.py](../examples.md#text-in-columns)
233
+ - Example: [plot_primitives.py](../examples.md#plot-primitives)
234
+ - Example: [large_data.py](../examples.md#large-data)
235
+ - Example: [filters.py](../examples.md#filters)
236
+ - Example: [pdf_pages.py](../examples.md#pdf-pages)
237
+ - Example: [outputs.py](../examples.md#output-formats)
@@ -4,11 +4,7 @@
4
4
  from vec_io import Filter
5
5
  ```
6
6
 
7
- A filter: `primitives` run in order on the pixels of a group.
8
-
9
- `region` `(x, y, width, height)` in the group's user space is what the filter may
10
- paint; by default the bounds of what the group draws, 10 % wider and higher on each side
11
- (SVG's default region of a bounding box).
7
+ A filter: primitives run in order on the pixels of a group.
12
8
 
13
9
  Example:
14
10
 
@@ -23,6 +19,11 @@ with page.group(filter=vec_io.Filter(DropShadow(4, 4, 3, color="#0006"))):
23
19
 
24
20
  ![filter](../images/filter.svg)
25
21
 
22
+ | Parameter | Meaning |
23
+ |---|---|
24
+ | `primitives` | The primitives (`Primitive` instances), run in order. |
25
+ | `region` | What the filter may paint, `(x, y, width, height)` in the group's user space; `None`: the bounds of what the group draws, 10 % wider and higher on each side (SVG's default region of a bounding box). |
26
+
26
27
  ```python
27
28
  Filter(*primitives, region=None)
28
29
  ```
@@ -48,9 +49,12 @@ space (`None`: all of it); else `None`.
48
49
  filter.apply(surface, device_matrix)
49
50
  ```
50
51
 
51
- Run the primitives on `surface` (a rasterizer surface: premultiplied float32
52
- RGBA `pixels`, `width`, `height` and device offset `x0`, `y0`), replacing
53
- its pixels; `device_matrix` maps user space to device pixels.
52
+ Run the primitives on `surface`, replacing its pixels.
53
+
54
+ | Parameter | Meaning |
55
+ |---|---|
56
+ | `surface` | A rasterizer surface: premultiplied float32 RGBA `pixels`, `width`, `height` and device offset `x0`, `y0`. |
57
+ | `device_matrix` | Maps user space to device pixels. |
54
58
 
55
59
  ## See also
56
60
 
@@ -41,7 +41,11 @@ Flatten(*, transparency=None, fallback="raster", dpi=600, budget=256, cell=0.25)
41
41
  flatten.replace(**changes)
42
42
  ```
43
43
 
44
- A copy with `changes` (fields and their values), checked.
44
+ A copy with `changes`, checked.
45
+
46
+ | Parameter | Meaning |
47
+ |---|---|
48
+ | `changes` | Fields and their new values. |
45
49
 
46
50
  ### of
47
51
 
@@ -49,8 +53,12 @@ A copy with `changes` (fields and their values), checked.
49
53
  Flatten.of(value, what)
50
54
  ```
51
55
 
52
- `value` as this option: `None`, an instance, or a dict of its fields.
53
- Raises `OptionError`.
56
+ `value` as this option. Raises `OptionError`.
57
+
58
+ | Parameter | Meaning |
59
+ |---|---|
60
+ | `value` | `None`, an instance, or a dict of its fields. |
61
+ | `what` | The argument's name, for the error. |
54
62
 
55
63
  ## See also
56
64
 
@@ -0,0 +1,49 @@
1
+ # Font
2
+
3
+ ```python
4
+ from vec_io import Font
5
+ ```
6
+
7
+ A font description: what text is shaped with.
8
+
9
+ Descriptions are immutable and hashable; `replace()` derives another one.
10
+
11
+ | Parameter | Meaning |
12
+ |---|---|
13
+ | `family` | CSS family list (`"Inter, sans-serif"`); generic families resolve to installed fonts (`system-ui`, the default: the platform's interface font). |
14
+ | `size` | Font size, in the unit of every length shaping returns. |
15
+ | `weight` | `normal`, `bold` or `1`–`1000`. |
16
+ | `style` | `normal`, `italic`, `oblique` or `oblique 10deg`. |
17
+ | `stretch` | CSS keyword (`condensed`…) or percentage. |
18
+ | `variations` | `font-variation-settings`: `{"wght": 650}` or CSS text. |
19
+ | `optical_sizing` | `auto` (`opsz` follows the size in px) or `none`. |
20
+ | `embed` | `False` uses a standard 14 font (not embedded) when the family names one; every other font is embedded anyway. |
21
+ | `unit` | CSS px per unit of `size` (for `opsz`): a number or a unit name (`"pt"`, `"mm"`…); default px. |
22
+ | `variant` | CSS `font-variant` keywords (`"small-caps oldstyle-nums"`…): their OpenType features; small capitals are synthesized (scaled capitals) when the font has none. |
23
+ | `features` | `font-feature-settings`: `{"tnum": 1}` or CSS text (`'"tnum" 1, "ss01"'`), applied after those of `variant`. |
24
+ | `synthesis` | `font-synthesis`: `"weight style"` (default) lets a missing bold or italic face be synthesized; `"none"` (or a list without one of them) does not. |
25
+ | `lang` | The text's language, a BCP 47 tag (`"tr"`, `"sr"`, `"zh-Hant"`): the font's forms for it (OpenType language systems, `locl`); `None`: the default. |
26
+
27
+ ```python
28
+ Font(family="system-ui", size=12.0, *, weight=400, style="normal", stretch="normal",
29
+ variations=None, optical_sizing="auto", embed=True, unit=1.0, variant=None,
30
+ features=None, synthesis="weight style", lang=None)
31
+ ```
32
+
33
+ ## Members
34
+
35
+ ### replace
36
+
37
+ ```python
38
+ font.replace(**changes) -> Font
39
+ ```
40
+
41
+ A copy with some properties changed.
42
+
43
+ | Parameter | Meaning |
44
+ |---|---|
45
+ | `changes` | New values of the properties, by the constructor's names. |
46
+
47
+ ## See also
48
+
49
+ - [6.1 Shaping without a page: `vec_io.text`](../api.md#61-shaping-without-a-page-vec_iotext)