Saving Document in Folder Name
How to save a file using the folder name? In the below code i want to replace the "test" with my source PDF folder name. How to do that?
newDoc.saveAs("/c/temp/test.xlsx", "com.adobe.acrobat.xlsx");
How to save a file using the folder name? In the below code i want to replace the "test" with my source PDF folder name. How to do that?
newDoc.saveAs("/c/temp/test.xlsx", "com.adobe.acrobat.xlsx");
Thanks Thom for your reply. If the source PDF is current document then how to proceed?. In case if i don't know my source PDF folder how to proceed on this?
If the source is the current pdf then you just split the folder path and extract the last folder name.
Here's an article that shows a technique for manipulating path elements:
https://acrobatusers.com/tutorials/splitting-and-rebuilding-strings
If you know the source PDF, then you know the folder. The full path to the PDF is a document property, as shown in the article.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.