printpdf breaking changes
Updated December 4, 2026
On this page
Latest version 0.13.1, released December 3, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
printpdf 0.13.0 breaking changes
- Removed
printpdf::FormXObject::bytes
printpdf::FormXObject::bytes was removed in printpdf 0.13.0 crates.io - 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 - 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 - Removed
printpdf::render_to_svg
Use PdfPage::to_svg, PdfPage::to_svg_async or PdfDocument::page_to_svg instead. PdfToSvgOptions stays. crates.io - Removed
printpdf::render_to_svg_async
Use PdfPage::to_svg_async or PdfDocument::page_to_svg instead. PdfToSvgOptions stays. crates.io - Removed
printpdf::xobject::FormXObject::bytes
printpdf::xobject::FormXObject::bytes was removed in printpdf 0.13.0 crates.io - Behavior changed
Mm
Mm values that are NaN now compare equal to each other, which changes the result of == for them. github.com - Behavior changed
Pt
Pt values that are NaN now compare equal to each other, which changes the result of == for them. github.com - Behavior changed
Px
Adding or subtracting Px values now saturates at the limits rather than wrapping or overflowing. github.com - Behavior changed
to_svg
Nested cm operators now compose, so SVG output for PDFs with nested transforms changes. github.com - 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 - 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 - Default changed
PdfConformance.must_have_xmp_metadata
Saving a PDF/A variant now writes XMP metadata, which changes the saved output. github.com - 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 - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
printpdf::DictItem::Ref
Was Ref {obj: u32, gen: u16}; now Ref {/// Object number. obj: u32, /// Generation number. gen: u16}. crates.io - Signature changed
printpdf::DictItem::Stream
Was Stream {stream: ExternalStream}; now Stream {/// The stream. stream: ExternalStream}. crates.io - 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 - 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 - 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 - Signature changed
printpdf::FormXObject::resources
Was resources: Option<BTreeMap<String, DictItem>>; now resources: Option<PdfResources>. crates.io - 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 - Signature changed
printpdf::Op::BeginMarkedContent
Was BeginMarkedContent {tag: String}; now BeginMarkedContent {/// The tag naming the kind of content. tag: String}. crates.io - 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 - Signature changed
printpdf::Op::BeginOptionalContent
Was BeginOptionalContent {layer_id: LayerInternalId}; now BeginOptionalContent {/// The layer the content belongs to. layer_id: LayerInternalId}. crates.io - 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 - Signature changed
printpdf::Op::DrawLine
Was DrawLine {line: Line}; now DrawLine {/// The line. line: Line}. crates.io - Signature changed
printpdf::Op::DrawPolygon
Was DrawPolygon {polygon: Polygon}; now DrawPolygon {/// The polygon. polygon: Polygon}. crates.io - 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 - Signature changed
printpdf::Op::LinkAnnotation
Was LinkAnnotation {link: LinkAnnotation}; now LinkAnnotation {/// The area and what happens on a click. link: LinkAnnotation}. crates.io - 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 - Signature changed
printpdf::Op::Marker
Was Marker {id: String}; now Marker {/// Tag of the marked point. id: String}. crates.io - 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 - Signature changed
printpdf::Op::MoveToNextLineShowText
Was MoveToNextLineShowText {text: String}; now MoveToNextLineShowText {/// The text, encoded for the current font. text: String}. crates.io - 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 - 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 - Signature changed
printpdf::Op::SetColorSpaceFill
Was SetColorSpaceFill {id: String}; now SetColorSpaceFill {/// Resource name of the color space. id: String}. crates.io - Signature changed
printpdf::Op::SetColorSpaceStroke
Was SetColorSpaceStroke {id: String}; now SetColorSpaceStroke {/// Resource name of the color space. id: String}. crates.io - 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 - 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 - Signature changed
printpdf::Op::SetHorizontalScaling
Was SetHorizontalScaling {percent: f32}; now SetHorizontalScaling {/// The scale in percent. percent: f32}. crates.io - Signature changed
printpdf::Op::SetLineCapStyle
Was SetLineCapStyle {cap: LineCapStyle}; now SetLineCapStyle {/// The cap style. cap: LineCapStyle}. crates.io - Signature changed
printpdf::Op::SetLineDashPattern
Was SetLineDashPattern {dash: LineDashPattern}; now SetLineDashPattern {/// Dash and gap lengths and the start offset. dash: LineDashPattern}. crates.io - Signature changed
printpdf::Op::SetLineHeight
Was SetLineHeight {lh: Pt}; now SetLineHeight {/// Distance between two baselines. lh: Pt}. crates.io - Signature changed
printpdf::Op::SetLineJoinStyle
Was SetLineJoinStyle {join: LineJoinStyle}; now SetLineJoinStyle {/// The join style. join: LineJoinStyle}. crates.io
And 62 more in this version. Sign up to see every change
printpdf 0.11.0 breaking changes
- Removed
printpdf::graphics::LineDashPattern::as_array
printpdf::graphics::LineDashPattern::as_array was removed in printpdf 0.11.0 crates.io - Removed
printpdf::graphics::LineDashPattern::dash_1
printpdf::graphics::LineDashPattern::dash_1 was removed in printpdf 0.11.0 crates.io - Removed
printpdf::graphics::LineDashPattern::dash_2
printpdf::graphics::LineDashPattern::dash_2 was removed in printpdf 0.11.0 crates.io - Removed
printpdf::graphics::LineDashPattern::dash_3
printpdf::graphics::LineDashPattern::dash_3 was removed in printpdf 0.11.0 crates.io - Removed
printpdf::graphics::LineDashPattern::from_array
printpdf::graphics::LineDashPattern::from_array was removed in printpdf 0.11.0 crates.io - Removed
printpdf::graphics::LineDashPattern::gap_1
printpdf::graphics::LineDashPattern::gap_1 was removed in printpdf 0.11.0 crates.io - Removed
printpdf::graphics::LineDashPattern::gap_2
printpdf::graphics::LineDashPattern::gap_2 was removed in printpdf 0.11.0 crates.io - Removed
printpdf::graphics::LineDashPattern::gap_3
printpdf::graphics::LineDashPattern::gap_3 was removed in printpdf 0.11.0 crates.io - Removed
printpdf::LineDashPattern::as_array
printpdf::LineDashPattern::as_array was removed in printpdf 0.11.0 crates.io - Removed
printpdf::LineDashPattern::dash_1
printpdf::LineDashPattern::dash_1 was removed in printpdf 0.11.0 crates.io
And 19 more in this version. Sign up to see every change
printpdf 0.9.0 breaking changes
- Removed
printpdf::clean_html_for_rendering
printpdf::clean_html_for_rendering was removed in printpdf 0.9.0 crates.io - Removed
printpdf::ComponentParseError
printpdf::ComponentParseError was removed in printpdf 0.9.0 crates.io - Removed
printpdf::components::ImageInfo
printpdf::components::ImageInfo was removed in printpdf 0.9.0 crates.io - Removed
printpdf::components::ListType
printpdf::components::ListType was removed in printpdf 0.9.0 crates.io - Removed
printpdf::components::TextRenderer
printpdf::components::TextRenderer was removed in printpdf 0.9.0 crates.io - Removed
printpdf::CssApiWrapper
printpdf::CssApiWrapper was removed in printpdf 0.9.0 crates.io - Removed
printpdf::deserialize::PageState::current_layer
printpdf::deserialize::PageState::current_layer was removed in printpdf 0.9.0 crates.io - Removed
printpdf::DynamicXmlComponent
printpdf::DynamicXmlComponent was removed in printpdf 0.9.0 crates.io - Removed
printpdf::font::GlyphOutline
printpdf::font::GlyphOutline was removed in printpdf 0.9.0 crates.io - Removed
printpdf::font::GlyphOutlineOperation::ClosePath
printpdf::font::GlyphOutlineOperation::ClosePath was removed in printpdf 0.9.0 crates.io
And 94 more in this version. Sign up to see every change
printpdf 0.8.0 breaking changes
- Removed
printpdf::Actions::s
printpdf::Actions::s was removed in printpdf 0.8.0 crates.io - Removed
printpdf::calculate_points_for_circle
printpdf::calculate_points_for_circle was removed in printpdf 0.8.0 crates.io - Removed
printpdf::calculate_points_for_rect
printpdf::calculate_points_for_rect was removed in printpdf 0.8.0 crates.io - Removed
printpdf::color::PdfColor::FillColor
printpdf::color::PdfColor::FillColor was removed in printpdf 0.8.0 crates.io - Removed
printpdf::color::PdfColor::OutlineColor
printpdf::color::PdfColor::OutlineColor was removed in printpdf 0.8.0 crates.io - Removed
printpdf::ColorArray::CMYK
printpdf::ColorArray::CMYK was removed in printpdf 0.8.0 crates.io - Removed
printpdf::ColorArray::RGB
printpdf::ColorArray::RGB was removed in printpdf 0.8.0 crates.io - Removed
printpdf::ctm
printpdf::ctm was removed in printpdf 0.8.0 crates.io - Removed
printpdf::DirectFontRef
printpdf::DirectFontRef was removed in printpdf 0.8.0 crates.io - Removed
printpdf::document_info
printpdf::document_info was removed in printpdf 0.8.0 crates.io
And 293 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.