Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Import data object not working

Explorer ,
Nov 14, 2016 Nov 14, 2016

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
614
Translate
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

correct answers 1 Correct answer

Community Expert , Nov 15, 2016 Nov 15, 2016

Add a forward-slash at the start of your file-path.

Translate
Community Expert ,
Nov 15, 2016 Nov 15, 2016

Add a forward-slash at the start of your file-path.

Translate
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
Explorer ,
Nov 15, 2016 Nov 15, 2016
LATEST

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");

Translate
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