These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Using FDF script to password protect PDF

rossbc
Registered: Feb 26 2009
Posts: 3

I am new to this so please excuse my ignorance.

I figured out how to use FDF script to do a "mail merge" using a PDF document as a source. My application creates a PDF stream that it stores into a database. The "owner" of the database record logs into a website and clicks a link to download/view the PDF.

What I am trying to do is to add password protection to the outputted PDF document so that the user has to "unlock" the PDF before viewing - another level of security for our site since these documents contain some sensitive information - like SSN.

Is there any way to do this? Here's a sample of my FDF file thus far...

%FDF-1.2
%âãÏÓ
1 0 obj<]
/Fields[
<>
<>
<>
<>
<>
<>
]>>>>
endobj
trailer
<>
%%EOF

My Product Information:
Acrobat Pro 6.0, Windows
plevy
Expert
Registered: Jul 8 2008
Posts: 80
I don't know of a way to protect the document without either opening it in Acrobat, adding password or other security, and resaving, or using some sort of SDK, library, or server to write a program that would do so.