4 Replies Latest reply: Apr 27, 2012 12:01 AM by blackops_programmer RSS

    Flatten Dynamic pdf Files

    blackops_programmer Community Member

      Hi,

       

      I have a dynamic pdf file where users complete text fields, drop down lists and image fields. I also have lock all fields button script that I found in this forum to lock all form fields once user completes it. I was wondering is there a way to save or produce a flat static pdf file in the end? Sometime the dynamic form can increase in size due to the size of image inside the image field. So is there a way to flatten all its contents in the end and produce a smaller copy of that file? This way any user even with old version of adobe reader can open it  since its no longer a dynamic form.

       

      I know sometimes I can do it by printing it as an "adobe pdf" file but it does not allow me when have the permissions set-up. I dont want to give full access too. What permissions do I need to change to enable this? Is there another way to flatten a dynamic file in the end? Has anyone done this?

        • 1. Re: Flatten Dynamic pdf Files
          radzmar Community Member

          When you don't have LiveCycle Output (it can flatten XFA forms) then printing to PDF may be the only opportunity for you to reduce the file size.

          • 2. Re: Flatten Dynamic pdf Files
            blackops_programmer Community Member

            Thanks radzmar...sorry it took me awhile to get back to you.

             

             

            This is were I have a problem. Since these LC forms are password protected with a permission pwd to prevent the form from being edited, I am unable to print this form to PDF. It gives out the following message:

             

            %%[ ProductName: Distiller ]%%
            This PostScript file was created from an encrypted PDF file.
            Redistilling encrypted PDF is not permitted.
            %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
            %%[ Warning: PostScript error. No PDF file produced. ] %%
            

             

            I am guessing that above message is displayed since the document is restricted from being changed. So is there a way to allow a pdf printing with the permission password enabled?

             

            Alternatively, I thought another way to flatten pdfs might be to save the pdf file as jpeg image or any image file. But that doesn't work when the permission pwd is enabled as well since it shows the message "Insufficient permissions for image extraction". So whats the solution in this case? what are my options to flatten the pdf files in the end when the permission password is enabled?

            • 3. Re: Flatten Dynamic pdf Files
              radzmar Community Member

              Uhhh. The Distiller doesn't handle file protected with an owner or user password.

              The only way to bypass this it to select the "Print as Image" options in Advanced menu of Acrobats print dialog.

              • 4. Re: Flatten Dynamic pdf Files
                blackops_programmer Community Member

                excellent...that works! Thanks for that!