473,395 Members | 1,584 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,395 software developers and data experts.

PDF protection on-the-fly

Hi all,

I've been wrestling around with finding a way of password-protecting
existing PDF documents with custom passwords, all on-the-fly, using PHP.

I've found some commercial implementations of doing this, but was
looking for something without a price tag attached to it. :)

I came across the FPDF library, but that only creates PDFs, not modify
existing ones. Further searching around revealed FPDI, a couple of
classes that can read existing PDFs and modify them. However that
didn't give me the security features I was looking for.

Finally, I came across another class, FPDF_Protection, which DOES apply
password-protection as well as encryption for creating PDF documents..
The problem is that there isn't any easy way to marry the two together..
FPDI uses some of its own custom classes (ie FPDI_tpl 'templates'),
and FPDF_Protection is just extended from the FPDF class.

I'm thinking of mashing the two classes together somehow
(FPDF_Protection and FPDI), but if there's an easier way around it.... :)

Has anyone had experience doing this sort of thing? (Password-protecting
existing PDFs on-the-fly) If so, what was your solution?

Scotty
Aug 2 '05 #1
4 6892
ezpdf (http://www.ros.co.nz/pdf/)

:)

Aug 2 '05 #2
Jan
Scotty,

first be informed that FPDI do not modify any existing documents. It'll
"only" give the posibility to use single pages of an existing document
as a kind of template. The resulting document is a completely new
created document.

Some weeks ago I've adapted the FPDF_Protection class to
FPDI_Protection for use with FPDI. You can find it also on the project
homepage of fpdi: http://fpdi.setasign.de in the download section (at
the bottom (-; )

If you want real/direct (and also faster (-;) encryption of existing
documents with up to 128bit we also offer commercial PHP-APIs for PDF
processing. But for sure there's a price attached to it... ;-) You can
see the API here:
http://www.setasign.de/SetaPDF/demos...e/index_en.php

If you're interrested in, don't hesitate to contact me.

Jan

Aug 5 '05 #3
sorry to my poor english, i'm spanish
I want to open a pdf protected file that I know its password for write
in a header in all pages using FPDI .. How I can open a pdf
protected?

thank for all

Dani.
http://eye.cc -php- web design
Aug 14 '05 #4
Jan
trufito schrieb:
I want to open a pdf protected file that I know its password for write
in a header in all pages using FPDI .. How I can open a pdf
protected?


Doesn't make sense at all... FPDI does NOT modify any PDF! So you'll
never get the possibility to ADD any Content to a pdf with FPDI. So
your currently protected PDF will never be seen by anyone... why did
you protect it? :-) Just use an unprotected PDF as source file and
protect the resulting one with FPDI_Protection.

Greetings
Jan

Aug 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Yang | last post by:
Anyone know a way to download an image using php which has a hotlink protection ?
0
by: Max | last post by:
I have written a program in Visual Basic for distribution. I am looking for an internet based registration service and found SecureWrap software protection. Has any one used it? ...
2
by: EvieS | last post by:
Is it common for ASP.NET to install it's own user account with password protection on your computer?
4
by: M-Hero | last post by:
I would like to know how to set protection on specific columns. I know we can protect Workbook and Worksheet, but I have no idea how I can protect specific columns. Thank you.
7
by: dm4714 | last post by:
Hi -- does anyone know of any good VB.NET software registration, protection and activation components. I guess I'm looking for something similar to http://www.ionworx.com/solutions.html
10
by: Mitchell Vincent | last post by:
I'm in the market for a new software licensing system to protect my shareware. Can anyone make some suggestions of protection/licensing systems (especially for .NET, but not exclusively)? My...
9
by: John | last post by:
Hi, I would like to protect my software from copying. What are best tools for it (hardware protection is not an option), do you have some reccomendation for protection or third party software...
0
by: vedran_dekovic | last post by:
Hi, For people who using ftputil: Have ftputil any protection(SSL......) or any other protection?????
2
by: Hexadane | last post by:
Hi i need some help with password protection on a switchboard button.
3
by: visweswaran2830 | last post by:
Hi, I created Write Protection for USB Drive by changing Registry value. Same as I want to create Read Protection for USB Drive, Is it possbile.... Note: Without Using Any External...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.