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

SOLVED

Saving a pdf in a variable in livecycle designer javascript

nbabi
Level 2
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

capture javascript PDF variable
1 Accepted Solution
Kosta_Prokopiu1
Correct answer by
Employee
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
Kosta_Prokopiu1
Correct answer by
Employee
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

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