gachunt has asked for the wisdom of the Perl Monks concerning the following question:
... Concerns about PDF protection aside, that it's not very good, easily broken, etc ... I know it's not great, but I still have to do it.
I'm writing a script that watches a folder where documents are scanned into PDF format.
The script creates a thumbnail of the scanned PDF's first page using Imagemagick.
Next, it needs to protect the document from printing, but still allow opening WITHOUT being prompted for a password. That's where I'm stuck.
Using CAM::PDF, I have:
$pdf->setPrefs('password','password');But, that is protecting the PDF from opening as well.
When I try to use only one argument (and variations of) such as:
$pdf->setPrefs('password');<BR> $pdf->setPrefs('password','');<BR> $pdf->setPrefs('','password');
Then the PDF still prompts for a password when opening, or opens with blank white pages and the scanned text is gone.
Any suggestions? or alternates to CAM::PDF?
Using ActiveState, Windows 2012 Server
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Protect PDF from printing
by Anonymous Monk on Sep 26, 2015 at 00:28 UTC | |
by Anonymous Monk on Sep 26, 2015 at 00:31 UTC | |
by gachunt (Initiate) on Sep 26, 2015 at 23:21 UTC | |
by gachunt (Initiate) on Sep 27, 2015 at 01:33 UTC |