pdf_graphics 1.0.0 copy "pdf_graphics: ^1.0.0" to clipboard
pdf_graphics: ^1.0.0 copied to clipboard

PDF content interpreter, device interface, font engine, shadings, ICC color, and text extraction — render pages to any device. Pure Dart, web-ready.

Changelog #

1.0.0 #

First stable release. Changes since 0.1.0:

  • Color: Lab, CalGray, and CalRGB CIE-based color spaces; calibrated Separation/DeviceN alternate spaces; Indexed color; and pure-Dart DeviceCMYK JPEG decoding for correct print-color rendering.
  • Fonts: a Type 1 parser; CFF improvements (seac accented-glyph composition, encoding supplements, per-FD font-matrix composition); TrueType post-table glyph-name lookup when there is no usable cmap; custom /Encoding and ZapfDingbats glyph resolution; vertical writing mode (Identity-V / WMode 1) for Type 0 fonts; and CJK CMap support for non-embedded Adobe-Japan1 and legacy GBK fonts.
  • Transparency: isolated knockout groups (/K true); optional content groups (OCG) with visibility expressions for correct layer handling.
  • Images: full-resolution /Mask stencils, and JBIG2 pattern dictionaries with halftone regions.
  • Patterns: tiling-pattern and shading-pattern fills rendered through glyph outlines for text.
  • Text: paragraph-aware reflow extraction for reading view; rotated text selection geometry.
  • Robustness: pages with invalid bounding boxes fall back to valid geometry instead of collapsing.
  • Document-AI seam: PdfDocumentContext.of(document) gathers a document's text, form fields, and annotations into a clean, serializable shape for a host-supplied language model, and PdfDocumentActionSink describes the editing actions an agent can drive. A thin adapter over the existing extraction/editing surface — the model and transport are host-provided.

0.1.0 #

Initial release.

  • Content-stream interpreter covering the full operator set: paths, clipping, transparency groups, soft masks, blend modes, optional content, type 0–4 functions.
  • Device interface: implement one class to render PDF pages anywhere.
  • Font engine: Type 1, TrueType, CFF, Type 0/CID, Type 3; embedded and standard-14 metrics.
  • Shadings 1–7 including mesh parsing; tiling and shading patterns.
  • Color: ICC profiles (gray TRC, matrix/TRC, mft1/mft2/mAB LUTs), Separation/DeviceN, Indexed, Lab.
  • Text extraction with selection geometry, search, and rotation-aware page geometry.
  • Annotation appearance rendering and form-field appearance support.
0
likes
150
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

PDF content interpreter, device interface, font engine, shadings, ICC color, and text extraction — render pages to any device. Pure Dart, web-ready.

Repository (GitHub)
View/report issues
Contributing

Topics

#pdf #rendering #fonts #text-extraction

License

Apache-2.0 (license)

Dependencies

pdf_cos, pdf_document

More

Packages that depend on pdf_graphics