hexapdf breaking changes
Updated December 4, 2026
On this page
Latest version 1.11.2. Source repository
Its 0.43.0 release requires Ruby 3.0 or later. Ruby end of life dates.
- From 0.47.0 to 1.0.0: 3 breaking changes in 1 version.
- From 0.2.0 to 1.0.0: 126 breaking changes in 41 versions.
hexapdf 1.0.0 breaking changes
- Behavior changed
HexaPDF.Type.AcroForm.Form
Text-like AcroForm field creation methods now always set a default appearance string and the quadding. Code that relied on the previous field dictionaries may see different output. github.com - Behavior changed
HexaPDF.Type.FontType1
FontType1 validation now checks that the /Encoding value is correct, so fonts that previously loaded may now be rejected. github.com - Default changed
Convenience methods for accessing resources no longer add the deprecated /ProcSet entry by default. Code that depended on /ProcSet being present in generated resources must now request it explicitly. github.com
hexapdf 0.47.0 breaking changes
- Behavior changed
HexaPDF.Task.Optimize
The optimize task no longer removes optional /Type entries that hold default values. Code that relied on those entries being stripped will see different output. github.com - Behavior changed
HexaPDF.Type.AcroForm.Form
Validating an AcroForm::Form no longer adds a /DA entry to the form. Code that depended on the validated form containing /DA must now set it itself. github.com
hexapdf 0.46.0 breaking changes
- Behavior changed
HexaPDF.DigitalSignature.CMSHandler.signing_time
CMSHandler#signing_time now takes the time from an embedded timestamp authority signature if one is available, which can change the reported signing time for existing code. github.com - Behavior changed
HexaPDF.Importer.copy
Importer.copy gained an optional ability to copy the catalog and page tree nodes; existing calls are affected only if they rely on the previous behavior. github.com - Behavior changed
HexaPDF.Layout.Box.fit
Boxes with content width or height of zero now report a successful fit, which can change results existing code checks. github.com
hexapdf 0.45.0 breaking changes
- Behavior changed
HexaPDF.Layout.Box.fit
Calling fit on a box with position :flow now sets its width and height differently; code relying on the old sizing may produce different layouts. github.com
hexapdf 0.44.0 breaking changes
- Behavior changed
The release marks a breaking refactor of the layout box implementation but does not name the affected symbols. Code that uses the document layout boxes should be checked against the changelog. github.com
hexapdf 0.43.0 breaking changes
- Removed
The minimum supported Ruby version is now 3.0. Older Ruby versions are no longer supported. github.com - Removed
HexaPDF.Dictionary.to_h
HexaPDF::Dictionary#to_h was removed. Code calling it will no longer work and must be changed. github.com - Renamed
HexaPDF.Layout.BoxFitter.fit_successful?
The method HexaPDF::Layout::BoxFitter#fit_successful? was renamed to success?. Update callers to use the new name. github.com - Behavior changed
HexaPDF.Type.AcroForm.Form
Form field creation methods now automatically create parent fields as namespace fields. Code relying on the previous field tree structure may behave differently. github.com
Older versions
36 older versions, each with its first changes. Sign up to see every change
Show 36 older versions
hexapdf 0.42.0 breaking changes
- Behavior changed
Running CLI commands with an output file that already exists now asks whether to overwrite it, so scripts that run non-interactively may stop waiting for input. github.com
hexapdf 0.41.0 breaking changes
- Behavior changed
HexaPDF.Type.AcroForm.AppearanceGenerator
The AppearanceGenerator now removes the hidden flag from widgets it processes, so widgets that were hidden may now be visible. Check any form output that relied on hidden widgets staying hidden. github.com
hexapdf 0.40.0 breaking changes
- Renamed
text_overflow
The style property 'text_overflow' is now called 'overflow'. Code using the old name must be updated to the new one. github.com
hexapdf 0.39.0 breaking changes
- Behavior changed
HexaPDF.Layout.Frame.FitResult.draw
The optional content group names generated by FitResult#draw changed to better names. Code that depends on the old group names must be updated. github.com
hexapdf 0.38.0 breaking changes
- Behavior changed
HexaPDF.Document.Layout
Style retrieval now falls back to the font of the :base style, and only uses 'Times' if that does not exist, which can change the font used. github.com - Behavior changed
HexaPDF.Document.Layout.table_box
The :cell keys that define the cell style are now merged rather than the last one being used, so cell styling may differ from before. github.com
And 2 more in this version.
hexapdf 0.37.0 breaking changes
- Behavior changed
The gem now requires Ruby 2.7 or later, so older Ruby versions are no longer supported and users on them must upgrade Ruby. github.com
hexapdf 0.36.0 breaking changes
- Behavior changed
HexaPDF.Layout.Box.fit
Box#fit hands the actual content fitting to #fit_content. Code that overrides #fit or depends on its internal fitting behavior should check it still works. github.com
hexapdf 0.35.0 breaking changes
- Renamed
align
The style property 'align' is now called 'text_align'. Update style definitions to use the new name. github.com - Renamed
HexaPDF.Layout.ListBox.item_type
The item marker type of a ListBox item is now set with #marker_type instead of #item_type. Update code that sets it. github.com
And 4 more in this version.
hexapdf 0.34.0 breaking changes
- Behavior changed
HexaPDF.Composer.draw_box
draw_box returns the last drawn box instead of its previous return value, so code that uses the return value should be checked. github.com - Behavior changed
HexaPDF.Layout.ListBox
ListBox uses its 'fill_color' style property for the item marker color, so markers may be drawn in a different color than before. github.com
hexapdf 0.33.0 breaking changes
- Renamed
HexaPDF.Content.ColorSpace.CSS_COLOR_NAMES
The internal constant was renamed; code that references the old name must use COLOR_NAMES instead. github.com - Behavior changed
The extract content permission is always activated to match PDF 2.0, so documents may allow content extraction where they did not before. github.com
And 1 more in this version.
hexapdf 0.31.0 breaking changes
- Behavior changed
HexaPDF.Composer
Composer output is produced through page styles, a breaking change for code relying on the previous page handling. Review code that customizes composer pages. github.com - Behavior changed
HexaPDF.Document.wrap
Wrapping a document now treats cross-reference and object streams specially to avoid problems with invalid PDFs. Code relying on the previous wrap behavior may see different results. github.com
And 2 more in this version.
hexapdf 0.30.0 breaking changes
- Behavior changed
HexaPDF.Type.FontSimple.perform_validation
Validation of simple fonts now fixes the /Widths array when it has an invalid number of entries, so code relying on the previous validation output may see different widths. github.com
hexapdf 0.29.0 breaking changes
- Renamed
Digital signature code was refactored and moved under the HexaPDF::DigitalSignature module, so code referring to the old locations must be updated. github.com - Renamed
HexaPDF.DigitalSignature.Signing.DefaultHandler.signature_type
The signature_type value :etsi is replaced by :pades; code passing :etsi must switch to :pades. github.com
And 2 more in this version.
hexapdf 0.28.0 breaking changes
- Removed
HexaPDF.Revision.reset_objects
The method HexaPDF::Revision#reset_objects has been removed, so code calling it will fail. github.com - Default changed
HexaPDF.Type.AcroForm.Field.each_widget
The direct_only argument of HexaPDF::Type::AcroForm::Field#each_widget now defaults to true instead of false, so code relying on the old default may behave differently. github.com
And 1 more in this version.
hexapdf 0.27.0 breaking changes
- Removed
HexaPDF.Document.Signatures.DefaultHandler.filter_name
The filter_name method was removed from DefaultHandler. Stop calling it. github.com - Removed
HexaPDF.Document.Signatures.DefaultHandler.sub_filter_name
The sub_filter_name method was removed from DefaultHandler. Stop calling it. github.com
And 4 more in this version.
hexapdf 0.26.0 breaking changes
- Behavior changed
HexaPDF.Rectangle
Invalid values given to HexaPDF::Rectangle now fall back to [0, 0, 0, 0] instead of being rejected. Code that relies on an error being raised for invalid values must be updated. github.com
hexapdf 0.24.0 breaking changes
- Removed
HexaPDF.Layout.Frame
The contour line was removed from HexaPDF::Layout::Frame. Code that uses it must be changed. github.com - Behavior changed
hexapdf info --check
The info --check command now only checks the current version of each object instead of all versions. github.com
And 3 more in this version.
hexapdf 0.23.0 breaking changes
- Behavior changed
HexaPDF.Layout.TextBox
Center and right alignment in TextBox now span the whole available width instead of a narrower area, so existing layouts may shift horizontally. github.com - Signature changed
HexaPDF.Document
The HexaPDF::Document interface for working with objects was refactored, and parts of it moved into HexaPDF::Revisions. Code that calls the moved methods must switch to the new location. github.com
hexapdf 0.22.0 breaking changes
- Behavior changed
hexapdf form
The hexapdf form command now shows a warning when working with a file containing an XFA form. Scripts parsing its output may need to account for the extra warning. github.com
hexapdf 0.21.0 breaking changes
- Behavior changed
HexaPDF.Composer
HexaPDF::Composer was refactored for more consistent style support, which is a breaking change. Code relying on the previous style behavior may need to be updated. github.com - Configuration changed
font.on_missing_glyph
The arguments passed to the font.on_missing_glyph configuration option changed to give access to the document instance. Callbacks using the old arguments must be updated. github.com
hexapdf 0.20.0 breaking changes
- Signature changed
HexaPDF.Type.Annotation.appearance
The signature of HexaPDF::Type::Annotation#appearance changed in a breaking way. Update calls to match the new signature. github.com
hexapdf 0.18.0 breaking changes
- Behavior changed
HexaPDF.Type.AcroForm.VariableTextField.parse_appearance_string
The method now returns the font color in addition to its previous results, so callers that unpack its return value may need updating. github.com - Signature changed
HexaPDF.Type.AcroForm.VariableTextField.set_default_appearance_string
The method gained the ability to specify the font color, which changes its accepted arguments. github.com
hexapdf 0.17.0 breaking changes
- Behavior changed
Check boxes in AcroForm fields are now handled differently so that multiple widgets can have different values. Code that relies on the old check box handling must be reviewed. github.com - Default changed
HexaPDF.Content.Canvas.text
If no leading has been set, Canvas#text now uses the font size as the leading instead of the previous behavior. Code that depends on the old leading must set it explicitly. github.com
hexapdf 0.15.0 breaking changes
- Behavior changed
HexaPDF.Type.FontDescriptor
Validation of font descriptors now removes an invalid /FontWeight value instead of keeping it. github.com - Signature changed
The way appearances of annotations are accessed was reworked, so existing code that uses the old appearance interface must be updated. github.com
hexapdf 0.14.0 breaking changes
- Behavior changed
HexaPDF.PDFArray.to_ary
to_ary now returns an array with preprocessed values instead of raw values, so code relying on the raw values may see different results. github.com - Behavior changed
HexaPDF.Type.AcroForm.ChoiceField.list_box_top_index=
Setting list_box_top_index on a choice field with no option items now raises an error. Set the option items first. github.com
hexapdf 0.13.0 breaking changes
- Behavior changed
The validation interfaces and internals were reworked to match each other and to report multiple validation problems. Code that relies on the previous validation behavior or interfaces may need to be updated. github.com
hexapdf 0.12.0 breaking changes
- Removed
HexaPDF.Content.Canvas.color_space_for_components
The instance method on Canvas was moved to a class method on HexaPDF::Content::ColorSpace. Calls on Canvas must be changed. github.com - Renamed
HexaPDF.Font.TrueTypeWrapper.dict
The #dict method of the TrueType font wrapper was renamed to #pdf_object. Update calls to use the new name. github.com
And 8 more in this version.
hexapdf 0.11.0 breaking changes
- Behavior changed
HexaPDF.Layout.Style
HexaPDF::Layout::Style now validates values where possible, so previously accepted invalid values may now raise errors. github.com - Behavior changed
HexaPDF.PDFArray
Arrays wrapped in HexaPDF::PDFArray now resolve references automatically, like HexaPDF::Dictionary does. The release notes warn this may break existing code. github.com
And 1 more in this version.
hexapdf 0.9.0 breaking changes
- Behavior changed
HexaPDF.Layout.Line.HeightCalculator.simulate_height
Code using the return value of simulate_height may get different numbers. github.com - Behavior changed
HexaPDF.Object.==
Code relying on == for Object instances may now get different results. github.com
And 2 more in this version.
hexapdf 0.8.0 breaking changes
- Behavior changed
HexaPDF.Document.validate
Blocks given to validate now also receive the object that failed validation. Check the block's arguments if you rely on them. github.com - Behavior changed
HexaPDF.Layout.TextLayouter.fit
Calling fit now returns a TextLayouter::Result object that includes the draw method instead of the previous return value. Update code that uses the return value. github.com
And 1 more in this version.
hexapdf 0.7.0 breaking changes
- Behavior changed
String literals in the package's Ruby source files are now frozen, so code that mutates strings it got from the package will fail. Copy such strings before changing them. github.com - Behavior changed
HexaPDF.Layout.TextLayouter.draw
draw returns the result of fit where possible, so code relying on its previous return value may behave differently. github.com
And 5 more in this version.
hexapdf 0.6.0 breaking changes
- Removed
HexaPDF.Dictionary.to_hash
HexaPDF::Dictionary#to_hash was removed. Code calling it must change. github.com - Renamed
HexaPDF.Document.Fonts.load
HexaPDF::Document::Fonts#load was renamed to HexaPDF::Document::Fonts#add for consistency. github.com
And 8 more in this version.
hexapdf 0.5.0 breaking changes
- Behavior changed
Invalid glyphs are handled by the new HexaPDF::Font::InvalidGlyph class, so code that checked for the previous handling may need to change. github.com - Behavior changed
The validation feature now changes invalid positive descent values in font descriptors into negative ones. Code that expected the original values will see different results. github.com
And 2 more in this version.
hexapdf 0.4.0 breaking changes
- Behavior changed
HexaPDF.Configuration.constantize
constantize now raises an error if the constant is not found instead of silently continuing. Code relying on the old result must handle the error. github.com - Behavior changed
HexaPDF.Font.CMap.to_unicode
When there is no mapping, to_unicode now returns nil rather than an empty string. Code checking for empty strings must check for nil. github.com
And 5 more in this version.
hexapdf 0.3.0 breaking changes
- Renamed
hexapdf extract
The hexapdf extract command is renamed to hexapdf files. Scripts calling the old command must use the new name. github.com - Behavior changed
Files that were written as hybrid-reference PDFs are now written as standard PDF 1.5 files. Output bytes and structure change for affected files. github.com
And 2 more in this version.
hexapdf 0.2.0 breaking changes
- Removed
Parts of the TrueType implementation were removed; the document does not name the affected public API. github.com - Behavior changed
Written encryption dictionaries no longer contain the /EFF key. github.com
And 2 more in this version.
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.