Re: How to create hyperlink & open attached file on click Action

2017-06-22 Thread Tilman Hausherr
Am 22.06.2017 um 14:14 schrieb Vinod Bokare: Hello All, Can anyone suggest me how to Create Index with Table of contents & on click of Particular text i should navigate to page. Using PDFBOX we can do, but its Complex operation, as i am loading data from database every setting page

Re: Adding a Redaction annotation (without applying it)

2017-06-22 Thread Gilad Denneboom
No, it's not working, either. Tried loading Multipage_Sample_annots_square.xfdf and got this: Exception in thread "main" java.io.IOException: Error: End-of-File, expected line at org.apache.pdfbox.pdfparser.BaseParser.readLine(BaseParser.java:1145) at

RE: Adding a Redaction annotation (without applying it)

2017-06-22 Thread Stoll, Matthias
I would recommend to start with the sample XFDF as provided with my initial JIRA issue. This is only to ensure that PDFBox reads the correct XML metadata it might need to process. Does this work for you with the current PDFBox version? -Original Message- From: Gilad Denneboom

Re: Adding a Redaction annotation (without applying it)

2017-06-22 Thread Gilad Denneboom
I tried the same with an FDF file. This time it was read successfully, but the annotations were not added: Jun 22, 2017 5:08:46 PM org.apache.pdfbox.pdmodel.fdf.FDFAnnotation create WARNING: Unknown or unsupported annotation type 'Redact' Jun 22, 2017 5:08:46 PM

Re: Adding a Redaction annotation (without applying it)

2017-06-22 Thread Gilad Denneboom
I've encountered my first stumble-block... When I try to import my Acrobat-generated XFDF file I get this exception: Exception in thread "main" java.io.IOException: Error: Header doesn't contain versioninfo at org.apache.pdfbox.pdfparser.FDFParser.parse(FDFParser.java:160) at

RE: Adding a Redaction annotation (without applying it)

2017-06-22 Thread Stoll, Matthias
Hi Gilad, Exactly - and there is a small code sample already from which you can start (XFDFStamper.java) PDFBox team has improved their support of XFDF after that call and we will try to contribute a bit in the future as there are still some smaller issues/ restrictions. But we can already

How to create hyperlink & open attached file on click Action

2017-06-22 Thread Vinod Bokare
Hello All, Can anyone suggest me how to Create Index with Table of contents & on click of Particular text i should navigate to page. Using PDFBOX we can do, but its Complex operation, as i am loading data from database every setting page co-ordinates & drawing,text, rectangle,underline is

How to create hyperlink & open attached file on click Action

2017-06-22 Thread Vinod Bokare
Hello All, Can anyone suggest me how to Create Index with Table of contents & on click of Particular text i should navigate to page. Using PDFBOX we can do, but its Complex operation, as i am loading data from database every setting page co-ordinates & drawing,text, rectangle,underline is

NullPointerException in org.apache.fontbox.ttf.PostScriptTable.getName - how to submit fix?

2017-06-22 Thread lauri . laanti
Hi all, I received the following error (v 2.0.6) java.lang.ArrayIndexOutOfBoundsException: 4 at org.apache.fontbox.ttf.PostScriptTable.getName(PostScriptTable.java:318) at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.readEncodingFromFont(PDTrueTypeFont.java:260) at

Re: PDPageContentStream#close() vs PDDocument#close()

2017-06-22 Thread Andreas Lehmkühler
> Thad Humphries hat am 21. Juni 2017 um 23:30 > geschrieben: > > > Is it necessary to call PDDocument#close() after calling > PDPageContentStream#close()? Does the answer apply all cases or only > certain cases? If the latter, what certain cases? > > For example,

Re: Adding a Redaction annotation (without applying it)

2017-06-22 Thread Gilad Denneboom
Yes, I'll be very happy to get some sample code... Is it related to this issue? https://issues.apache.org/jira/browse/PDFBOX-3164 Thanks in advance! On Thu, Jun 22, 2017 at 11:52 AM, Stoll, Matthias wrote: > Hi Gilad, > > Yes - by "stamping" I mean applying the

Re: Adding a Redaction annotation (without applying it)

2017-06-22 Thread Gilad Denneboom
Hi Matthias, Thanks for the info. What do you mean exactly by "stamping" the XFDF file, though? Do you mean just import it? Does that actually apply the redactions? Gilad On Thu, Jun 22, 2017 at 10:01 AM, Stoll, Matthias wrote: > Hi Gilad, > > One approach to do this

RE: Adding a Redaction annotation (without applying it)

2017-06-22 Thread Stoll, Matthias
Hi Gilad, One approach to do this is by forming redactions based on XFDF. If you want to apply the XFDF based redactions permanently, you can "stamp" it later into the PDF. Both is possible by using PDFBox. Kind regards, Matthias -Original Message- From: Gilad Denneboom