Programmatically Identify if the PDF is static or dynamic format | Community
Skip to main content
New Participant
August 24, 2022
Solved

Programmatically Identify if the PDF is static or dynamic format

  • August 24, 2022
  • 1 reply
  • 1133 views

Hi Developers/Engineers,

 

I have a question regarding uploading a PDF document and identifying it to see if it is a Static or Dynamic PDF file. I saw a similar old question below, but is there a different way of handling this use case? 

Solved: Identify if the form is of type Static PDF Form or... - Adobe Experience League Community - 156266

How can this be done in JAVA or JS. The code already exists to upload the PDF form to the file system, but how can the PDF form properties be read to identify if it is static or Dynamic. When PDF form is opened in the Designer 6.5's File | Form Properties | Server, the 'Default PDF Render Format' shows if the PDF is Dynamic XML Form or Static Form. Is there a way to read this Form property programmatically?

Thanks for the help.

Leena

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Pulkit_Jain_

@aemuser001 

You can retrieve the information about the formType using this API[0]. More details about the set of methods are here[1]. You can also get this information using Workbench process using the same service.

I can retrieve the Form type Dynamic or static using this method.

Hope this helps!

 

[0] - https://developer.adobe.com/experience-manager/reference-materials/6-4/forms/javadocs/com/adobe/fd/pdfutility/services/client/PDFPropertiesOptionSpec.html 

[1] - https://help.adobe.com/en_US/AEMForms/6.1/WorkbenchHelp/WS92d06802c76abadb-1cc35bda128261a20dd-6baf.2.html 

1 reply

Pulkit_Jain_
Pulkit_Jain_Accepted solution
Employee
August 24, 2022

@aemuser001 

You can retrieve the information about the formType using this API[0]. More details about the set of methods are here[1]. You can also get this information using Workbench process using the same service.

I can retrieve the Form type Dynamic or static using this method.

Hope this helps!

 

[0] - https://developer.adobe.com/experience-manager/reference-materials/6-4/forms/javadocs/com/adobe/fd/pdfutility/services/client/PDFPropertiesOptionSpec.html 

[1] - https://help.adobe.com/en_US/AEMForms/6.1/WorkbenchHelp/WS92d06802c76abadb-1cc35bda128261a20dd-6baf.2.html 

New Participant
August 24, 2022

Hi Pulkit,

Thanks for the quick response. Is it possible to have a sample code that I can test and apply in my environment..

Thanks,

Leena

Pulkit_Jain_
Employee
August 24, 2022

@aemuser001 

Please check your DM.