These options control the security options available in creation of PDF output files. Table values in bold text are the default value for that setting.

 

Sample Profile

 

<?xml version="1.0" encoding="utf-8"?>

<Profile Type="0"

         DisplayName="Create secure PDF "

         Description ="Create secure PDF, no password">

  <Settings>

 

    <!-- Output file options -->

    <add Name ="Devmode settings;Color" Value="1"/>

    <add Name ="Save;Output File Format" Value="PDF Multipaged"/>

    <add Name ="Save;Prompt" Value="0"/>

    <add Name ="Save;Overwrite" Value="1"/>

    <add Name ="PDF File Format;PDF Standard" Value="None"/>

    <add Name ="PDF File Format;Use compression" Value="1"/>

    <add Name ="PDF Security;Use Security" Value="1"/>

    <add Name ="PDF Security;Encrypt Level" Value="1"/>

    ...

    

  </Settings>

</Profile>

 

 

Code Sample - C#

 

PNDocConvQueueServiceLib.PNDocConvQueueItem item = null;

 

// Create the conversion item

item = new PNDocConvQueueServiceLib.PNDocConvQueueItem();

 

// Set conversion settings

item.Set("Devmode settings;Color", "1");

item.Set("Save;Output File Format", "PDF Multipaged");

item.Set("Save;Prompt", "0");

item.Set("Save;Overwrite", "1");

item.Set("PDF File Format;PDF Standard", "None");

item.Set("PDF File Format;Use compression", "1");

item.Set("PDF Security;Use Security", "1");

item.Set("PDF Security;Encrypt Level", "1");

 

...

// convert the file

item.Convert("Microsoft Word",

             @"C:\Test\Report.docx",

             @"C:\Test\Out\ConvertedReport");

 

Code Sample - VB.NET

 

Dim item As PNDocConvQueueServiceLib.IPNDocConvQueueItem

 

 ' Create the conversion item

item = New PNDocConvQueueServiceLib.PNDocConvQueueItem()

 

' Set conversion settings

item.Set("Devmode settings;Color""1")

item.Set("Save;Output File Format""PDF Multipaged")

item.Set("Save;Prompt""0")

item.Set("Save;Overwrite""1")

item.Set("PDF File Format;PDF Standard""None")

item.Set("PDF File Format;Use compression""1")

item.Set("PDF Security;Use Security""1")

item.Set("PDF Security;Encrypt Level""1")

...

' convert the file

item.Convert("Microsoft Word", _

             "C:\Test\Report.docx", _

             "C:\Test\Out\ConvertedReport")

 

 

Conversion Settings - PDF Security

Name:

PDF Security;Use Security

 

Values:

0 - No PDF security

1 - Enable PDF security

 

Name:

PDF Security;Encrypt Level

 

Values:

Values:

0 - Sets 40-bit encryption level

1 - Sets 128-bit encryption level

 

Name:

PDF Security;Can Copy

 

Values:

0 - Do not allow users to copy text and graphics

1 - Allow users to copy text and graphics

 

Name:

PDF Security;Can Print

 

Values:

0 - Do not allow users to print the document

1 - Allow users to print the document

 

Name:

PDF Security;Can Change Doc

 

Values:

0 - Do not allow users to change the document

1 - Allow users to change the document

 

Name:

PDF Security;Can ChangeOther

 

Values:

0 - Do not allow users to add or change comments and form fields

1 - Allow users to add or change comments and form fields

 

Name:

PDF Security;User Pswd On

 

Values:

0 - No user password required to open document

1 - User password required to open document

 

Name:

PDF Security;User Pswd

 

Values:

The user password.

 

Name:

PDF Security;Owner Pswd On

 

Values:

0 - No owner password required to change document

1 - Owner password required to change document

 

Name:

PDF Security;Owner Pswd

 

Values:

Owner password