Re: [iText-questions] How to determine if a file is valid PDF file

2008-06-09 Thread 1T3XT info
Tony Stevens wrote: > The PDF reference (available on the Adobe website) is the best way to answer > questions like this. > > Section 3.4.1 File Header says that a valid PDF will always start with a > line like "%PDF−1.5" (obviously the exact version may be different). Of > course, this won't tell

Re: [iText-questions] How to determine if a file is valid PDF file

2008-06-09 Thread Tony Stevens
The PDF reference (available on the Adobe website) is the best way to answer questions like this. Section 3.4.1 File Header says that a valid PDF will always start with a line like "%PDF−1.5" (obviously the exact version may be different). Of course, this won't tell you if the content is valid, b

[iText-questions] How to determine if a file is valid PDF file

2008-06-09 Thread W. Chen
Hi Guys, Is there an API that I can use to determine if a file is valid PDF file. We have an application that receives and processes PDF files. Currently we use file name to determine if we should process a file, i.e if filename is xxx.pdf, we will going to process it, otherwise, just ignore i