in reply to Detecting PDF content
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.
|
---|