These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Create Text File

jdaniels
Registered: Aug 18 2010
Posts: 2

I need to create a text file using javascript and write information obtained while the javascript is running to the created text file. Code examples will help.

My Product Information:
Acrobat Pro 8.0, Windows
try67
Online
Expert
Registered: Oct 30 2008
Posts: 2399
Use the Data object. Read the reference files for more info, including examples.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

jdaniels
Registered: Aug 18 2010
Posts: 2
I see how to create a text file within the pdf document but I need to create a text file outside of the pdf document.
try67
Online
Expert
Registered: Oct 30 2008
Posts: 2399
You can't. But you can create a file within Acrobat and then export it.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You could use the 'report' object to create a PDF report. You would have to save the report as a PDF file and then open that file and perform a "save as" to a text file.

George Kaiser