470,815 Members | 1,329 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

pdf manipulation

I have a client who would like to host a PDF on his site, but make it so
that each individual that downloads it has to open it with a separate
username and password. My question is if any php classes or libraries have
the capabilities to load an existing PDF into memory and basically add in
the login portion of it dynamically. Or, if anyone knows of a 3rd party
executable that can handle this, that would be great too.

--
thnx,
Chris Mosser
Jul 17 '05 #1
8 2414

"Chris Mosser" <cmosser_at_comcast_dot_net> wrote in message
news:2I********************@comcast.com...
I have a client who would like to host a PDF on his site, but make it so
that each individual that downloads it has to open it with a separate
username and password. My question is if any php classes or libraries have the capabilities to load an existing PDF into memory and basically add in
the login portion of it dynamically. Or, if anyone knows of a 3rd party
executable that can handle this, that would be great too.

--
thnx,
Chris Mosser


Where are the usernames & passwords maintained ?
Just place the pdf in its own subdirectory and protect that directory with
the web server.


Jul 17 '05 #2


--
Chris Mosser
<xyzzy> wrote in message news:KJ********************@comcast.com...

"Chris Mosser" <cmosser_at_comcast_dot_net> wrote in message
news:2I********************@comcast.com...
I have a client who would like to host a PDF on his site, but make it so
that each individual that downloads it has to open it with a separate
username and password. My question is if any php classes or libraries

have
the capabilities to load an existing PDF into memory and basically add in the login portion of it dynamically. Or, if anyone knows of a 3rd party
executable that can handle this, that would be great too.

--
thnx,
Chris Mosser


Where are the usernames & passwords maintained ?
Just place the pdf in its own subdirectory and protect that directory with
the web server.


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

Chris Mosser
Jul 17 '05 #3

"Chris Mosser" <cmosser_at_comcast_dot_net> wrote in message
news:VM********************@comcast.com...


--
Chris Mosser
<xyzzy> wrote in message news:KJ********************@comcast.com...

"Chris Mosser" <cmosser_at_comcast_dot_net> wrote in message
news:2I********************@comcast.com...
I have a client who would like to host a PDF on his site, but make it so that each individual that downloads it has to open it with a separate
username and password. My question is if any php classes or libraries

have
the capabilities to load an existing PDF into memory and basically add in the login portion of it dynamically. Or, if anyone knows of a 3rd party executable that can handle this, that would be great too.

--
thnx,
Chris Mosser


Where are the usernames & passwords maintained ?
Just place the pdf in its own subdirectory and protect that directory with the web server.


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

Chris Mosser


Well then, the PHP group cant help. Looks like you are buying software.
http://www.toppdf.com/encryptpdf/


Jul 17 '05 #4
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
Jul 17 '05 #5
Chris Mosser wrote:
<xyzzy> wrote in message news:KJ********************@comcast.com...
"Chris Mosser" <cmosser_at_comcast_dot_net> wrote in message
news:2I********************@comcast.com...
I have a client who would like to host a PDF on his site, but make it so
that each individual that downloads it has to open it with a separate
username and password. My question is if any php classes or libraries

have
the capabilities to load an existing PDF into memory and basically add inthe login portion of it dynamically. Or, if anyone knows of a 3rd party
executable that can handle this, that would be great too.


Where are the usernames & passwords maintained ?
Just place the pdf in its own subdirectory and protect that directory with
the web server.


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


I believe the folks at http://www.phparch.com/ do that with their
publication. Maybe drop a line in that direction to see if you can get
answers.

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.

Jul 17 '05 #6

"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
Jul 17 '05 #7


"Justin Koivisto" <sp**@koivi.com> wrote in message
news:7p***************@news7.onvoy.net...
Chris Mosser wrote:
<xyzzy> wrote in message news:KJ********************@comcast.com...
"Chris Mosser" <cmosser_at_comcast_dot_net> wrote in message
news:2I********************@comcast.com...

I have a client who would like to host a PDF on his site, but make it sothat each individual that downloads it has to open it with a separate
username and password. My question is if any php classes or libraries
have
the capabilities to load an existing PDF into memory and basically add

in
the login portion of it dynamically. Or, if anyone knows of a 3rd partyexecutable that can handle this, that would be great too.
Where are the usernames & passwords maintained ?
Just place the pdf in its own subdirectory and protect that directory withthe web server.


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


I believe the folks at http://www.phparch.com/ do that with their
publication. Maybe drop a line in that direction to see if you can get
answers.

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.

thnx, I'll check it out
--
Chris Mosser
Jul 17 '05 #8
Regarding this well-known quote, often attributed to adamt's famous "Wed,
17 Dec 2003 13:33:24 GMT" speech:
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


Well, make the password their credit card number (or some other similarily
sensitive info) and watch that problem vanish!

book_password_is_MC-2837918827388210-EXP-0907.pdf, anyone?

--
-- Rudy Fleminger
-- sp@mmers.and.evil.ones.will.bow-down-to.us
(put "Hey!" in the Subject line for priority processing!)
-- http://www.pixelsaredead.com
Jul 17 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Marcus | last post: by
4 posts views Thread by Rune Johansen | last post: by
9 posts views Thread by I. Kobrinsky | last post: by
9 posts views Thread by Job | last post: by
4 posts views Thread by WaterWalk | last post: by
8 posts views Thread by shotokan99 | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.