Saving a pdf in a variable in livecycle designer javascript

Avatar

Avatar

nbabi

Avatar

nbabi

nbabi

14-11-2020

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

capture javascript PDF variable

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Kosta_Prokopiu1

Employee

Avatar

Kosta_Prokopiu1

Employee

Kosta_Prokopiu1
Employee

16-11-2020

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

Answers (0)