Saving PDF as Plain text
Hello. I am attempting to save all PDFs within a folder as text. To do this i am running an action calling a JavaScript and using this.saveAs
When the script runs attempting to save as Plain text, some PDFs fail as they cannot be tagged. I am therefore curious if a JS can be implemented such that it attempts to save as plain text, and if that fails save as accessible text.
this.saveAs("**filepath**”+ this.documentFileName + "_accessformat.txt","com.adobe.acrobat.accesstext");
this.saveAs("**filepath**”+ this.documentFileName + "_accessformat.txt","com.adobe.acrobat.plain-text");
