Skip to content

chore(deps): update Rust crate printpdf to v0.13.1 - #262

Merged
mergify[bot] merged 1 commit into
mainfrom
renovate/printpdf-0.x-lockfile
Dec 4, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
renovate/printpdf-0.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
printpdf dependencies patch 0.13.0 → 0.13.1

Release Notes

fschutt/printpdf (printpdf)

v0.13.1

Compare Source

0.13.0 is yanked. It linked proprietary and GPL font files (#​308, #​309).

Added
  • PdfDocument::replace_builtin_font embeds your own font for text in a standard font. PDF/A and PDF/X require this.
  • The feature include_base_fonts is off by default. It embeds the Foxit fonts of PDFium (BSD-3-Clause) for standard fonts in PDF/A and PDF/X documents. scripts/gen_base14_fonts.py generates them and the standard-font metrics from the files pdf.js ships.
Changed
  • Breaking: printpdf contains no font files for the 14 standard fonts. They were proprietary or GPL (#​308, #​309). It keeps their metrics.
  • The standard-font metrics are measured from the Foxit fonts of PDFium (BSD-3-Clause). printpdf does not read Adobe's AFM files. The crate license is MIT AND BSD-3-Clause.
  • The widths equal Adobe's except for 16 of 3,007 codes. third_party/README.md lists them.
  • BuiltinFont::get_parsed_font returns a face built from these metrics. It has the advance widths of the 256 one-byte codes and no outlines. It measures text like the standard font but cannot be embedded or drawn.
  • Breaking: PDF/A and PDF/X files embed standard fonts only with the feature include_base_fonts. Without it, a standard font stays unembedded unless PdfDocument::replace_builtin_font replaces it. The save warns.
  • HTML text in Helvetica, Times, Courier, Symbol, ZapfDingbats and their CSS names (Arial, Times New Roman, Courier New) uses the standard-font metrics. The text is written with the standard font, which is not embedded.
  • A font in XmlRenderOptions::fonts with the same name still wins. It is embedded.
  • TextItem::GlyphIds in a standard font are the one-byte codes of get_parsed_font. They were two-byte codes.
  • optimize_text also drops a redundant /ActualText on text in a Latin standard font.
  • The web demo and tests/wasm_api_demo_boot.rs register only Roboto and Noto Sans JP.
  • Breaking: printpdf contains no CMYK profile. The one it had was under Adobe's Color Profile Bundling Agreement.
  • PDF/X files and CMYK-only PDF/A files need the new PdfDocumentInfo::output_intent (OutputIntent). Without it, a PDF/X file has no output intent and saving reports an error.
Removed
  • Breaking: BuiltinFont::get_subset_font and the defaultfonts/ directory.
  • The proprietary and GPL font files in examples/assets/fonts, including PDFASymbol.woff2, and scripts/add_space_glyphs.py. Tests use Roboto or the metrics faces instead.
  • The CMYK profile src/res/CoatedFOGRA39.icc and its license text.
Fixed
  • The glyph names onesuperior, twosuperior and threesuperior decode in the encodings of simple fonts. They were unknown.
  • examples/assets/fonts/OFL.txt names Noto Sans JP, the font it covers. Roboto-LICENSE.txt holds the Apache License of Roboto.
  • The subset tag of an embedded font is six uppercase letters for every font id (ISO 32000-1, 9.6.4). Fonts of an HTML layout and replaced standard fonts had an invalid tag. PDF/A-1 files lacked their /CIDSet.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@mergify

mergify Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

This pull request is merged.

@mergify
mergify Bot merged commit 31dd153 into main Dec 4, 2026
4 checks passed
@renovate
renovate Bot deleted the renovate/printpdf-0.x-lockfile branch December 4, 2026 03:27
@joaolfp joaolfp mentioned this pull request Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants