Skip to content

Bump mupdf from 0.7.0 to 0.8.0 in /ext/parsekit#39

Merged
cpetersen merged 4 commits into
mainfrom
dependabot/cargo/ext/parsekit/mupdf-0.8.0
Jun 23, 2026
Merged

Bump mupdf from 0.7.0 to 0.8.0 in /ext/parsekit#39
cpetersen merged 4 commits into
mainfrom
dependabot/cargo/ext/parsekit/mupdf-0.8.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 22, 2026

Copy link
Copy Markdown
Contributor

Bumps mupdf from 0.7.0 to 0.8.0.

Release notes

Sourced from mupdf's releases.

v0.8.0

What's Changed

Full Changelog: messense/mupdf-rs@v0.7.0...v0.8.0

Commits
  • deaacc8 Add array_iter / dict_iter to PdfObject (#246)
  • 3ee6802 Fix UB in PdfObject as_string, as_name, as_bytes (#245)
  • a688f37 Fix several FFI correctness and soundness bugs (#244)
  • e00fc1f Polish readme
  • c1beaca Expose (more) accessors to annotation quads (#243)
  • e414be9 Add binding for pdf_annot_obj (allows PdfAnnotation -> PdfObject conversion) ...
  • 4791dff Improve unsafe FFI hygiene (#240)
  • 3f36a6b Use zerocopy for geometry FFI conversions (#239)
  • 1b7977d Fix Android system-fonts dependency (#238)
  • 88205d1 feat(pdf): add optional content APIs
  • 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)

@dependabot @github

dependabot Bot commented on behalf of github Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies, rust. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

dependabot Bot and others added 2 commits June 22, 2026 23:24
Bumps [mupdf](https://github.com/messense/mupdf-rs) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/messense/mupdf-rs/releases)
- [Commits](messense/mupdf-rs@v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: mupdf
  dependency-version: 0.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
MuPDF 0.8.0 upgrades the underlying C library to 1.27.2 which is stricter
about xref byte offset validation. The hand-crafted test PDFs had hardcoded
xref offsets that were off by 3-27 bytes (because <<~PDF heredoc strips
leading indentation, changing the actual byte positions from what was
hard-coded). MuPDF 0.7.0 silently repaired these; 0.8.0 returns empty text.

Replace the three heredoc PDFs with a generate_minimal_pdf helper that
computes xref offsets from the actual byte positions at runtime.
@cpetersen cpetersen force-pushed the dependabot/cargo/ext/parsekit/mupdf-0.8.0 branch from 5c99fdf to 65a93c2 Compare June 23, 2026 06:24
MuPDF 0.8.0 (mupdf C library 1.27.2) does not extract text from minimal
hand-crafted PDFs that declare Helvetica as a standard Type1 font without
an embedded encoding resource. This was working in 0.7.0 which was more
permissive with such 'naked' fonts.

Replace the three failing tests with the sample.pdf fixture which is a
proper PDF and works correctly with all mupdf versions. Update the expected
text to match sample.pdf's actual content.
@cpetersen cpetersen merged commit 2101f0c into main Jun 23, 2026
2 checks passed
@cpetersen cpetersen deleted the dependabot/cargo/ext/parsekit/mupdf-0.8.0 branch June 23, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant