Re: Reading text using TextPosition

2015-04-22 Thread Hesham G.
Frank , I have handled TextPositions using X Y coordinates as you have suggested to detect new lines. It works fine, but if a sentence is written on 2 lines I can't detect it. If you know a trick to detect that it will help a lot. Best regards , Hesham

Re: NullPointer in StandardSecurityHandler

2015-04-22 Thread Tilman Hausherr
https://issues.apache.org/jira/browse/PDFBOX-2769 created. In the meantime, either follow the instructions at https://pdfbox.apache.org/1.8/cookbook/encryption.html , or call setAllSecurityToBeRemoved(true) before saving your doc. And yes, your doc is encrypted, but with an empty user psw.

Re: Windows font error

2015-04-22 Thread Tilman Hausherr
Am 22.04.2015 um 04:49 schrieb Andrew Munn: I am adding some text to a PDF and when I open it in acrobat viewer I get two errors: An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created teh PDF document to correct the problem and a

Re: Reading text using TextPosition

2015-04-22 Thread Eric Douglas
What have you got so far? Can you provide sample code to work with? On Wed, Apr 22, 2015 at 12:02 PM, Hesham G. heshamgne...@gmail.com wrote: Frank , I have handled TextPositions using X Y coordinates as you have suggested to detect new lines. It works fine, but if a sentence is written on

Re: NullPointer in StandardSecurityHandler

2015-04-22 Thread Tilman Hausherr
Hi, Fixed. The difference is that you now get an exception telling you what to do. Tilman Am 22.04.2015 um 08:00 schrieb Tilman Hausherr: https://issues.apache.org/jira/browse/PDFBOX-2769 created. In the meantime, either follow the instructions at

Re: Getting the pagenumber of a PDPage

2015-04-22 Thread Tilman Hausherr
I will evaluate and probably commit this. Not today, but within the next few days. Note that the change is for 2.0 only Tilman Am 22.04.2015 um 10:31 schrieb Andrea Vacondio: I think this might be related https://issues.apache.org/jira/browse/PDFBOX-2704 On Wed, Apr 22, 2015 at 10:15 AM,

Re: Euro not set in text field

2015-04-22 Thread Maruan Sahyoun
Hi, Am 22.04.2015 um 22:23 schrieb Tilman Hausherr thaush...@t-online.de: Am 18.04.2015 um 12:57 schrieb Frank Buss: I have a PDF document with a text field and I want to enter an euro symbol (€) with a program, but I'll get a strange character (¬). This is the code: That one has now

Re: Euro not set in text field

2015-04-22 Thread Tilman Hausherr
Am 18.04.2015 um 12:57 schrieb Frank Buss: I have a PDF document with a text field and I want to enter an euro symbol (€) with a program, but I'll get a strange character (¬). This is the code: That one has now been fixed... however now the exception mentioned in your second post happens :-(

Re: Rotate text

2015-04-22 Thread Tilman Hausherr
I found this in the PDF spec for BBox: / //A rectangle in default user space coordinates specifying the location of the viewport on the page.// //The two coordinate pairs of the rectangle shall be specified in normalized form; that is, lower-left followed by upper-right, relative to the

Re: java source in PDFBox snapshot jars?

2015-04-22 Thread Andreas Lehmkühler
Hi, Thomas Chojecki i...@rayman2200.de hat am 21. April 2015 um 18:19 geschrieben: Hi Andrew, this is more a maven style to not include the sources jar in each snapshot. I think the main idea behind this is to help the infrastructure to save storage. At the present time, it makes no

Re: java source in PDFBox snapshot jars?

2015-04-22 Thread Thomas Chojecki
Zitat von Andreas Lehmkühler andr...@lehmi.de: Hi, Hi Andreas, I'll try to find out what we have to do to publish the sources as well, see PDFBOX-2770 This looks like a clean way to do it. https://maven.apache.org/plugin-developers/cookbook/attach-source-javadoc-artifacts.html BR

Re: Getting the pagenumber of a PDPage

2015-04-22 Thread Andrea Vacondio
I think this might be related https://issues.apache.org/jira/browse/PDFBOX-2704 On Wed, Apr 22, 2015 at 10:15 AM, Johanneke Lamberink johanneke.lamber...@onior.com wrote: Hi, I'm trying to get the pagenumber of a given PDPage. What I have is: document.getPages().indexOf(page) No matter

Rotate text

2015-04-22 Thread phiroc
Hello, when I generate the PDF using this method, the page is landscaped but not the input field text. How do I rotate the text? Many thanks. Philippe -- byte[] generateSimpleTemplate() throws IOException, COSVisitorException { try