Tip - How can I determine if a file is a PDF file?

Published  | Submitted by Galit Nevo
How can I determine if a file is a PDF file?

I am using PdfBox in Java to extract text from PDF files. Some of the input files provided are not valid and PDFTextStripper halts on these files. Is there a clean way to check if the provided file...

About Author

More by Galit Nevo

About This Tip

Posted: 9 years, 7 month(s) ago

97 Reads
0 Votes