473,799 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Protectio n 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 6931
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
1584
by: Yang | last post by:
Anyone know a way to download an image using php which has a hotlink protection ?
0
3589
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? www.securewrap.com.au
2
1135
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
1207
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
1854
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
2776
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 budget is less than $500 with royalty free distribution licensing. BTW, I do know about the Shareware Starter Kit, but I'm afraid it will come too late for the launch of this newest product!
9
1916
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 that works? Thanks very much John
0
1213
by: vedran_dekovic | last post by:
Hi, For people who using ftputil: Have ftputil any protection(SSL......) or any other protection?????
2
1246
by: Hexadane | last post by:
Hi i need some help with password protection on a switchboard button.
3
2520
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 Software.....
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9543
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10488
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10237
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10029
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6808
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4144
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.