Is there a way to extractPages() as a different format? i.e. .docx.
I took a packet that's broken up in 7 different files and combined them all as one .pdf.
Problem is, I'm in the Navy and doing that is technically "altering an official document" (even though all I did was essentially copy/paste), which is a big no-no. The way it exists now, it takes longer to open/save/print each file than it does to do the work. So, I combined them and automated where I could, now it takes about 15 seconds vice 15 minutes+. But, I need to get the 4 .docx and 1 .xlsx back to their native format after they've been filled out in the master file, then knock the other 2 ranges out as .pdf.
I'm not sure how, but this worked perfectly once using:
this.extractPages(start,end,'/C/myPath/myFilename.docx', 'com.adobe.acrobat.docx');
In a button action. Which (as I understand it) shouldn't be possible. The file saved where I wanted, with the name I wanted, in the right format, and looked flawless. Then I made the huge mistake of leaving my work PC on overnight and came back to a frozen machine and lost the progress. The converted test file is still there though, so I know I'm not crazy.
In a perfect world, it would prompt the user to pick a save path and have the filename filled and ready to go, or use an alert to prompt for text input for the filename. I'd like to make it as easy as possible for my coworkers and future sailors assigned to this station. Wrapping it up in a button or even a folder level .js that can be executed from one would be perfect. Even if I need to have the filenames and paths static, it would be better than the current system. I also doubt most folks at my office will know how to open the converted files in Acrobat Pro, let alone convert them to the right format, so I need a way to do it for them or there's no point in creating the document at all. I got the okay to add .js files to other machines from the cybersecurity folks, so that's one battle I don't have to worry about if that's the only way to make this happen.
Honestly, any way at all to get those 5 ranges back into their intended format would make everything a lot easier on myself and my coworkers. Any suggestions, help, or general finger pointing in the right direction to learn for myself would be greatly appreciated. I've been all over these forums, stack overflow, any documentation I can get my hands on, Reddit, google in general, and Thom Parker's stuff (which is the only reason I know even the little bit I do! Thanks man!). I'm an Electrician's Mate with exactly one class in OOP, I have no idea what I'm doing (but would gladly trade JS advice for light bulb fixing advice!) and no direction from our IT folks. Seriously, anything at all to put me on the right path would be incredibly helpful and appreciated.
-OneConfusedSparky
