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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments

How to pass parameters to a PDF?


Not applicable
Dear All,

I have a problem in one of my forms. That is the description:

I need to add some info to my pdf, for example at the begining I need an ID, because at the form:ready method I connect to a DB to retrieve all my users data. I need also the name of the user who is executing the form and other variables.

My solution was to include it into the pdf name, (for example file_iddata_username.pdf). Mixing with the split instruction I was able to get them. But then my boss told me that we will need at least 5 parameters more.

Obviously we cannot add 7 parameters to the file name as I have explained before. So what I thought was to write a txt file and open it in my form using the javascript.

The fact was that iI have been searching about How to Open a file inside a form and I have found nothing. So it throws me some questions:

Has anybody open a file with a form? is this possible?

if not? What will be the solution to my problem?

Thanks in Advance.

0 Replies