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
Copy link to clipboard
Copied
Is the new file saved in the same folder as the original?
Copy link to clipboard
Copied
Yes