Changelog¶
pikepdf releases use the semantic versioning policy.
Since 1.0 has not been released, this means breaking changes can occur at any time and the public API is not yet stable. For the moment a minor version change is known to be breaking, and a patch level change shouldn’t be breaking.
v0.3.5¶
Breaking¶
Pdf.save(...stream_data_mode=...)
has been dropped in favor of the newercompress_streams=
andstream_decode_level
parameters.
Fixes¶
- A use-after-free memory error that caused occasional segfaults and “QPDFFakeName” errors when opening from stream objects has been resolved.
v0.3.3¶
Breaking¶
- libqpdf 8.2.1 is now required
Updates¶
- Improved support for working with JPEG2000 images in PDFs
- Added progress callback for saving files,
Pdf.save(..., progress=)
- Updated pybind11 subtree
Fixes¶
del obj.AttributeName
was not implemented. The attribute interface is now consistent- Deleting named attributes now defers to the attribute dictionary for Stream objects, as get/set do
- Fixed handling of JPEG2000 images where metadata must be retrieved from the file
v0.3.2¶
Updates¶
- Added support for direct image extraction of CMYK and grayscale JPEGs, where previously only RGB (internally YUV) was supported
Array()
now creates an empty array properly- The syntax
Name.Foo in Dictionary()
, e.g.Name.XObject in page.Resources
, now works
v0.3.1¶
Breaking¶
pikepdf.open
now validates its keyword arguments properly, potentially breaking code that passed invalid arguments- libqpdf 8.1.0 is now required - libqpdf 8.1.0 API is now used for creating Unicode strings
- If a non-existent file is opened with
pikepdf.open
, aFileNotFoundError
is raised instead of a generic error - We are now temporarily vendoring a copy of pybind11 since its master branch contains unreleased and important fixes for Python 3.7.
Updates¶
- The syntax
Name.Thing
(e.g.Name.DecodeParms
) is now supported as equivalent toName('/Thing')
and is the recommended way to refer names within a PDF - New API
Pdf.remove_unneeded_resources()
which removes objects from each page’s resource dictionary that are not used in the page. This can be used to create smaller files.
Fixes¶
- Fixed an error parsing inline images that have masks
- Fixed several instances of catching C++ exceptions by value instead of by reference
v0.3.0¶
Breaking¶
- Modified
Object.write
method signature to requirefilter
anddecode_parms
as keyword arguments - Implement automatic type conversion from the PDF Null type to
None
- Removed
Object.unparse_resolved
in favor ofObject.unparse(resolved=True)
- libqpdf 8.0.2 is now required at minimum
Updates¶
- Improved IPython/Jupyter interface to directly export temporary PDFs
- Updated to qpdf 8.1.0 in wheels
- Added Python 3.7 support for Windows
- Added a number of missing options from QPDF to
Pdf.open
andPdf.save
- Added ability to delete a slice of pages
- Began using Jupyter notebooks for documentation
v0.2.2¶
- Added Python 3.7 support to build and test (not yet available for Windows, due to lack of availability on Appveyor)
- Removed setter API from
PdfImage
because it never worked anyway - Improved handling of
PdfImage
with trivial palettes
v0.2.1¶
Object.check_owner
renamed toObject.is_owned_by
Object.objgen
andObject.get_object_id
are now public functions- Major internal reorganization with
pikepdf.models
becoming the submodule that holds support code to ease access to PDF objects as opposed to wrapping QPDF.
v0.2.0¶
- Implemented automatic type conversion for
int
,bool
andDecimal
, eliminating thepikepdf.{Integer,Boolean,Real}
types. Removed a lot of associated numerical code.
Everything before v0.2.0 can be considered too old to document.