You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Kai Hofmann <po...@web.de> on 2014/03/07 10:44:48 UTC

Problems with PDF-1.7 format

Hello *,
 
I am using PDFBox 1.8.4 and have some problems with PDF-1.7 documents.
It looks like Root:Dictionary/AcroForm/Fields is empty (Using the PDFDebugger). Works up to PDF-1.6 without problems.
Could this be fixed? I am trying to flatten PDFs which works until PDF-1.6 but not for 1.7 because of the mentioned missing structure.
So I assume that this is a parsing error in PDFBox? I am not sure, because I got no exceptions or other messages about this.
 
Thanks for help in advance
 
   PowerStat

-- 
Kai Hofmann           EMail: powerstat@web.de
Bremen/Germany        

Aw: Re: Problems with PDF-1.7 format

Posted by Kai Hofmann <po...@web.de>.
Dear Maruan,
 
sorry for a delay of 2 month, but in the meantime, I found that I was wrong and it  is not a PDF-1.7 problem that I am facing.
It's a problem with XFA-Forms vs. AcroForms. Because it looks like you are a specialist in this area, could you please help me with two questions:
 
1. Is it possible (hopefully not) to mix AcroForms and XFA in one PDF? I ask this because I have one PDF here that looks like this is possible.
 
2. More important to know for me is if there is a way to flatten XFA PDF's with PDFBox? It looks like itext could do this, but because I am already using PDFBox, I would like to stay with it.
 
Greetings and thanks
 
  Kai
 
-- 
Kai Hofmann           EMail: powerstat@web.de
Bremen/Germany        
 
 

Gesendet: Freitag, 07. März 2014 um 11:49 Uhr
Von: "Maruan Sahyoun" <sa...@fileaffairs.de>
An: users@pdfbox.apache.org
Betreff: Re: Problems with PDF-1.7 format
Hi Kai,

how did you load the PDF document. PDDocument.load or PDDocument.loadNonSeq? Could you upload a sample PDF to a public location so we can take a look at the file itself?

BR
Maruan Sahyoun

Am 07.03.2014 um 10:44 schrieb Kai Hofmann <po...@web.de>:

> Hello *,
>
> I am using PDFBox 1.8.4 and have some problems with PDF-1.7 documents.
> It looks like Root:Dictionary/AcroForm/Fields is empty (Using the PDFDebugger). Works up to PDF-1.6 without problems.
> Could this be fixed? I am trying to flatten PDFs which works until PDF-1.6 but not for 1.7 because of the mentioned missing structure.
> So I assume that this is a parsing error in PDFBox? I am not sure, because I got no exceptions or other messages about this.
>
> Thanks for help in advance
>
> PowerStat
>
> --
> Kai Hofmann EMail: powerstat@web.de
> Bremen/Germany
 

Re: Problems with PDF-1.7 format

Posted by Maruan Sahyoun <sa...@fileaffairs.de>.
Hi Kai,

how did you load the PDF document. PDDocument.load or PDDocument.loadNonSeq? Could you upload a sample PDF to a public location so we can take a look at the file itself?

BR
Maruan Sahyoun

Am 07.03.2014 um 10:44 schrieb Kai Hofmann <po...@web.de>:

> Hello *,
>  
> I am using PDFBox 1.8.4 and have some problems with PDF-1.7 documents.
> It looks like Root:Dictionary/AcroForm/Fields is empty (Using the PDFDebugger). Works up to PDF-1.6 without problems.
> Could this be fixed? I am trying to flatten PDFs which works until PDF-1.6 but not for 1.7 because of the mentioned missing structure.
> So I assume that this is a parsing error in PDFBox? I am not sure, because I got no exceptions or other messages about this.
>  
> Thanks for help in advance
>  
>    PowerStat
> 
> -- 
> Kai Hofmann           EMail: powerstat@web.de
> Bremen/Germany