[jira] [Comment Edited] (PDFBOX-3631) Signature Interoperability Issue

2018-02-21 Thread Martin Mancuska (JIRA)

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

Martin Mancuska edited comment on PDFBOX-3631 at 2/21/18 11:44 AM:
---

yes, I know. I had quick idea to change /Linearized flag from 1 to 0 (without 
any effect of course).

According to this blog [http://bfo.com/blog/2008/07/17/linearized_pdf/] -> 
"PDFs with more than one digital signature cannot be linearized."


was (Author: mato7d5):
yes, I know. I had quick idea to change /Linearized flag from 1 to 0.

According to this blog [http://bfo.com/blog/2008/07/17/linearized_pdf/] -> 
"PDFs with more than one digital signature cannot be linearized."

> Signature Interoperability Issue
> 
>
> Key: PDFBOX-3631
> URL: https://issues.apache.org/jira/browse/PDFBOX-3631
> Project: PDFBox
>  Issue Type: Bug
>  Components: Signing
>Affects Versions: 2.0.3
> Environment: Java 1.8 Windows.
>Reporter: Marco Monacelli
>Priority: Minor
> Attachments: Microsoft_Edge_on_Windows_10_rendering_correct.png, 
> PDFBOX-3631.zip, PDFJS-4743-signature.pdf, Preview_rendering_not_correct.png, 
> acrobat_rendering_correct.png, chrome_rendering_incorrect.png, 
> firefox_incorrect_but_expected.png, libreoffice_rendering_correct.png, 
> not_working_pdf_with_signatures.pdf, 
> preview_of_Preview_rendering_correct.png, safari_using_preview_incorrect.png, 
> test_out_pdf.pdf, working_pdf_with_signatures.pdf, 
> working_pdf_with_signatures.pdf
>
>
> Some files if signed with PDFBox produce not visible signature in chrome, 
> pdfium foxit. 
> If the same file is signed on some Actobat, Foxit or itext the signature is 
> visible.
> The test fle are inserted in an encrypted zip. If possible I would like to 
> communicate the password with a private message.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-3631) Signature Interoperability Issue

2018-02-20 Thread Martin Mancuska (JIRA)

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

Martin Mancuska edited comment on PDFBOX-3631 at 2/20/18 1:52 PM:
--

After adding /DA entry into signature fields, then Chrome correctly shows all 
signatures. This is strange, because specifacation says the renderer should 
ignore /DA when rendering appearance stream.


was (Author: mato7d5):
After adding /DA entry into signature fields (annotation in /Annot), then 
Chrome correctly shows all signatures. This is strange, because specifacation 
says the renderer should ignore /DA when rendering appearance stream.

> Signature Interoperability Issue
> 
>
> Key: PDFBOX-3631
> URL: https://issues.apache.org/jira/browse/PDFBOX-3631
> Project: PDFBox
>  Issue Type: Bug
>  Components: Signing
>Affects Versions: 2.0.3
> Environment: Java 1.8 Windows.
>Reporter: Marco Monacelli
>Priority: Minor
> Attachments: Microsoft_Edge_on_Windows_10_rendering_correct.png, 
> PDFBOX-3631.zip, PDFJS-4743-signature.pdf, Preview_rendering_not_correct.png, 
> acrobat_rendering_correct.png, chrome_rendering_incorrect.png, 
> firefox_incorrect_but_expected.png, libreoffice_rendering_correct.png, 
> not_working_pdf_with_signatures.pdf, 
> preview_of_Preview_rendering_correct.png, safari_using_preview_incorrect.png, 
> test_out_pdf.pdf, working_pdf_with_signatures.pdf, 
> working_pdf_with_signatures.pdf
>
>
> Some files if signed with PDFBox produce not visible signature in chrome, 
> pdfium foxit. 
> If the same file is signed on some Actobat, Foxit or itext the signature is 
> visible.
> The test fle are inserted in an encrypted zip. If possible I would like to 
> communicate the password with a private message.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-3631) Signature Interoperability Issue

2018-02-19 Thread JIRA

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

Michaël Krens edited comment on PDFBOX-3631 at 2/20/18 5:32 AM:


I've done some testing in various browsers / readers. Here the screenshots:

chrome_rendering_incorrect.png:

!chrome_rendering_incorrect.png|width=487,height=309!

acrobat_rendering_correct.png:

!acrobat_rendering_correct.png|width=569,height=362!

libreoffice_rendering_correct.png:

!libreoffice_rendering_correct.png|width=499,height=307!

Microsoft_Edge_on_Windows_10_rendering_correct.png:

!Microsoft_Edge_on_Windows_10_rendering_correct.png|width=512,height=386!

preview_of_Preview_rendering_correct.png:

!preview_of_Preview_rendering_correct.png|width=552,height=407!

Preview_rendering_not_correct.png:

!Preview_rendering_not_correct.png|width=591,height=449!

This pdf is always rendering correct in the above cases: 
[^working_pdf_with_signatures.pdf]

This pdf is signed with PDFBox and used for the screenshots: 
[^not_working_pdf_with_signatures.pdf]

Note that the Preview issue might be a different one but as the other file also 
works in Preview this might be related.
 It looks like this is related the Preview issue: 
[http://www.openradar.me/34276970] (in which case it also might be related to 
this issue somehow).

 


was (Author: mkrens):
I've done some testing in various browsers / readers. Here the screenshots:

chrome_rendering_incorrect.png:

!chrome_rendering_incorrect.png!

acrobat_rendering_correct.png:

!acrobat_rendering_correct.png!

libreoffice_rendering_correct.png:

!libreoffice_rendering_correct.png!

Microsoft_Edge_on_Windows_10_rendering_correct.png:

!Microsoft_Edge_on_Windows_10_rendering_correct.png!

preview_of_Preview_rendering_correct.png:

!preview_of_Preview_rendering_correct.png!

Preview_rendering_not_correct.png:

!Preview_rendering_not_correct.png!

This pdf is always rendering correct in the above cases: 
[^working_pdf_with_signatures.pdf]

This pdf is signed with PDFBox and used for the screenshots: 
[^not_working_pdf_with_signatures.pdf]

Note that the Preview issue might be a different one but as the other file also 
works in Preview this might be related.
 It looks like this is related the Preview issue: 
[http://www.openradar.me/34276970] (in which case it also might be related to 
this issue somehow).

 

> Signature Interoperability Issue
> 
>
> Key: PDFBOX-3631
> URL: https://issues.apache.org/jira/browse/PDFBOX-3631
> Project: PDFBox
>  Issue Type: Bug
>  Components: Signing
>Affects Versions: 2.0.3
> Environment: Java 1.8 Windows.
>Reporter: Marco Monacelli
>Priority: Minor
> Attachments: Microsoft_Edge_on_Windows_10_rendering_correct.png, 
> PDFBOX-3631.zip, PDFJS-4743-signature.pdf, Preview_rendering_not_correct.png, 
> acrobat_rendering_correct.png, chrome_rendering_incorrect.png, 
> firefox_incorrect_but_expected.png, libreoffice_rendering_correct.png, 
> not_working_pdf_with_signatures.pdf, 
> preview_of_Preview_rendering_correct.png, safari_using_preview_incorrect.png, 
> test_out_pdf.pdf, working_pdf_with_signatures.pdf, 
> working_pdf_with_signatures.pdf
>
>
> Some files if signed with PDFBox produce not visible signature in chrome, 
> pdfium foxit. 
> If the same file is signed on some Actobat, Foxit or itext the signature is 
> visible.
> The test fle are inserted in an encrypted zip. If possible I would like to 
> communicate the password with a private message.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-3631) Signature Interoperability Issue

2016-12-15 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr edited comment on PDFBOX-3631 at 12/15/16 11:10 AM:


I can reproduce the effect by signing and viewing them on my android mobile 
phone with google drive pdf viewer. The OK file has the signature, the KO file 
hasn't. Very weird.

Things I tried
- set bbox in correct order - no
- sign uncompressed file - no
- sign uncompressed file with xref table instead of XRef stream - yes!

So it's something related to the XRef stream.

Coincidentally, a competing java product has the same problem.



was (Author: tilman):
I can reproduce the effect by signing and viewing them on my android mobile 
phone with google drive pdf viewer. The OK file has the signature, the KO file 
hasn't. Very weird.

> Signature Interoperability Issue
> 
>
> Key: PDFBOX-3631
> URL: https://issues.apache.org/jira/browse/PDFBOX-3631
> Project: PDFBox
>  Issue Type: Bug
>  Components: Signing
>Affects Versions: 2.0.3
> Environment: Java 1.8 Windows.
>Reporter: Marco Monacelli
>Priority: Minor
> Attachments: PDFBOX-3631.zip, PDFJS-4743-signature.pdf
>
>
> Some files if signed with PDFBox produce not visible signature in chrome, 
> pdfium foxit. 
> If the same file is signed on some Actobat, Foxit or itext the signature is 
> visible.
> The test fle are inserted in an encrypted zip. If possible I would like to 
> communicate the password with a private message.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-3631) Signature Interoperability Issue

2016-12-15 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr edited comment on PDFBOX-3631 at 12/15/16 10:31 AM:


I can reproduce the effect by signing and viewing them on my android mobile 
phone with google drive pdf viewer. The OK file has the signature, the KO file 
hasn't. Very weird.


was (Author: tilman):
I can reproduce the effect by signing and viewing them on my android mobile 
phone with google pdf viewer. The OK file has the signature, the KO file 
hasn't. Very weird.

> Signature Interoperability Issue
> 
>
> Key: PDFBOX-3631
> URL: https://issues.apache.org/jira/browse/PDFBOX-3631
> Project: PDFBox
>  Issue Type: Bug
>  Components: Signing
>Affects Versions: 2.0.3
> Environment: Java 1.8 Windows.
>Reporter: Marco Monacelli
>Priority: Minor
> Attachments: PDFBOX-3631.zip, PDFJS-4743-signature.pdf
>
>
> Some files if signed with PDFBox produce not visible signature in chrome, 
> pdfium foxit. 
> If the same file is signed on some Actobat, Foxit or itext the signature is 
> visible.
> The test fle are inserted in an encrypted zip. If possible I would like to 
> communicate the password with a private message.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-3631) Signature Interoperability Issue

2016-12-15 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr edited comment on PDFBOX-3631 at 12/15/16 8:55 AM:
---

Some pdf viewing products have difficulties showing annotations correctly (and 
there's a mistake in the PDF specification, a formula is wrong sided). Here's 
an issue in PDF.js. Try their file with the products you mentioned.
https://github.com/mozilla/pdf.js/issues/4743


was (Author: tilman):
Some pdf viewing products have difficulties showing annotations correctly. 
Here's an issue in PDF.js. Try their file with the products you mentioned.
https://github.com/mozilla/pdf.js/issues/4743

> Signature Interoperability Issue
> 
>
> Key: PDFBOX-3631
> URL: https://issues.apache.org/jira/browse/PDFBOX-3631
> Project: PDFBox
>  Issue Type: Bug
>  Components: Signing
>Affects Versions: 2.0.3
> Environment: Java 1.8 Windows.
>Reporter: Marco Monacelli
>Priority: Minor
> Attachments: PDFBOX-3631.zip, PDFJS-4743-signature.pdf
>
>
> Some files if signed with PDFBox produce not visible signature in chrome, 
> pdfium foxit. 
> If the same file is signed on some Actobat, Foxit or itext the signature is 
> visible.
> The test fle are inserted in an encrypted zip. If possible I would like to 
> communicate the password with a private message.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-3631) Signature Interoperability Issue

2016-12-14 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr edited comment on PDFBOX-3631 at 12/14/16 9:04 PM:
---

Why not create a signed file from a public PDF?

Did you create your signed PDF with the CreateVisibleSignature example, or in a 
different way?


was (Author: tilman):
Why not create a signed file from a public PDF?

Did you create your PDF with the CreateVisibleSignature example, or in a 
different way?

> Signature Interoperability Issue
> 
>
> Key: PDFBOX-3631
> URL: https://issues.apache.org/jira/browse/PDFBOX-3631
> Project: PDFBox
>  Issue Type: Bug
>  Components: Signing
>Affects Versions: 2.0.3
> Environment: Java 1.8 Windows.
>Reporter: Marco Monacelli
>Priority: Minor
> Attachments: PDFBOX-3631.zip
>
>
> Some files if signed with PDFBox produce not visible signature in chrome, 
> pdfium foxit. 
> If the same file is signed on some Actobat, Foxit or itext the signature is 
> visible.
> The test fle are inserted in an encrypted zip. If possible I would like to 
> communicate the password with a private message.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org