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