PMSetScale(_:_:)
Sets the scaling factor for the page and paper rectangles.
Declaration
func PMSetScale(_ pageFormat: PMPageFormat, _ scale: Double) -> OSStatusParameters
- pageFormat:
The page format object whose scaling factor you want to set.
- scale:
The desired scaling factor expressed as a percentage. For example, for 50 percent scaling, pass a value of 50.0; for no scaling, pass 100.0.
Return Value
A result code. See Result Codes.
Discussion
You can call the function PMSetScale to change the scaling factor that appears when your application invokes the Page Setup dialog.
If you call PMSetScale after calling PMSessionPageSetupDialog, make sure you call PMSessionValidatePageFormat(_:_:_:) before you call PMSessionBeginCGDocument or PMSessionBeginDocument.
If you call this function after initiating a print job, the change is ignored for the current job.
See Also
Accessing Data in Page Format Objects
PMGetPageFormatExtendedData(_:_:_:_:)PMSetPageFormatExtendedData(_:_:_:_:)PMGetPageFormatPaper(_:_:)PMPageFormatGetPrinterID(_:_:)PMGetOrientation(_:_:)PMSetOrientation(_:_:_:)PMGetScale(_:_:)PMGetAdjustedPageRect(_:_:)PMGetAdjustedPaperRect(_:_:)PMGetUnadjustedPageRect(_:_:)PMGetUnadjustedPaperRect(_:_:)