Skip to content

Conversation

@rsimon
Copy link
Member

@rsimon rsimon commented Nov 3, 2025

In this PR

Fix to issue: https://github.com/performant-software/cove-recogito/issues/208

This PR makes PDF export more robust by:

  • Checking whether a PDF includes media encoded with filters that are unsupported by annotpdf.
  • If so, it normalizes the PDF (by loading and re-encoding the file with pdf-lib), ensuring that only the supported FlateDecode filter is used in the PDF.

Note: this PR builds on top of PR #425, which should be merged first.

@rsimon rsimon requested a review from blms November 3, 2025 07:58
@netlify
Copy link

netlify bot commented Nov 3, 2025

Deploy Preview for vico-design ready!

Name Link
🔨 Latest commit c39ff16
🔍 Latest deploy log https://app.netlify.com/projects/vico-design/deploys/690860c61463e50008ab6f56
😎 Deploy Preview https://deploy-preview-426--vico-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@rsimon rsimon changed the base branch from develop to rs/pdf-regression-troubleshooting November 3, 2025 07:59
@netlify
Copy link

netlify bot commented Nov 3, 2025

Deploy Preview for recogito-cloud-staging ready!

Name Link
🔨 Latest commit c39ff16
🔍 Latest deploy log https://app.netlify.com/projects/recogito-cloud-staging/deploys/690860c69188ea0008fc4f68
😎 Deploy Preview https://deploy-preview-426--recogito-cloud-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Collaborator

@blms blms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, good catch! Learning a lot about how PDFs work from this, most is still over my head but this looks good.

@rsimon rsimon deleted the branch rs/pdf-regression-troubleshooting November 3, 2025 18:12
@rsimon rsimon closed this Nov 3, 2025
@rsimon rsimon mentioned this pull request Nov 3, 2025
@rsimon rsimon deleted the rs/pdf-normalization branch November 3, 2025 18:21
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.

3 participants