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

How can I export the content of pdf-forms into a .csv-file?

New Here ,
May 30, 2019 May 30, 2019

How can I export the content of pdf-forms into a .csv-file (using adobe acrobat pro DC, version 2019)? Thanks! T

TOPICS
Edit and convert PDFs
8.3K
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
1 ACCEPTED SOLUTION
Community Expert ,
May 31, 2019 May 31, 2019

try67  wrote

To export it as a CSV file you would need a script, but you can export it as a tab-delimited text file.

Follow these instructions: Collect and manage PDF form data, Adobe Acrobat

Hi

Under the heading “Merge exported data files to a spreadsheet” in your link, it opens in Excel as a .csv file called report.csv by default. You don’t need a script. (Your script may work even better — I know you are a master of scripts!)

To hjpa74533426 : just be sure not to overwrite “report.csv” the next time you do this. In the Prepare Form toolbar, you start with More > Merge Data Files into Spreadsheet.

~ Jane

View solution in original post

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
Community Expert ,
May 30, 2019 May 30, 2019

To export it as a CSV file you would need a script, but you can export it as a tab-delimited text file.

Follow these instructions: Collect and manage PDF form data, Adobe Acrobat

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
Community Expert ,
May 31, 2019 May 31, 2019

try67  wrote

To export it as a CSV file you would need a script, but you can export it as a tab-delimited text file.

Follow these instructions: Collect and manage PDF form data, Adobe Acrobat

Hi

Under the heading “Merge exported data files to a spreadsheet” in your link, it opens in Excel as a .csv file called report.csv by default. You don’t need a script. (Your script may work even better — I know you are a master of scripts!)

To hjpa74533426 : just be sure not to overwrite “report.csv” the next time you do this. In the Prepare Form toolbar, you start with More > Merge Data Files into Spreadsheet.

~ Jane

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
Community Expert ,
May 31, 2019 May 31, 2019

That's a good idea!

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
Participant ,
Mar 10, 2024 Mar 10, 2024
LATEST

Unfortunately the answers so far don't really help to really answer the question.

What you really need to do in order to get a predictable CSV from your PDF form field data, having full control, is the following:

Create a JavaScript which you can start, for example, by using the "Option" area of a "Button". (All JavaScript-related information can be found here: https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html .)

Within this JavaScript, you iterate through all form fields using eg:

   for ( i = 0; i < this.numFields; ++i ) {
      theField = this.getField(this.getNthFieldName(i));
      // acquire eg the Field's name and value and write it to a string (9 = TAB; D = Return):

      myCSV = myCSV + theField.name + "\u0009" + theField.value + "\u000D";

      ...

   }

Then, you create a data object and have it exported, having opened a dialog window to let the user choose the CSV's location, eg like this:

   this.createDataObject("output.csv", myCSV);

   this.exportDataObject({ cName:"output.csv", nLaunch:"1"});

 

I hope you can get the principle and now tailor you CSV to your needs.

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