0
Explorer
,
/t5/acrobat-sdk-discussions/import-data-object-not-working/td-p/8699111
Nov 14, 2016
Nov 14, 2016
Copy link to clipboard
Copied
I need to import a csv file as an attachment from a file directory in a pdf document.
This is the file directory location:
C:\Temp\trm\output.csv
Here is the script:
this.importDataObject("Unknown","c/Temp/trm/output.csv");
When the script is run from the console, the console reports back as false.
I think the problem may be with defining the cName?
Any assistance most appreciated thank you.
TOPICS
Acrobat SDK and JavaScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Community Expert
,
Nov 15, 2016
Nov 15, 2016
Add a forward-slash at the start of your file-path.
Community Expert
,
/t5/acrobat-sdk-discussions/import-data-object-not-working/m-p/8699112#M37182
Nov 15, 2016
Nov 15, 2016
Copy link to clipboard
Copied
Add a forward-slash at the start of your file-path.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Jo_2013
AUTHOR
Explorer
,
LATEST
/t5/acrobat-sdk-discussions/import-data-object-not-working/m-p/8699113#M37183
Nov 15, 2016
Nov 15, 2016
Copy link to clipboard
Copied
Thank you very much for your assistance. Working perfectly now, importing the csv file as an attachment to the pdf. this.importDataObject("output","/c/Temp/trm/output.csv");
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

