0

I am using acrobat XI to write some script. What I would like to do is 1) get the current processed pdf file name and 2) just simply output a text file

var textValue = "test";
var doc = this.createDataObject({cName: "test.txt", cValue: textValue});
this.exportDataObject({cName: "test.txt", nLaunch:0});

This is working , but I would like to provided a fixed path , I tried saveAs but it seems only for pdf , exportAsText not working as well.

Are there any way to fix it? thanks

1
  • Flashdevelop setup prompts you to install flex framework for you. Try using that instead. Or else set the framework's path in the properties. Commented Dec 3, 2012 at 5:07

1 Answer 1

1

Official documentation says:

Example: Save the current document in rich text format:

this.saveAs("/c/myDocs/myDoc.rtf", "com.adobe.acrobat.rtf");

I guess you can replace RTF format with TXT (com.adobe.acrobat.plain-text):

this.saveAs("test.txt", "com.adobe.acrobat.plain-text"); // try this
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.