---
title: "printpdf 0.13.0 Breaking Changes on crates.io | Since.dev"
description: "What each printpdf release removed, renamed or changed: 548 breaking changes in 4 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/printpdf
last_updated: 2026-12-04
---

# printpdf breaking changes

printpdf 0.13.0 (November 25, 2026) is its newest release with breaking changes, 112 of them. The first: Removed printpdf::FormXObject::bytes. Every breaking API change we have recorded in printpdf on crates.io: 548 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.13.1`, released December 3, 2026. [Source repository](https://github.com/fschutt/printpdf)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.8.0](#v-0-8-0) to [0.13.0](#v-0-13-0): 245 breaking changes in 3 versions.

## printpdf 0.13.0 breaking changes

printpdf 0.13.0, released November 25, 2026: 112 breaking changes.

- **Removed** `printpdf::FormXObject::bytes`  

printpdf::FormXObject::bytes was removed in printpdf 0.13.0 [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Removed** `printpdf::GeneratePdfOptions::font_embedding`  

from_html never read this field because fonts are always embedded. Remove it from code; JSON that still contains it is accepted and ignored. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Removed** `printpdf::GeneratePdfOptions::image_optimization`  

Image recompression is now set with PdfSaveOptions::image_optimization. JSON that still contains the field is accepted and ignored. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Removed** `printpdf::render_to_svg`  

Use PdfPage::to_svg, PdfPage::to_svg_async or PdfDocument::page_to_svg instead. PdfToSvgOptions stays. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Removed** `printpdf::render_to_svg_async`  

Use PdfPage::to_svg_async or PdfDocument::page_to_svg instead. PdfToSvgOptions stays. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Removed** `printpdf::xobject::FormXObject::bytes`  

printpdf::xobject::FormXObject::bytes was removed in printpdf 0.13.0 [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Behavior changed** `Mm`  

Mm values that are NaN now compare equal to each other, which changes the result of == for them. [github.com](https://github.com/fschutt/printpdf/blob/v0.13.0/CHANGELOG.md)
- **Behavior changed** `Pt`  

Pt values that are NaN now compare equal to each other, which changes the result of == for them. [github.com](https://github.com/fschutt/printpdf/blob/v0.13.0/CHANGELOG.md)
- **Behavior changed** `Px`  

Adding or subtracting Px values now saturates at the limits rather than wrapping or overflowing. [github.com](https://github.com/fschutt/printpdf/blob/v0.13.0/CHANGELOG.md)
- **Behavior changed** `to_svg`  

Nested cm operators now compose, so SVG output for PDFs with nested transforms changes. [github.com](https://github.com/fschutt/printpdf/blob/v0.13.0/CHANGELOG.md)
- **Behavior changed** `XObject.External`  

Forms that a PDF contains now arrive as XObject::Form. Code that matched on XObject::External for them must handle XObject::Form. [github.com](https://github.com/fschutt/printpdf/blob/v0.13.0/CHANGELOG.md)
- **Default changed** `PdfConformance.must_have_icc_profile`  

PDF/X-1a:2001 files are now written with an output intent and are larger by the FOGRA39 profile. [github.com](https://github.com/fschutt/printpdf/blob/v0.13.0/CHANGELOG.md)
- **Default changed** `PdfConformance.must_have_xmp_metadata`  

Saving a PDF/A variant now writes XMP metadata, which changes the saved output. [github.com](https://github.com/fschutt/printpdf/blob/v0.13.0/CHANGELOG.md)
- **Signature changed** `FormXObject`  

FormXObject now has ops, bbox and its own PdfResources in place of bytes, so code that builds or reads it must change and saved JSON changes. [github.com](https://github.com/fschutt/printpdf/blob/v0.13.0/CHANGELOG.md)
- **Signature changed** `printpdf::annotation::Destination::Xyz`  

Was Xyz {page: usize, left: Option\<f32>, top: Option\<f32>, zoom: Option\<f32>}; now Xyz {/// Page to show, starting at 1. A page that does not exist is written as \`null\`. page: usize, /// Horizontal position in points. left: Option\<f32>... [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::deserialize::FontTextDecodeKind::Cid`  

Was Cid {to_unicode: Option\<Arc\<ToUnicodeCMap>>, encoding_cmap: Option\<Arc\<crate::cmap::CidCMap>>, cid_to_gid: Option\<Arc\<BTreeMap\<u16, u16>>>}; now Cid {/// ToUnicode CMap, keyed by code. to_unicode: Option\<Arc\<ToUnicodeCMap>>, /// The... [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::deserialize::FontTextDecodeKind::Simple`  

Was Simple {to_unicode: Option\<Arc\<ToUnicodeCMap>>}; now Simple {/// ToUnicode CMap of the font, if it has one. to_unicode: Option\<Arc\<ToUnicodeCMap>>}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::deserialize::PathOperation::CurveTo`  

Was CurveTo {control1: Point, control2: Point, endpoint: Point}; now CurveTo {/// First control point. control1: Point, /// Second control point. control2: Point, /// End point of the curve. endpoint: Point}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Destination::Xyz`  

Was Xyz {page: usize, left: Option\<f32>, top: Option\<f32>, zoom: Option\<f32>}; now Xyz {/// Page to show, starting at 1. A page that does not exist is written as \`null\`. page: usize, /// Horizontal position in points. left: Option\<f32>... [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::DictItem::Dict`  

Was Dict {map: BTreeMap\<String, DictItem>}; now Dict {/// The entries, keyed by name without the slash. map: BTreeMap\<String, DictItem>}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::DictItem::Ref`  

Was Ref {obj: u32, gen: u16}; now Ref {/// Object number. obj: u32, /// Generation number. gen: u16}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::DictItem::Stream`  

Was Stream {stream: ExternalStream}; now Stream {/// The stream. stream: ExternalStream}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::DictItem::String`  

Was String {data: Vec\<u8>, literal: bool}; now String {/// The bytes of the string. data: Vec\<u8>, /// True for the literal form, false for hexadecimal. literal: bool}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::FontTextDecodeKind::Cid`  

Was Cid {to_unicode: Option\<Arc\<ToUnicodeCMap>>, encoding_cmap: Option\<Arc\<crate::cmap::CidCMap>>, cid_to_gid: Option\<Arc\<BTreeMap\<u16, u16>>>}; now Cid {/// ToUnicode CMap, keyed by code. to_unicode: Option\<Arc\<ToUnicodeCMap>>, /// The... [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::FontTextDecodeKind::Simple`  

Was Simple {to_unicode: Option\<Arc\<ToUnicodeCMap>>}; now Simple {/// ToUnicode CMap of the font, if it has one. to_unicode: Option\<Arc\<ToUnicodeCMap>>}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::FormXObject::resources`  

Was resources: Option\<BTreeMap\<String, DictItem>>; now resources: Option\<PdfResources>. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::BeginLayer`  

Was BeginLayer {layer_id: LayerInternalId}; now BeginLayer {/// A layer registered with \[\`PdfDocument::add_layer\`\](crate::PdfDocument::add_layer). layer_id: LayerInternalId}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::BeginMarkedContent`  

Was BeginMarkedContent {tag: String}; now BeginMarkedContent {/// The tag naming the kind of content. tag: String}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::BeginMarkedContentWithProperties`  

Was BeginMarkedContentWithProperties {tag: String, properties: DictItem}; now BeginMarkedContentWithProperties {/// The tag naming the kind of content. tag: String, /// The property dictionary. properties: DictItem}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::BeginOptionalContent`  

Was BeginOptionalContent {layer_id: LayerInternalId}; now BeginOptionalContent {/// The layer the content belongs to. layer_id: LayerInternalId}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::DefineMarkedContentPoint`  

Was DefineMarkedContentPoint {tag: String, properties: Vec\<DictItem>}; now DefineMarkedContentPoint {/// The tag naming the point. tag: String, /// The properties of the point. properties: Vec\<DictItem>}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::DrawLine`  

Was DrawLine {line: Line}; now DrawLine {/// The line. line: Line}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::DrawPolygon`  

Was DrawPolygon {polygon: Polygon}; now DrawPolygon {/// The polygon. polygon: Polygon}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::DrawRectangle`  

Was DrawRectangle {rectangle: Rect}; now DrawRectangle {/// The rectangle; its \`mode\` and \`winding_order\` decide how it is painted. rectangle: Rect}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::LinkAnnotation`  

Was LinkAnnotation {link: LinkAnnotation}; now LinkAnnotation {/// The area and what happens on a click. link: LinkAnnotation}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::LoadGraphicsState`  

Was LoadGraphicsState {gs: ExtendedGraphicsStateId}; now LoadGraphicsState {/// A state registered with /// \[\`PdfDocument::add_graphics_state\`\](crate::PdfDocument::add_graphics_state). gs: ExtendedGraphicsStateId}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::Marker`  

Was Marker {id: String}; now Marker {/// Tag of the marked point. id: String}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::MoveTextCursorAndSetLeading`  

Was MoveTextCursorAndSetLeading {tx: f32, ty: f32}; now MoveTextCursorAndSetLeading {/// Horizontal move, in text space units. tx: f32, /// Vertical move, in text space units. ty: f32}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::MoveToNextLineShowText`  

Was MoveToNextLineShowText {text: String}; now MoveToNextLineShowText {/// The text, encoded for the current font. text: String}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::PaintShading`  

Was PaintShading {id: ShadingId}; now PaintShading {/// A shading registered with /// \[\`PdfDocument::add_shading\`\](crate::PdfDocument::add_shading). id: ShadingId}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::SetCharacterSpacing`  

Was SetCharacterSpacing {multiplier: f32}; now SetCharacterSpacing {/// The extra space, written as the plain number (text space units). multiplier: f32}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::SetColorSpaceFill`  

Was SetColorSpaceFill {id: String}; now SetColorSpaceFill {/// Resource name of the color space. id: String}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::SetColorSpaceStroke`  

Was SetColorSpaceStroke {id: String}; now SetColorSpaceStroke {/// Resource name of the color space. id: String}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::SetFillColor`  

Was SetFillColor {col: Color}; now SetFillColor {/// The color; components are in the range 0.0 to 1.0. col: Color}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::SetFont`  

Was SetFont {font: PdfFontHandle, size: Pt}; now SetFont {/// The font to use. font: PdfFontHandle, /// The font size. size: Pt}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::SetHorizontalScaling`  

Was SetHorizontalScaling {percent: f32}; now SetHorizontalScaling {/// The scale in percent. percent: f32}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::SetLineCapStyle`  

Was SetLineCapStyle {cap: LineCapStyle}; now SetLineCapStyle {/// The cap style. cap: LineCapStyle}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::SetLineDashPattern`  

Was SetLineDashPattern {dash: LineDashPattern}; now SetLineDashPattern {/// Dash and gap lengths and the start offset. dash: LineDashPattern}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::SetLineHeight`  

Was SetLineHeight {lh: Pt}; now SetLineHeight {/// Distance between two baselines. lh: Pt}. [crates.io](https://crates.io/crates/printpdf/0.13.0)
- **Signature changed** `printpdf::Op::SetLineJoinStyle`  

Was SetLineJoinStyle {join: LineJoinStyle}; now SetLineJoinStyle {/// The join style. join: LineJoinStyle}. [crates.io](https://crates.io/crates/printpdf/0.13.0)

And 62 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## printpdf 0.11.0 breaking changes

printpdf 0.11.0, released July 14, 2026: 29 breaking changes.

- **Removed** `printpdf::graphics::LineDashPattern::as_array`  

printpdf::graphics::LineDashPattern::as_array was removed in printpdf 0.11.0 [crates.io](https://crates.io/crates/printpdf/0.11.0)
- **Removed** `printpdf::graphics::LineDashPattern::dash_1`  

printpdf::graphics::LineDashPattern::dash_1 was removed in printpdf 0.11.0 [crates.io](https://crates.io/crates/printpdf/0.11.0)
- **Removed** `printpdf::graphics::LineDashPattern::dash_2`  

printpdf::graphics::LineDashPattern::dash_2 was removed in printpdf 0.11.0 [crates.io](https://crates.io/crates/printpdf/0.11.0)
- **Removed** `printpdf::graphics::LineDashPattern::dash_3`  

printpdf::graphics::LineDashPattern::dash_3 was removed in printpdf 0.11.0 [crates.io](https://crates.io/crates/printpdf/0.11.0)
- **Removed** `printpdf::graphics::LineDashPattern::from_array`  

printpdf::graphics::LineDashPattern::from_array was removed in printpdf 0.11.0 [crates.io](https://crates.io/crates/printpdf/0.11.0)
- **Removed** `printpdf::graphics::LineDashPattern::gap_1`  

printpdf::graphics::LineDashPattern::gap_1 was removed in printpdf 0.11.0 [crates.io](https://crates.io/crates/printpdf/0.11.0)
- **Removed** `printpdf::graphics::LineDashPattern::gap_2`  

printpdf::graphics::LineDashPattern::gap_2 was removed in printpdf 0.11.0 [crates.io](https://crates.io/crates/printpdf/0.11.0)
- **Removed** `printpdf::graphics::LineDashPattern::gap_3`  

printpdf::graphics::LineDashPattern::gap_3 was removed in printpdf 0.11.0 [crates.io](https://crates.io/crates/printpdf/0.11.0)
- **Removed** `printpdf::LineDashPattern::as_array`  

printpdf::LineDashPattern::as_array was removed in printpdf 0.11.0 [crates.io](https://crates.io/crates/printpdf/0.11.0)
- **Removed** `printpdf::LineDashPattern::dash_1`  

printpdf::LineDashPattern::dash_1 was removed in printpdf 0.11.0 [crates.io](https://crates.io/crates/printpdf/0.11.0)

And 19 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## printpdf 0.9.0 breaking changes

printpdf 0.9.0, released January 29, 2026: 104 breaking changes.

- **Removed** `printpdf::clean_html_for_rendering`  

printpdf::clean_html_for_rendering was removed in printpdf 0.9.0 [crates.io](https://crates.io/crates/printpdf/0.9.0)
- **Removed** `printpdf::ComponentParseError`  

printpdf::ComponentParseError was removed in printpdf 0.9.0 [crates.io](https://crates.io/crates/printpdf/0.9.0)
- **Removed** `printpdf::components::ImageInfo`  

printpdf::components::ImageInfo was removed in printpdf 0.9.0 [crates.io](https://crates.io/crates/printpdf/0.9.0)
- **Removed** `printpdf::components::ListType`  

printpdf::components::ListType was removed in printpdf 0.9.0 [crates.io](https://crates.io/crates/printpdf/0.9.0)
- **Removed** `printpdf::components::TextRenderer`  

printpdf::components::TextRenderer was removed in printpdf 0.9.0 [crates.io](https://crates.io/crates/printpdf/0.9.0)
- **Removed** `printpdf::CssApiWrapper`  

printpdf::CssApiWrapper was removed in printpdf 0.9.0 [crates.io](https://crates.io/crates/printpdf/0.9.0)
- **Removed** `printpdf::deserialize::PageState::current_layer`  

printpdf::deserialize::PageState::current_layer was removed in printpdf 0.9.0 [crates.io](https://crates.io/crates/printpdf/0.9.0)
- **Removed** `printpdf::DynamicXmlComponent`  

printpdf::DynamicXmlComponent was removed in printpdf 0.9.0 [crates.io](https://crates.io/crates/printpdf/0.9.0)
- **Removed** `printpdf::font::GlyphOutline`  

printpdf::font::GlyphOutline was removed in printpdf 0.9.0 [crates.io](https://crates.io/crates/printpdf/0.9.0)
- **Removed** `printpdf::font::GlyphOutlineOperation::ClosePath`  

printpdf::font::GlyphOutlineOperation::ClosePath was removed in printpdf 0.9.0 [crates.io](https://crates.io/crates/printpdf/0.9.0)

And 94 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## printpdf 0.8.0 breaking changes

printpdf 0.8.0, released March 18, 2025: 303 breaking changes.

- **Removed** `printpdf::Actions::s`  

printpdf::Actions::s was removed in printpdf 0.8.0 [crates.io](https://crates.io/crates/printpdf/0.8.0)
- **Removed** `printpdf::calculate_points_for_circle`  

printpdf::calculate_points_for_circle was removed in printpdf 0.8.0 [crates.io](https://crates.io/crates/printpdf/0.8.0)
- **Removed** `printpdf::calculate_points_for_rect`  

printpdf::calculate_points_for_rect was removed in printpdf 0.8.0 [crates.io](https://crates.io/crates/printpdf/0.8.0)
- **Removed** `printpdf::color::PdfColor::FillColor`  

printpdf::color::PdfColor::FillColor was removed in printpdf 0.8.0 [crates.io](https://crates.io/crates/printpdf/0.8.0)
- **Removed** `printpdf::color::PdfColor::OutlineColor`  

printpdf::color::PdfColor::OutlineColor was removed in printpdf 0.8.0 [crates.io](https://crates.io/crates/printpdf/0.8.0)
- **Removed** `printpdf::ColorArray::CMYK`  

printpdf::ColorArray::CMYK was removed in printpdf 0.8.0 [crates.io](https://crates.io/crates/printpdf/0.8.0)
- **Removed** `printpdf::ColorArray::RGB`  

printpdf::ColorArray::RGB was removed in printpdf 0.8.0 [crates.io](https://crates.io/crates/printpdf/0.8.0)
- **Removed** `printpdf::ctm`  

printpdf::ctm was removed in printpdf 0.8.0 [crates.io](https://crates.io/crates/printpdf/0.8.0)
- **Removed** `printpdf::DirectFontRef`  

printpdf::DirectFontRef was removed in printpdf 0.8.0 [crates.io](https://crates.io/crates/printpdf/0.8.0)
- **Removed** `printpdf::document_info`  

printpdf::document_info was removed in printpdf 0.8.0 [crates.io](https://crates.io/crates/printpdf/0.8.0)

And 293 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
