Expand my Community achievements bar.

Formsservice doesn't recognize passwords in XCI

Avatar

Former Community Member

Hello,

with the LiveCycle ES3 FormsService a PDF should be generated from a XDP, and when the PDF is opened with the LiveCycle Designer the user should be prompted for a password. When the PDF is opened in the Adobe Reader no password-prompt should be displayed. Furthermore the Reader-Extensions should be enabled.

For the conversion of XDP to PDF I have a C# client, that invokes the ES3 via WSDL with MTOM-enabled binding. The XDP was created by the LiveCycle Designer 9/10.

As first step the FormsService renderPDFForm2 method is called, and as second step the ReaderExtensionsService applyUsageRights method is called. The following XCI is passed to the FormsService as absolute path:

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

          <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">

           <config xmlns="http://www.xfa.org/schema/xci/3.0/" xmlns:xfa="http://www.xfa.org/schema/xci/3.0/">

                     <present>

                               <pdf name="">

                                         <compression>

                                                   <compressObjectStream>1</compressObjectStream> <!-- 0|1 -->

                                                   <compressLogicalStructure>1</compressLogicalStructure> <!-- 0|1 -->

                                                   <level>9</level> <!-- 0-9, 0=no compression     1-9=flate compression -->

                                         </compression>

                                         <creator />

                                         <producer />

                                         <encryption>

                                                   <encrypt>1</encrypt>

                                                   <masterPassword>abc</masterPassword>

                                                   <userPassword>xyz</userPassword>

                                         </encryption>

                                         <linearized>1</linearized>

                               </pdf>

                     </present>

           </config>

</xdp:xdp>

The generated PDF has ReaderRights enabled, the properties show that it is encrypted, but it can be opened in the Designer without password prompt. It seems like the masterpassword- and userpassword-setting aren't recognized. When I set encrypt to 0, then no encryption is applied, so I assume the XCI in general will be recogniced.

When I omit the step for enabling the ReaderRights it won't work either. Also turning of the default XCI settings in the configuration of the FormsService won't work

The ES3 is the trial-version, default Turnkey was installed.

Can anybody give me some hints why the passwords aren't applied to the resulting PDF?

Many thanks in advance.

Cheers,

gfoidl

0 Replies