Re: IllegalArgumentException when using PDType1Font.HELVETICA

2015-05-27 Thread Johanneke Lamberink
Hi, The string with the U+000A (LF) is retrieved by calling PDAnnotation.getContents(). I expected to be able to use the String returned by that method in PDPageContentStream.showText(), but apparently that is not the case. Thanks. Johanneke Lamberink Onior Group B.V. Jan Pieterszoon

IllegalArgumentException when using PDType1Font.HELVETICA

2015-05-27 Thread Johanneke Lamberink
Hi, When writing a given String to a PDF I am encountering the following stacktraces in the logging: Caused by: java.lang.IllegalArgumentException: No glyph for U+000A in font Helvetica at org.apache.pdfbox.pdmodel.font.PDType1Font.encode(PDType1Font.java:320) at

Re: IllegalArgumentException when using PDType1Font.HELVETICA

2015-05-27 Thread Andreas Lehmkühler
Hi, Johanneke Lamberink johanneke.lamber...@onior.com hat am 27. Mai 2015 um 10:52 geschrieben: Hi, When writing a given String to a PDF I am encountering the following stacktraces in the logging: Caused by: java.lang.IllegalArgumentException: No glyph for U+000A in font

Re: How to flatedecode and find all acroform fields in a compressed PDF

2015-05-27 Thread Balaji Venkatamohan
Thanks Tilman for letting the website developer know about the shortcomings of their compression technique. The PDF owner did not share with us the information about which website they used for compressing the PDF. My teammates helped in identifying this website. I will let the customer know

Re: How to flatedecode and find all acroform fields in a compressed PDF

2015-05-27 Thread Tilman Hausherr
Am 27.05.2015 um 20:02 schrieb Balaji Venkatamohan: Thanks Tilman for letting the website developer know about the shortcomings of their compression technique. The PDF owner did not share with us the information about which website they used for compressing the PDF. My teammates helped in

Re: How to flatedecode and find all acroform fields in a compressed PDF

2015-05-27 Thread Balaji Venkatamohan
As I said, I'm not the acroform specialist here. So I can't tell if it is possible to repair these, and if there aren't side effects that e.g. PDFs with annotations end up being forms. Yes, we've done all sorts of things to accomodate broken PDFs. But here the fault is known, it is a website that

Re: How to flatedecode and find all acroform fields in a compressed PDF

2015-05-27 Thread John Hewson
On 27 May 2015, at 11:02, Balaji Venkatamohan bvenk...@tibco.com wrote: Thanks Tilman for letting the website developer know about the shortcomings of their compression technique. The PDF owner did not share with us the information about which website they used for compressing the PDF.

Re: Fillin forms after signing

2015-05-27 Thread Thomas Chojecki
Hi Suma, the saveIncremantal is for signing purpose only. It is current a limitation of the writer that only work recursively. If you want to save the document with the filled forms, you need to give the writer a hint like breadcrumbs, so he knows that you alter the page and filled the

Re: Fillin forms after signing

2015-05-27 Thread Suma Rani
Hey Thomas, I will look into adapting addSignature. Thanks. On Wed, May 27, 2015 at 11:37 AM, Thomas Chojecki i...@rayman2200.de wrote: Hi Suma, the saveIncremantal is for signing purpose only. It is current a limitation of the writer that only work recursively. If you want to save the

Re: IllegalArgumentException when using PDType1Font.HELVETICA

2015-05-27 Thread John Hewson
On 27 May 2015, at 03:38, Johanneke Lamberink johanneke.lamber...@onior.com wrote: Hi, The string with the U+000A (LF) is retrieved by calling PDAnnotation.getContents(). I expected to be able to use the String returned by that method in PDPageContentStream.showText(), but apparently