in reply to Win32::OLE Access Acrobat file menu?

try to adapt this excel example
# Save as PDF $Excel->ActiveWindow->SelectedSheets->PrintOut({ Copy => 1, ActivePrinter => 'Acrobat PDFWriter'}); # Save as Excel $Book->SaveAs({Filename =>'C:\report\results\check_all.xls', FileFormat => xlWorkbookNormal}); $Book->Close(); $Excel->Quit();
or this vb Save Current PDF File Using OLE in VB Application
Set AcroExchApp = CreateObject("AcroExch.App") Set AVDoc = AcroExchApp.GetActiveDoc Set PDDoc = AVDocTarget.GetPDDoc If PDDoc.Save(PDSaveFull, "c:\test.pdf") = False Then MsgBox "Unable to save image" Else: MsgBox "The file is saved"
Might be easier if you used an ole browser to see adobe API

Replies are listed 'Best First'.
Re^2: Win32::OLE Access Acrobat file menu?
by cormanaz (Deacon) on Jan 30, 2009 at 16:07 UTC
    First example uses Save As method in excel. Second example saves as PDF. Ole browser shows no suitable method. I've checked the Acrobat API docs pretty carefully, and they just don't seem to have the needed method :-(