Adobe Acrobat DC Pro and Javascript weird behaviour

New Here ,
Sep 16, 2022 Sep 16, 2022

Copy link to clipboard

Copied

Hello,

 

I'm seeing a weird behaviour when running some javascript code in Adobe Acrobat Pro DC (version 2022.002.20212 64-bit).

I open a pdf file in Adobe Acrobat (created from a blank page in Microsoft Word) called "a.pdf", then I open the Javascript Console and run the following code:

this.importDataObject("myData", "./Attachments/Report.pdf")

It works and the file "Report.pdf" is attached to file "a.pdf".

 

Then if I make a copy "a.pdf" (original file) and rename it as "abc.pdf", then I open "abc.pdf" in Adobe Acrobat, open the Javascript Console and run the following code:

 

this.importDataObject("myData", "./Attachments/Report.pdf")

 

 

It won't work. Result in Javascript console is "true" but it doesn't attach the file.

 

Do you have any ideas of what's happening?

Thanks

TOPICS
Edit and convert PDFs , General troubleshooting , JavaScript

Views

30

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 17, 2022 Sep 17, 2022

Copy link to clipboard

Copied

Is the new file saved in the same folder as the original?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 17, 2022 Sep 17, 2022

Copy link to clipboard

Copied

LATEST

Yes

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines