Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using method saveAs of JSObject

Status
Not open for further replies.

sglab

Technical User
Jul 29, 2003
104
US
Hi All,

I have a question for you and hope someone has already figured out the issue I am having.
I am trying to automate some tasks in Acrobat using JSObject and VBA - or, VB -, and while everything seems to be working, I can't convert PDF I am working with to JPEG, using method saveAs of JSObject.
Not only I get an "Application defined or object-defined error", VB editor keeps changing "saveAs" to "SaveAs" in the line that gives me the error and I am not sure if that is the reason.
I have looked on the Web, but haven't found one confirmed solution to this problem. So, if anybody could provide a line - or lines - of working VB code, which invokes this method, I'd really appreciate it.
I am using something like this:

jso.saveAs "/D/Temp/" & fName & ", com.adobe.acrobat.jpeg"

or something like that:

jso.saveAs "D:\Temp\" & fName & ", com.adobe.acrobat.jpeg"

with the same result.

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top