I forgot to ask before. What attributes would you use in your javasript protected code to save the PDF as a CSV file?
The provided links in your previous posts will have the answer.
The prior post:
You want to save the whole PDF as a csv file even if it is full text? The csv file is for spreadsheets only not text files.
If you have a form, you can export the form data as a tab delimited file of form field names and values, exportAsText.
Since the documentation only shows a csv export format for XML forms, it is not available in a general sense for PDFs in general.