By Date: <-- -->
By Thread: <-- -->

Detect PDF File



If the file starts with "%PDF-1." there a good chance that it is a pdf.

----- Original Message ----- From: "Dan McKeon" <dmckeon (at) ameritas.com>
To: <itext-questions (at) lists.sourceforge.net>
Sent: Thursday, February 02, 2006 7:13 PM
Subject: [iText-questions] Detect PDF File



I am writing a program to convert an input file to PDF.  Is there a way to
examine the input file to determine if it already is PDF?

****
This message may contain confidential information intended only for the use of the
addressee(s) named above and may contain information that is legally privileged.
If you are not the addressee, or the person responsible for delivering it to the
addressee, you are hereby notified that reading, disseminating, distributing or
copying this message is strictly prohibited. If you have received this message
by mistake, please immediately notify us by replying to the message and delete
the original message immediately thereafter. Thank you.
****





------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ iText-questions mailing list iText-questions (at) lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions