Re: How to ensure a PDF is valid

2013-01-22 Thread FileAffairs GmbH
Hi Guillaume, in order to validate a PDF against the spec you have to make sure that all the content is compliant. PDFBox gives you methods to get the content in individual parts but at that point in time itself doesn't make sure that the pdf is valid. E.g. there is some code in PDFBox to work

Flattening

2013-01-22 Thread Lukas Baab
Hi! How do I "flatten" a PDF-form (remove the form-field but keep the text of the field)? Jason asked this question already. (see http://mail-archives.apache.org/mod_mbox/pdfbox-users/201009.mbox/%3c4c9a326f.60...@rayman2200.de%3E) The answer was this: > a quick way to do this, is to remove the

Re: How to ensure a PDF is valid

2013-01-22 Thread Peter Murray-Rust
On Tue, Jan 22, 2013 at 6:54 AM, Guillaume Bailleul wrote: > Hi All, > > Is there a way to validate a pdf with PDFBox? I mean to ensure that > the document complies with the PDF Reference. > > My idea was to load the document and then ensure each xobject is > parsed (retrieving each one). Is it a