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

ShrinkToFit Property

Gets/Sets the flag that indicates whether to shrink the width of the page to fit into the selected paper size.

bool ShrinkToFit { get; set; }

Property ShrinkToFit As Boolean

def getShrinkToFit(self)
def setShrinkToFit(self, value)
boolean getShrinkToFit() throws PrinterException
void setShrinkToFit(boolean value) throws PrinterException
function getShrinkToFit() 
function setShrinkToFit($value) 
BclPrnResult GetShrinkToFit(BclPrinter* pPrinter, BclBool* poutVal);
BclPrnResult SetShrinkToFit(BclPrinter* pPrinter, BclBool newVal);
Property ShrinkToFit As Boolean

bepprint +IE -#shrinkToFit [on|off]

Type

Boolean

Remarks

This property is user-global, and it cannot be changed in a thread-safe way. The Save method must be called to save this setting to the registry.

Example Usage

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

Set oPrintJob = oPrinter.IEPrintJob
Set oIESetting = oPrintJob.IESetting

oIESetting.ShrinkToFit = True
oIESetting.Save

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