Re: [PDFBOX-2.0] Signature Issue
Hi Ruben, I think it isn't the same problem, because the file is correctly signed using PDFBOX 1.8.8 and BouncyCastle 1.45. Best regards On Thu, Jan 29, 2015 at 12:05 PM, Ruben Lagar ruben.la...@gmail.com wrote: Hi Isaias, I had a similar problem, and I think it is related to the problem described in this Jira https://issues.apache.org/jira/browse/PDFBOX-1822 There is no fix yet, as far as I know. El Thu Jan 29 2015 at 1:39:40 PM, Isaias Barroso ( isaias.barr...@gmail.com) escribió: Hi Andreas, I got the updated SNAPSHOT (pdfbox-2.0.0-20150129.080600-1013.jar) and used the sign_me.pdf, keystore.p12 provided on test case. Follow the result file, now Adobe Reader says that the signature is invalid and when I close the save message appears. I've tried using the CreateSignature.class of pdfbox-examples-2.0.0-20150129.080737-985.jar SNAPSHOT too. BouncyCastle 1.51 are being used. Best regards On Thu, Jan 29, 2015 at 9:53 AM, Andreas Lehmkühler andr...@lehmi.de wrote: Hi, Isaias Barroso isaias.barr...@gmail.com hat am 28. Januar 2015 um 12:35 geschrieben: Hi all, I'm trying the PDFBOX 2 SNAPSHOT and I have a issue with Signature, the file is processed and the size are increased but when I open the file on Adobe Reader the signature information aren't showed. When I close the an information that the document was modified appears, so I'm thinking that process wasn't completed correctly, although none exception are thrown To make the tests, I've used a pdfbox-examples snapshot (org.apache.pdfbox.examples.signature.CreateSignature) https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-examples/2.0.0-SNAPSHOT/ What exact SNAPSHOT version did you use as there were recently some changes. Do you have any suggestion to investigate the root cause? What exactly did you do to sign the pdf? Did you have a look at the provided testcase [1], which demonstrates all necessary steps to sign a pdf. Best regards -- Isaías Barroso Belo Horizonte - MG BR Andreas Lehmkühler [1] http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java?view=markup -- Isaías Barroso Belo Horizonte - MG - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org -- Isaías Barroso Belo Horizonte - MG
Re: Type1Glyph2D No glyph for 41 (.notdef) in font Helvetica
I don't have any trouble displaying the fonts. But I'm on windows 7, maybe our heuristics fail on Windows 8 ? Tilman Am 29.01.2015 um 13:14 schrieb Andreas Lehmkühler: Hi, Andreas Lüdtke andi.lued...@gmx.de hat am 29. Januar 2015 um 08:51 geschrieben: Hi Tilman, you will find the pdf file here: https://www.dropbox.com/s/4v6tnroz6a8imsp/rg-1234567890BA.pdf?dl=0 The converted image is here: https://www.dropbox.com/s/rqnuou03elxrgb6/rg-1234567890BA1.jpg?dl=0 In this case I used pdfbox-app-2.0.0-20150127.230110-988.jar to generate the image but the result is the same when I use my app. BTW: if the pdf has all fonts embedded, I don't have this problem. There seems to be an issue with our font mapping if the fonts aren't embedded. Besides, IMO you have to think about your font handling, especially as you're creating the pdfs yourself. It's always a bad idea not to include the used fonts, as the used reader has to map the missing fonts somehow and such a replacement may lead to not that perfect renderings. BR Andreas Lehmkühler Gesendet: Mittwoch, 28. Januar 2015 um 17:45 Uhr Von: Tilman Hausherr thaush...@t-online.de An: users@pdfbox.apache.org Betreff: Re: Type1Glyph2D No glyph for 41 (.notdef) in font Helvetica Please upload a sample file somewhere and post the url Tilman Am 28.01.2015 um 10:37 schrieb Andreas Lüdtke: Hi, I'm using pdfbox 2.0.0 version trunk from yesterday and I get a lot of such warning messages when I convert a pdf file to an image. The pdf file has NO embedded fonts. The resulting images are pretty empty beside some images and lines: no single character is visible. I read somewhere that current versions of pdfbox 2.0.0 should handle these fonts properly, but I can't confirm this. I use jdk 1.7.0_72 on windows 8.1 64bit. How can I make the characters visible in the converted images? Best regards Andreas - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org
Re: [PDFBOX-2.0] Signature Issue
Hi, Isaias Barroso isaias.barr...@gmail.com hat am 28. Januar 2015 um 12:35 geschrieben: Hi all, I'm trying the PDFBOX 2 SNAPSHOT and I have a issue with Signature, the file is processed and the size are increased but when I open the file on Adobe Reader the signature information aren't showed. When I close the an information that the document was modified appears, so I'm thinking that process wasn't completed correctly, although none exception are thrown To make the tests, I've used a pdfbox-examples snapshot (org.apache.pdfbox.examples.signature.CreateSignature) https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-examples/2.0.0-SNAPSHOT/ What exact SNAPSHOT version did you use as there were recently some changes. Do you have any suggestion to investigate the root cause? What exactly did you do to sign the pdf? Did you have a look at the provided testcase [1], which demonstrates all necessary steps to sign a pdf. Best regards -- Isaías Barroso Belo Horizonte - MG BR Andreas Lehmkühler [1] http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java?view=markup - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org
AcroForm field kids not found
Hello everyone, I'm using latest PDFBox 2.0.0 snaphots for filling out a form. Processing was working fine both for AcroForm fields and for XFA, but latest changes (probably sometimes between Jan 22 - Jan 25) caused that fields in a form are not discovered. The file I'm using is available here: http://www.msmt.cz/file/34489_1_1/ When I run PrintFields from examples - http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/PrintFields.java?view=markup - on the file, the output I get is: 1 top-level fields were found on the form |--topmostSubform[0] But when I use older version of 2.0.0 branch, all fields are printed: 1 top-level fields were found on the form |--topmostSubform[0] | |--topmostSubform[0].Page1[0] | | |--topmostSubform[0].Page1[0]._01_Subtitul[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDComboBox | | |--topmostSubform[0].Page1[0]._02_Registrovany_Nazev[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._03_Ulice[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._04_Mesto[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._05_PSC[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField ... The problem seems to be at the line: ListCOSObjectable kids = field.getKids(); The list is empty for the top-level field. Anyone has a clue what could be wrong? Best regards, Martin Jelinek -- mjeli...@barinka.net http://www.barinka.net/ - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org
Re: Aw: Re: Type1Glyph2D No glyph for 41 (.notdef) in font Helvetica
Hi, Andreas Lüdtke andi.lued...@gmx.de hat am 29. Januar 2015 um 08:51 geschrieben: Hi Tilman, you will find the pdf file here: https://www.dropbox.com/s/4v6tnroz6a8imsp/rg-1234567890BA.pdf?dl=0 The converted image is here: https://www.dropbox.com/s/rqnuou03elxrgb6/rg-1234567890BA1.jpg?dl=0 In this case I used pdfbox-app-2.0.0-20150127.230110-988.jar to generate the image but the result is the same when I use my app. BTW: if the pdf has all fonts embedded, I don't have this problem. There seems to be an issue with our font mapping if the fonts aren't embedded. Besides, IMO you have to think about your font handling, especially as you're creating the pdfs yourself. It's always a bad idea not to include the used fonts, as the used reader has to map the missing fonts somehow and such a replacement may lead to not that perfect renderings. BR Andreas Lehmkühler Gesendet: Mittwoch, 28. Januar 2015 um 17:45 Uhr Von: Tilman Hausherr thaush...@t-online.de An: users@pdfbox.apache.org Betreff: Re: Type1Glyph2D No glyph for 41 (.notdef) in font Helvetica Please upload a sample file somewhere and post the url Tilman Am 28.01.2015 um 10:37 schrieb Andreas Lüdtke: Hi, I'm using pdfbox 2.0.0 version trunk from yesterday and I get a lot of such warning messages when I convert a pdf file to an image. The pdf file has NO embedded fonts. The resulting images are pretty empty beside some images and lines: no single character is visible. I read somewhere that current versions of pdfbox 2.0.0 should handle these fonts properly, but I can't confirm this. I use jdk 1.7.0_72 on windows 8.1 64bit. How can I make the characters visible in the converted images? Best regards Andreas - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org
Re: AcroForm field kids not found
Hi Martin, I've created https://issues.apache.org/jira/browse/PDFBOX-2640 and already have a fix for that which I committed in rev. 1655672 - thanks for bringing that up. The printout of PrintFields is now 1 top-level fields were found on the form |--topmostSubform[0] | |--topmostSubform[0].Page1[0] | | |--topmostSubform[0].Page1[0]._01_Subtitul[0] = [vybrat:], type=org.apache.pdfbox.pdmodel.interactive.form.PDComboBox | | |--topmostSubform[0].Page1[0]._02_Registrovany_Nazev[0] = , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._03_Ulice[0] = , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._04_Mesto[0] = , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._05_PSC[0] = , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._06_Prijmeni[0] = , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._07_Jmeno[0] = , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._08_Titul[0] = , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._09_Funkce[0] = , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._10_Tel\ | | | |--topmostSubform[0].Page1[0]._10_Tel\._1[0] = , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._11_Tel\ Best regards Maruan Am 29.01.2015 um 14:35 schrieb Martin Jelínek mjeli...@barinka.net: Hello everyone, I'm using latest PDFBox 2.0.0 snaphots for filling out a form. Processing was working fine both for AcroForm fields and for XFA, but latest changes (probably sometimes between Jan 22 - Jan 25) caused that fields in a form are not discovered. The file I'm using is available here: http://www.msmt.cz/file/34489_1_1/ When I run PrintFields from examples - http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/PrintFields.java?view=markup - on the file, the output I get is: 1 top-level fields were found on the form |--topmostSubform[0] But when I use older version of 2.0.0 branch, all fields are printed: 1 top-level fields were found on the form |--topmostSubform[0] | |--topmostSubform[0].Page1[0] | | |--topmostSubform[0].Page1[0]._01_Subtitul[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDComboBox | | |--topmostSubform[0].Page1[0]._02_Registrovany_Nazev[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._03_Ulice[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._04_Mesto[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._05_PSC[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField ... The problem seems to be at the line: ListCOSObjectable kids = field.getKids(); The list is empty for the top-level field. Anyone has a clue what could be wrong? Best regards, Martin Jelinek -- mjeli...@barinka.net http://www.barinka.net/ - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org
Re: [PDFBOX-2.0] Signature Issue
More information on this stack overflow question https://stackoverflow.com/questions/21257507/attachment-damages-singature/21260292?noredirect=1#21260292 Hope this can help. El Thu Jan 29 2015 at 2:05:51 PM, Ruben Lagar (ruben.la...@gmail.com) escribió: Hi Isaias, I had a similar problem, and I think it is related to the problem described in this Jira https://issues.apache.org/jira/browse/PDFBOX-1822 There is no fix yet, as far as I know. El Thu Jan 29 2015 at 1:39:40 PM, Isaias Barroso ( isaias.barr...@gmail.com) escribió: Hi Andreas, I got the updated SNAPSHOT (pdfbox-2.0.0-20150129.080600-1013.jar) and used the sign_me.pdf, keystore.p12 provided on test case. Follow the result file, now Adobe Reader says that the signature is invalid and when I close the save message appears. I've tried using the CreateSignature.class of pdfbox-examples-2.0.0-20150129.080737-985.jar SNAPSHOT too. BouncyCastle 1.51 are being used. Best regards On Thu, Jan 29, 2015 at 9:53 AM, Andreas Lehmkühler andr...@lehmi.de wrote: Hi, Isaias Barroso isaias.barr...@gmail.com hat am 28. Januar 2015 um 12:35 geschrieben: Hi all, I'm trying the PDFBOX 2 SNAPSHOT and I have a issue with Signature, the file is processed and the size are increased but when I open the file on Adobe Reader the signature information aren't showed. When I close the an information that the document was modified appears, so I'm thinking that process wasn't completed correctly, although none exception are thrown To make the tests, I've used a pdfbox-examples snapshot (org.apache.pdfbox.examples.signature.CreateSignature) https://repository.apache.org/content/groups/snapshots/org/ apache/pdfbox/pdfbox-examples/2.0.0-SNAPSHOT/ What exact SNAPSHOT version did you use as there were recently some changes. Do you have any suggestion to investigate the root cause? What exactly did you do to sign the pdf? Did you have a look at the provided testcase [1], which demonstrates all necessary steps to sign a pdf. Best regards -- Isaías Barroso Belo Horizonte - MG BR Andreas Lehmkühler [1] http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/ test/java/org/apache/pdfbox/examples/pdmodel/ TestCreateSignature.java?view=markup -- Isaías Barroso Belo Horizonte - MG - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org