Expand my Community achievements bar.

SOLVED

Programmatically Identify if the PDF is static or dynamic format

Avatar

Level 5

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 - ...

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

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@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/p... 

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

View solution in original post

3 Replies

Avatar

Correct answer by
Employee Advisor

@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/p... 

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

Avatar

Level 5

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