Re: No PDField returned on PDAcroForm of certain PDF file

2018-06-11 Thread Jason
Hi Tilman, Is there any java package that supports XFA form? Thanks. Best Wishes, Jason > On Jun 12, 2018, at 12:03 AM, Tilman Hausherr wrote: > >> Am 12.06.2018 um 02:59 schrieb JZ Q: >> Hi everyone, >> >> I need to process the pdf provided in the link. But the api code below does >> not ret

Re: No PDField returned on PDAcroForm of certain PDF file

2018-06-11 Thread Tilman Hausherr
Am 12.06.2018 um 02:59 schrieb JZ Q: Hi everyone, I need to process the pdf provided in the link. But the api code below does not return fieldList. Does that mean this PDF file does not define any PDField? Thanks. Indeed. Your file is an XFA form, which we don't support. Tilman PDAcroFor

No PDField returned on PDAcroForm of certain PDF file

2018-06-11 Thread JZ Q
Hi everyone, I need to process the pdf provided in the link. But the api code below does not return fieldList. Does that mean this PDF file does not define any PDField? Thanks. PDAcroForm acroForm = docCatalog.getAcroForm(); // Get field names List fieldList = acroForm.getFields(); https://dri

Re: Custom annotations (custom appearance stream)

2018-06-11 Thread Tilman Hausherr
Am 11.06.2018 um 10:29 schrieb Constantine Dokolas: It seems that setting the "Name" entry for the annotation (setName) makes Acrobat behave better. Evidently Acrobat is determined in finding out the icon representing the rubber stamp and only then allowing for the AP to override that? (i.e. not

Re: Poor performance creating PDF page from buffered image.

2018-06-11 Thread Tilman Hausherr
There's nothing we can do... I suggest you run the profiler to see where the time is lost. Likely not in PDFBox. Also make sure that your input is a file and not a stream. I remember we once had a problem, see https://issues.apache.org/jira/browse/PDFBOX-4121 You could also try using the twel

RE: Poor performance creating PDF page from buffered image.

2018-06-11 Thread Kirk, Kenneth
I believe it was faster in the case of good images produced by modern software. In the case of the images that I am processing, that were created 20 years ago, where the IFD has bad tags that don't reference the next IFD properly, I need to grab the pages that are accessible and flag the resu

Re: Custom annotations (custom appearance stream)

2018-06-11 Thread Marc Kaufman
The most Acrobat-friendly of handling custom appearances in an annotation is to use the Button type.

Re: Custom annotations (custom appearance stream)

2018-06-11 Thread Constantine Dokolas
It seems that setting the "Name" entry for the annotation (setName) makes Acrobat behave better. Evidently Acrobat is determined in finding out the icon representing the rubber stamp and only then allowing for the AP to override that? (i.e. not specifying which rubber stamp throws off Acrobat's log