http://qs321.pair.com?node_id=1065005


in reply to use PDF; woes

I ran it like this:
#!/usr/bin/perl -l use strict; use warnings; use PDF; my $file = '/root/abitl.pdf'; my $pdf = PDF->new; $pdf->TargetFile($file); $pdf->LoadPageInfo; if ( $pdf->IscryptPDF ) { print "File is password-protected"; } else { print "File is not password-protected"; }
Note: You did use the IscryptPDF method correctly. The documentation for PDF incorrectly lists it as IscryptedPDF.