Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

AEM forms Workbench - XFA PDF to flattening PDF

abhilashy577678
Level 2
Level 2

Hi All,

We want to convert AEM generated output PDF to TIFF format. 

The form has XFA scripts like rules/hiding logic added in designer and this form is process from workbench workflow process to generate PDF output using gerneratePDFoutput activity. 

Later using toimage service activity to convert to TIFF. But the converted TIFF is not same as the generated PDF output.

All the XFA based rules/hiding logic from the form are being ignored which convertion/trasformed to TIFF (also tried postscript, PDFA).

 

Issue - the generated PDF is not completely FLAT causing the convertion issue.

Can anyone help me in creating flat pdf in first place or after creating PDF help to convert to flat PDF ?

 

Let me know in case you need more info

 

Thanks much for ua support

@aemforms_forums @adobelivecyclet @LiveCycle @workbench 

AEM 6.5 LiveCycle workbench
3 Replies
Mayank_Gandhi
Community Advisor
Community Advisor

 

@abhilashy577678 The process/approach you have taken is right. Now if you can give a test file or screenshot that would help me share the next steps.

abhilashy577678
Level 2
Level 2

Hi Mayank,

Thanks for your response.

I am not sure if i can share screenshot. Basically the javascripts codes are running in PDF generation but when converted to any format like TIFF,PS,PDF/A the java scripts applied on form are not running. Not sure why its been excluded during convertion process.

Two options i am exploring on -

1. Remove all XFA tags while generation of the PDF itself.

2. During conversion to any format it should include the code running in PDF.

 

Note - These Java scripts codes are written in form script area with Initialize and doc ready event. Do you thing any configuration changes in Admin UI need to be performed ??

 

please let me know for any pointers

 

 

Mayank_Gandhi
Community Advisor
Community Advisor
you need to make the pdf flat first. If the pdf is flat it should open in browser plugin as well. Covert that pdf to tiff.