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

Access issue: doc.importdataobject("myPDF","/c/temp/outfile.pdf");

kecsushil
Level 1
Level 1

Hi,

I have a pdf created in livecycle designer es 8.2 and coded in Javascript. Currently this pdf is placed in the shared location from where users can access. When users hit the submit button then PDFCreator installed on user's machine creates a scanned pdf and place it on the local machine. This scan pdf is then embedded into the main pdf using privileged JavaScript function (doc.importdataobject("myPDF","/c/temp/outfile.pdf");).
Now, I want to place the main pdf on the server so that user can access the pdf using URL.
When user access the pdf using URL and hit the submit button, it's creating scan pdf on the user machine, but it's failing on the import statement -doc.importdataobject("myPDF","/c/temp/outfile.pdf");.


I am not sure whether this is access issue or I need to do something else.

The path /c/temp/outfile.pdf must be local machine path but I am assuming import statement is looking on server directory.

If I remove the path from the import statement, it pops up a dialog box for browse. After selecting the outfile.pdf it works fine. But I can't ask users to follow this process.


email: kec.sushil@gmail.com

Please help.

Thanks - Sushil

0 Replies