Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix writeXrefTable to handle PDFs with multiple revisions #38

Merged
merged 2 commits into from
Jul 7, 2024
Merged

Conversation

vanbroup
Copy link
Member

@vanbroup vanbroup commented Jul 7, 2024

  • Refactor xref table writing logic to correctly parse existing entries
  • Add support for variable first object ID in xref table
  • Implement dynamic calculation of new xref entries
  • Improve error handling and reporting

This change resolves #4 with malformed xref tables when signing PDFs that have undergone multiple revisions.

- Refactor xref table writing logic to correctly parse existing entries
- Add support for variable first object ID in xref table
- Implement dynamic calculation of new xref entries
- Improve error handling and reporting

This change resolves issue #4 with malformed xref tables when signing PDFs
that have undergone multiple revisions.
@vanbroup vanbroup merged commit 08b31dc into main Jul 7, 2024
4 checks passed
@vanbroup vanbroup deleted the xref branch July 7, 2024 14:42
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.

Signing a PDF with multiple revisions results in malformed xref table
1 participant