[ 
https://issues.apache.org/jira/browse/PDFBOX-5493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17581114#comment-17581114
 ] 

Tilman Hausherr commented on PDFBOX-5493:
-----------------------------------------

Yes saving it classically should produce a non hybrid file but that's of course 
not a good signing process.

{code}
hasHybridXRef = doc.getDocument().getTrailer().getLong(COSName.XREF_STM) != -1;
{code}


> Signature byte range is Invalid after singing
> ---------------------------------------------
>
>                 Key: PDFBOX-5493
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5493
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Signing
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Dmitry
>            Priority: Blocker
>         Attachments: doc.pdf, doc_signed.pdf
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> After signing pdf by PDFBOX Adobe reader tells me "{color:#ff0000}The 
> signature byre range is invalid{color}".
> I will attach original and signed document.
> For signing i used example code. 
> Initial pdf created by MS Word 2007 (2016 also bad) (save as PDF). 
> Other pdfs works fine.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to