I am trying to use Win32::OLE to print a PDF to the default windows
printer.
I have opened my file in the AcroExch.AVDoc object and am using the
PrintPagesEx method.
My Code:
$AVDoc->PrintPagesEx(1,5,2,True,True,False,True,True,PDAl lPages);
Method Parameters from the SDK:
long PrintPagesEx(long nFirstPage, long nLastPage, long nPSLevel, long
bBinaryOk,long bShrinkToFit, long bReverse,long bFarEastFontOpt, long
bEmitHalftones,long iPageOption);
I am getting a type mismatch error for argument 9 "iPageOption"
however according to the SDK the only 3 options for that value are
PDAllPages, PDEvenPagesOnly or PDOddPagesOnly.
Here are the instructions from the SDK for that argument:
iPageOption - Pages in the range to print. Must be one of: PDAllPages,
PDEvenPagesOnly, or PDOddPagesOnly.
Thanks in advance for any help. -Rich