Re: How to ensure a PDF is valid

2013-01-24 Thread Guillaume Bailleul
Hi Thomas, We are already using jhove for this job. But jhove ends with runtime exception catched and swallowed by one of its layer with some documents. That is why I was looking for an other idea. BR, Guillaume On Wed, Jan 23, 2013 at 2:18 PM, Thomas Fischer wrote: > Hello, > > if you want to

Re: How to ensure a PDF is valid

2013-01-23 Thread Thomas Fischer
Hello, if you want to validate PDF files you might want to look at JHOVE (http://jhove.sourceforge.net/) for another open source solution. Best Thomas Am 22.01.2013 um 07:54 schrieb Guillaume Bailleul: > Hi All, > > Is there a way to validate a pdf with PDFBox? I mean to ensure that > the do

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

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

How to ensure a PDF is valid

2013-01-21 Thread Guillaume Bailleul
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 good way to do it ? BR, Guillaume