Skip to content

Update from 0.7 to 0.12.1 and now returns error on signing pdfs #86

Answered by MatthiasValvekens
vtgdias asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vtgdias,

This is explained in the release notes for 0.12.0.

For some further background: the file you're trying to sign is a hybrid reference file. Those were introduced as a transitional compatibility measure between PDF 1.4 and PDF 1.5 (which was a godawful idea in hindsight) and they're relatively rare these days, but some tools still routinely generate such files (looking at you, MS Word).

Prior to 0.12.0, pyHanko would actually not process these files correctly and would sometimes even accidentally corrupt them. That bug has been fixed, but there's more to it than that. The problem with hybrid files is that by design there's no single unambiguous way to parse them, which makes th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vtgdias
Comment options

Answer selected by MatthiasValvekens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants