the XFA content within the PDF is an XML based definition of a
template, data etc which is rendered at runtime by Adobe Reader and
some others. In order to support the visual display PDFBox would need
to have such a renderer which it doesn't.

If you need to support that on the backend side there are commercial
libraries which support the rendering. Your milage will vary dependent
on the complexitity of the form and scripting within the form template.
 I havn't tested the latest versions of these libs but there were
issues with some forms in the past.

BR
Maruan


> I want to render the PDF, not extract the text. I only suggest using the 
> command line utilities because they exhibit the problem that happens in my 
> own code. 
> 
> -----Original Message-----
> From: Allison, Timothy B. [mailto:[email protected]] 
> Sent: Thursday, October 05, 2017 12:21 PM
> To: [email protected]
> Subject: RE: Command line utilities issue a document display warning
> 
> If you want to extract the text from a document with an XFA, Apache Tika 
> (which relies on PDFBox) should be able to extract the text.
> 
> -----Original Message-----
> From: John Liston [mailto:[email protected]] 
> Sent: Thursday, October 5, 2017 11:56 AM
> To: [email protected]
> Subject: Command line utilities issue a document display warning
> 
> Hi PDFBox, 
> 
> When I use the PDFBox 2.0.7 PrintPDF and PDFDebugger command line utilities 
> on this PDF 
> https://www.fanniemae.com/content/guide_form/urla-demographic-addendum.pdf
> the rendered page is a message saying "your PDF viewer may not be able to 
> display this type of document". 
> However, it displays correctly for me using Adobe Reader and Foxit. Is this a 
> bug? 
> 
> Thanks,
> John Liston
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
-- 
Maruan Sahyoun

FileAffairs GmbH
Josef-Schappe-Straße 21
40882 Ratingen

Tel: +49 (2102) 89497 88
Fax: +49 (2102) 89497 91
[email protected]
www.fileaffairs.de

Geschäftsführer: Maruan Sahyoun
Handelsregister: AG Düsseldorf, HRB 53837
UST.-ID: DE248275827

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to