473,324 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 2530

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Marcus | last post by:
I am having some problems with trying to perform calculations on time fields. Say I have a start time and an end time, 1:00:00 and 2:30:00 (on a 24 hour scale, not 12). I want to find the...
4
by: Rune Johansen | last post by:
Hi. I'm doing some image manipulation in an applet using the example code on this page: http://www.akop.org/art/pixels3.htm However, I really want an application rather than an applet, I just...
3
by: Sam | last post by:
Hello, in my coding work I'm going to using a lot of matix manipulation, just basic matrix addition, multiplication, Gaussian method solving for roots, least square... But I don't know if there's...
9
by: I. Kobrinsky | last post by:
I'm new here. I started a personal password-program, a trial that includes username, logincounter and password. So my intention is to hide pwd while tipping. So I'm thinking about two popular...
9
by: Job | last post by:
Hi, I would like to find out what ASP/ASP.net can do with image manipulation. Does ASP have built in functions (eg. after upload to server) to manipulate images, like rotate, scale, crop etc.?...
4
by: WaterWalk | last post by:
Hello, I'm currently learning string manipulation. I'm curious about what is the favored way for string manipulation in C, expecially when strings contain non-ASCII characters. For example, if...
8
by: shotokan99 | last post by:
i have this situation. i have a query string: http://www.myquerystring.com?x=xxxxx what this url does is it will return or start downloading a .png file. what i wanted to do is trap this png...
0
by: L'eau Prosper Research | last post by:
Press Release: L'eau Prosper Research (Website: http://www.leauprosper.com) releases new TradeStation 8 Add-on - L'eau Prosper Market Manipulation Profiling Tools Set. L'eau Prosper Market...
0
by: L'eau Prosper Research | last post by:
NEW TradeStation 8 Add-on - L'eau Prosper Market Manipulation Profiling Tools Set By L'eau Prosper Research Press Release: L'eau Prosper Research (Website: http://www.leauprosper.com) releases...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.