You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2022/08/17 17:50:00 UTC

[jira] [Commented] (PDFBOX-5493) Signature byte range is Invalid after singing

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

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

I can reproduce it. Your unsigned file is weird, its xref table is unusual. The file has an xref table but the signed file has an XRef stream because of {{hasHybridXRef}} in {{COSWriter.doWriteXRefInc()}}. Forcing an xref table makes it work.

> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org