easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

PaperSize Property

Sets paper size.

prnMsoPaperSize PaperSize { set; }
Property PaperSize As prnMsoPaperSize ' WriteOnly
def setPaperSize(self, value)
void setPaperSize(prnMsoPaperSize value) throws PrinterException
function setPaperSize($value) 
BclPrnResult SetPaperSize(BclPrinter* pPrinter, BclPrnMsoPaperSize newVal);
Property PaperSize As prnMsoPaperSize ' WriteOnly
bepprint +Word -paper <paper>


prnMsoPaperSize (write-only)


Word does not use the paper size setting from printer driver. If you need to change the paper size, use this property instead. If you need to use a custom paper size, set this property to PRN_MSO_PAPER_CUSTOM, and set the PageWidth and PageHeight properties.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")

Set oPrintJob = oPrinter.WordPrintJob
oPrintJob.PaperSize = PRN_MSO_PAPER_A4

oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"