Skip to content

Conversation

@shermanelee92
Copy link

Co-authored-by: Shermane Lee [email protected]
Co-authored-by: Alex Ng [email protected]

We added the ability to verify a PDF that is signed multiple times.

Current behaviour fails due to the ByteRange check during extracting of signed data. We changed it such that only the last signature in the PDF is checked for invalid ByteRange.

The signatures function will extract all return signatures within the PDF.

@romarioliveira25
Copy link

Anyway of list certificates in certification chain order?

ndbroadbent added a commit to DocSpring/origami-docspring that referenced this pull request Mar 25, 2025
This change adds the ability to verify a PDF that is signed multiple times.
Current behavior fails due to the ByteRange check during extraction of signed data.
Now only the last signature in the PDF is checked for invalid ByteRange.

The signatures function will extract all signatures within the PDF.

Original PR: gdelugre#65
Authors: Shermane Lee, Alex Ng

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
@ndbroadbent
Copy link

Hi @shermanelee92, thank you for this PR!

I've forked the origami library and will be actively maintaining it here: https://github.com/docspring/origami-docspring

It is released on Rubygems under the name origami-docspring: https://rubygems.org/gems/origami-docspring
Only the gem was renamed - you still call require "origami" and use the Origami module.

I have just merged your PR into our fork, see: DocSpring@68d0cd5

This has been released in the latest version on Rubygems: origami-docspring version 2.3.2

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