use PDF; my $pdf=PDF->new($filename); print "$filename is a PDF file\n" if ($pdf->IsaPDF);
Added: If a PDF contains no text, is it still a PDF? Of course.
Updated again: A PDF starts out with %PDF if it helps any...
D'oh! I totally misunderstood your question... I apologize.
In reply to Re: Detecting PDF content
by Mr. Muskrat
in thread Detecting PDF content
by Rich36
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |