"adamt" <ad***@ueterep.netvoss.co.uk> wrote in message
news:pa****************************@ueterep.netvos s.co.uk...
On Tue, 16 Dec 2003 17:14:33 -0800, Chris Mosser wrote:
my client wants the people who download it to have to provide a password
when they try to open the file on their own computer...to help cutdown
on piracy
That won't stop piracy. Take a look on whatever napster clone /p2p
sharing network you like, and you'll find plenty of PDFs called things
like:
copyrighted_file_the_password_is_openSe5am3.pdf
I know, but it's what my client wants to do. I think I found a way using
pdflib, but my testing server is using an older version the from the pdflib
docs that I read. If anyone is using a newer version of pdflib (5.0+ I'm
guessing) can you please try this:
$pass = $_POST['pass'];
$pdf = pdf_new();
pdf_open_file($pdf, "some.pdf");
pdf_set_parameter($pdf, "userpassword", $pass);
I get an unknown parameter error but I am wondering if its just because my
server has pdflib 4.x.x and that parameter was not available then.
according to the pdflib manual, the parameter does exist.
can anyone help?????/////
--
Chris Mosser