Skip to content

Bump pikepdf from 9.0.0 to 10.17.0 - #32

Merged
sthapa merged 2 commits into
mainfrom
dependabot/pip/pikepdf-10.17.0
Nov 10, 2026
Merged

sthapa merged 2 commits into
mainfrom
dependabot/pip/pikepdf-10.17.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 9, 2026 •

Copy link
Copy Markdown

Bumps pikepdf from 9.0.0 to 10.17.0.

Release notes

Sourced from pikepdf's releases.

v10.17.0

  • Added {class}pikepdf.ObjectSet, which records the objects that a walk of a PDF's object graph has already visited. Objects in a PDF are shared and may refer back to their ancestors, so a search that only limits its depth can take exponential time on quite ordinary files. ObjectSet.add() reports whether an object is new, and tells apart direct objects and objects of different Pdf, which a set of objgen cannot. See {ref}walking-object-graphs.
  • Added {meth}pikepdf.Object.is_same_object_as, which tests whether two references lead to the same object. Neither is, == nor comparing objgen answers this reliably.
  • Added {meth}pikepdf.Pdf.content_scopes and {meth}pikepdf.Page.content_scopes, which iterate over every content stream that pages can draw, each with the resource dictionary it uses: the page itself, form XObjects, annotation appearance streams, tiling patterns, Type 3 glyph procedures and soft masks, however they are nested or shared. This is the way to find every font, image or colour space a document uses. Each {class}pikepdf.ContentScope is reported once for the document; pages= selects pages and kinds= selects what is reported.
  • Added {meth}pikepdf.Page.get_resources, which returns the resources of a page or form XObject for reading. Unlike {attr}pikepdf.Page.resources, it finds resources inherited from the page tree, does not create an empty dictionary when there are none, and returns None instead of raising when /Resources is malformed.
  • Fixed comparing two objects with == taking exponential time when the objects being compared share children, such as the same file opened twice. Each pair of objects is now compared once.
  • Fixed {meth}pikepdf.Pdf.add_pages_from hanging on a page with an action whose /Next actions are shared or form a loop.
  • Fixed {meth}pikepdf.Pdf.open_outline reading only the first item at each level of an outline whose items are direct objects. Such items are now made indirect when the outline is saved, as the PDF specification requires.
  • Reading a stream that will not decode now raises {exc}~pikepdf.exceptions.DataDecodingError with the reason, whether the stream's data was read from a file or set from memory. Previously a stream read from a file raised a {exc}~pikepdf.exceptions.PdfError that said only "read_bytes called on unfilterable stream", and the reason was available only from {meth}pikepdf.Pdf.get_warnings. DataDecodingError is a PdfError, so existing handlers are unaffected. {issue}182
  • An exception raised by a JBIG2 decoder now reaches the caller of {meth}pikepdf.PdfImage.as_pil_image, {meth}pikepdf.PdfImage.extract_to and {meth}pikepdf.PdfImage.read_bytes unchanged, with its own type, message and traceback. Previously, for an image read from a file, it was replaced by a generic DataDecodingError or PdfError. {issue}182
  • Added {exc}~pikepdf.exceptions.QpdfRuntimeError, raised for errors from qpdf that pikepdf has no more specific exception for. These were previously raised as a bare RuntimeError, which except pikepdf.PikepdfError did not catch. The new exception derives from both {exc}~pikepdf.exceptions.PikepdfError and RuntimeError, so handlers written for RuntimeError still work. {issue}240

... (truncated)

Commits
  • b8ee8f0 Bump version: v10.17.0
  • 1070a90 Split arithmetic, _ObjectList and _ObjectMapping out of object.cpp
  • 17b3b89 Name private C++ members with a trailing underscore, drop this->
  • b5143ae Use explicit_conversion() directly as a decorator in sanitize
  • 29df03c Define the content scope kinds once, in C++
  • 0534b94 Rework content_scopes() after review
  • 7c7043a Add content_scopes() to enumerate what a page can draw
  • 7ee2e44 Add Object.is_same_object_as() to test object identity
  • 66edb3c Add Page.get_resources() for reading a page's effective resources
  • 7f584ef Visit each object once when walking the object graph
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pikepdf](https://github.com/pikepdf/pikepdf) from 9.0.0 to 10.17.0.
- [Release notes](https://github.com/pikepdf/pikepdf/releases)
- [Commits](pikepdf/pikepdf@v9.0.0...v10.17.0)

---
updated-dependencies:
- dependency-name: pikepdf
  dependency-version: 10.17.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 9, 2026
@sthapa
sthapa merged commit f920f50 into main Nov 10, 2026
0 of 3 checks passed
@dependabot
dependabot Bot deleted the dependabot/pip/pikepdf-10.17.0 branch November 10, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant