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

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

1 Reply

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.