Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Saving a pdf in a variable in livecycle designer javascript

Avatar

Level 2

Dear Community 

 

   Good day! How are you ? 

 

   Is it possible to store pdf file in a variable ( type rawstring ) in Adobe live cycle designer ? can we use doc object if yes how ?

 

Best Regards

Naim

1 Accepted Solution

Avatar

Correct answer by
Employee

it depends on what it is that you want to do. The document as a pdf cannot be put into a variable. The doc object (coming from the Acro JS) can be assigned to a XFA Javascripting variable like that:

var myDoc = event.target;

Then you can use properties and functions (not all may work). E.g. myDoc.importDataObject("xx"); to get an attachment in the PDF...

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

it depends on what it is that you want to do. The document as a pdf cannot be put into a variable. The doc object (coming from the Acro JS) can be assigned to a XFA Javascripting variable like that:

var myDoc = event.target;

Then you can use properties and functions (not all may work). E.g. myDoc.importDataObject("xx"); to get an attachment in the PDF...

Avatar

Level 2
well I am trying to pass the digitaly signed pdf to webservice variable as a rawstring.