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

AutoAdjustPaperSize Property

Determines whether automatic page size adjustment is enabled. The default value is False.

Type

Boolean

Remarks

A value of True means that easyPDF ensures that no content gets cropped. If needed, it automatically adjusts the paper size, depending on the layout. If ContentOrientation is PRN_CONTENT_ORIENT_HORIZONTAL, the width of the paper may be increased. If ContentOrientation is PRN_CONTENT_ORIENT_VERTICAL, the height of the page may be increased. The paper size will never get smaller than what you specify.
A value of False means that the specified paper size is firm. It is possible that the content is too wide, which means part of it could be cropped. This is similar to the situation when your browser requires a horizontal scroll bar, except there are no scroll bars in printing.

If you enable AutoAdjustPaperSize, it is recommended to also enable HorizontalStitching.

Example Usage

'VB Sample Code

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

Set oPrintJob = oPrinter.IEExtendedPrintJob

oPrintJob.PageWidth = 8.5
oPrintJob.PageHeight = 11.0
oPrintJob.AutoAdjustPaperSize = True
oPrintJob.HorizontalStitching = True

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


//C# Sample Code

PrinterClass printerObj = new PrinterClass();

IEExtendedPrintJob printJobObj = printerObj.IEExtendedPrintJob;

printJobObj.PageWidth = 8.5;
printJobObj.PageHeight = 11.0;
printJobObj.AutoAdjustPaperSize = false;
printJobObj.HorizontalStitching = true;

printJobObj.PrintOut("http://www.pdfonline.com/", @"C:\test\output.pdf");