Platforms to show: All Mac Windows Linux Cross-Platform
CPMPageFormatMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Printing Mac | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
- 5 properties
- property handle as Integer
- property Lasterror as Integer
- property release as boolean
- property Orientation as Integer
- property Scale as Double
- 8 methods
- method AdjustedPageSize as CPMRectMBS
- method AdjustedPaperSize as CPMRectMBS
- method Constructor
- method CopySettings(Destination as CPMPageFormatMBS)
- method CreateDataRepresentation(Format as Integer = 0) as String
- method PrinterID as String
- method UnadjustedPageSize as CPMRectMBS
- method UnadjustedPaperSize as CPMRectMBS
- shared method CreateWithDataRepresentation(Data as String) as CPMPageFormatMBS
- 7 constants
Data Formats
Constant | Value | Description |
---|---|---|
kPMDataFormatXMLCompressed | 2 |
kPMDataFormatXMLCompressed is only compatible and usable with Mac OS X version 10.5 and later. Data in this format can be only be reconsistuted into the equivalent printing manager object with the appropriate PMXXXCreateWithDataRepresentation function. The data representation produced when using kPMDataFormatXMLCompressed is approximately 20 times smaller than kPMDataFormatXMLDefault. This format is a good choice when execution on versions of Mac OS X prior to 10.5 is not necessary and the minimum data size is important. |
kPMDataFormatXMLDefault | 0 |
Specifies a data format that is compatible with all Mac OS X versions. Data in this format can be used with the PMUnflattenXXX routines present in all versions of Mac OS X prior to 10.5. However, this data representation is much larger than the more modern data representations described below. |
kPMDataFormatXMLMinimal | 1 |
XMLMinimal is only compatible and usable with Mac OS X version 10.5 and later. Data in this format can be only be reconsistuted into the equivalent printing manager object with the appropriate CreateWithDataRepresentation function. The data representation produced when using kPMDataFormatXMLMinimal is approximately 3-5 times smaller than kPMDataFormatXMLDefault. This format is a good choice when execution on versions of Mac OS X prior to 10.5 is not necessary and an uncompressed XML representation of the data is needed. |
Orientation Constants
Constant | Value | Description |
---|---|---|
kPMLandscape | 2 |
Landscape |
kPMPortrait | 1 |
Portrait |
kPMReverseLandscape | 4 |
Reverse Landscape |
kPMReversePortrait | 3 |
Reverse Portrait |
This class has no sub classes.
Some useful global functions for this class:
- NewCPMPageFormatMBS as CPMPageFormatMBS
Some methods using this class:
- CPMPrintSessionMBS.BeginDocument(settings as CPMPrintSettingsMBS, pageformat as CPMPageFormatMBS)
- CPMPrintSessionMBS.BeginDocumentNoDialog(settings as CPMPrintSettingsMBS, pageformat as CPMPageFormatMBS)
- CPMPrintSessionMBS.BeginPage(pageformat as CPMPageFormatMBS, rect as CPMRectMBS)
- CPMPrintSessionMBS.BeginPageNoDialog(pageformat as CPMPageFormatMBS, rect as CPMRectMBS)
- CPMPrintSessionMBS.DefaultPageFormat(pageformat as CPMPageFormatMBS)
- CPMPrintSessionMBS.PageSetupDialog(pageformat as CPMPageFormatMBS) as boolean
- CPMPrintSessionMBS.PrintDialog(settings as CPMPrintSettingsMBS, pageformat as CPMPageFormatMBS) as boolean
- CPMPrintSessionMBS.ValidatePageFormat(pageformat as CPMPageFormatMBS) as boolean
Some examples using this class:
- /MacCG/Carbon Print Manager/Carbon Print Hello
- /MacCG/Carbon Print Manager/Change current printer
- /MacCG/Carbon Print Manager/sample
- /MacCG/Carbon Print Manager/sample with sheets
The items on this page are in the following plugins: MBS MacCG Plugin.
CPMLanguageInfoMBS - CPMPrinterMBS