Jump to content

Creating a locked/secured PDFs


Recommended Posts

Hi,

 

I have an input text file which I use with a template to create set of individual output pdf files. Is there a way or command I can lock these pdfs created. I am creating these pdfs for users and need to secure them.

 

Please advise.

 

Thanks

Link to comment
Share on other sites

  • 1 year later...

The Composition Settings Doc Info tab and page 104 of the FusionPro VDP Creator User Guide would lead me to believe that it is possible to set a password to open the document and another to edit the document.

 

Can we allow the PDF to be opened without a password and still restrict printing, editing, etc.?

 

We are unable to leave the "Open the Document" field blank and set a "Change Security Options" password only.

 

When we set both passwords and check all the security options, we need a password to open the PDF but can edit and print when it is open.

 

We set the passwords to this:

Open the Document = 9999

Change Security Options = 3333

 

The CFG file showed this:

AllowChange=No

AllowCopy=No

AllowNote=No

AllowPDFPrint=No

OwnerPassword=9999

ChangePassword=

 

http://www.reallybenoticed.com/fusionpro/SecuritySettings.jpg

 

Is there a way around this for composition in FusionPro VDP Creator?

 

Note:

Manually editing the CFG file and composing in FusionPro VDP Producer works:

 

AllowChange=No

AllowCopy=No

AllowNote=No

AllowPDFPrint=No

OwnerPassword=

ChangePassword=9999

 

Thank you.

Edited by David Miller
Composing in Producer works, composing in Creator does not.
Link to comment
Share on other sites

The passwords can be set in JavaScript as well, in FusionPro 8.0 and later. This is handy if you're chunking your output to multiple files. You can set the password for each output file based on a field value in the input data for the record, like so (in OnRecordStart):

FusionPro.Composition.OutputFile.openDocPassword = Field("Name");
FusionPro.Composition.OutputFile.changeSecurityPassword = Field("Name");

This is documented in the User Guide, in the section, "Setting password in JavaScript."

 

It's not just the passwords either. You can set all the options from the Doc Info tab of the Composition Settings dialog in JavaScript, including the security options (to disallow printing and such) and the title, subject, author, and keywords, with properties of the FusionPro.Composition.OutputFile object. You can see all the properties on the Building Blocks dialog, on the Objects tab, under Objects -> FusionPro (Global) -> Composition -> PDF Output.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...