Platforms to show: All Mac Windows Linux Cross-Platform

Back to CPMPageFormatMBS class.

CPMPageFormatMBS.AdjustedPageSize as CPMRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Printing MBS MacCG Plugin 2.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The adjusted page size.

Lasterror is set.

Some examples using this method:

CPMPageFormatMBS.AdjustedPaperSize as CPMRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Printing MBS MacCG Plugin 2.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The adjusted page size.

Lasterror is set.

Some examples using this method:

CPMPageFormatMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Printing MBS MacCG Plugin 9.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a new page format object.

CPMPageFormatMBS.CopySettings(Destination as CPMPageFormatMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Printing MBS MacCG Plugin 2.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Copies the settings to another pageformat object.

CPMPageFormatMBS.CreateDataRepresentation(Format as Integer = 0) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Printing MBS MacCG Plugin 15.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a data representation of a PMPageFormat object as a data string.
Example
dim p as new CPMPageFormatMBS
p.orientation = p.kPMLandscape
dim d as string = p.CreateDataRepresentation
break // check in debugger

Use CreateWithDataRepresentation to create a CPMPageFormatMBS from a string created by this call.
Format can be kPMDataFormatXMLDefault, kPMDataFormatXMLMinimal or kPMDataFormatXMLCompressed.

CPMPageFormatMBS.Orientation as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS MacCG Plugin 2.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The page orientation.
Example
dim p as new CPMPageFormatMBS
p.orientation = p.kPMLandscape

Lasterror is set.

Possible values:
kPMPortrait1
kPMLandscape2
kPMReversePortrait3will revert to kPortrait for current drivers
kPMReverseLandscape4will revert to kLandscape for current drivers
(Read and Write computed property)

CPMPageFormatMBS.PrinterID as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Printing MBS MacCG Plugin 15.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Obtains the formatting printer for the pageformat.

Will either return the formatting printer for the pageformat or will return nil if the pageformat doesn't have that information.

CPMPageFormatMBS.Scale as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS MacCG Plugin 2.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The page scaling.

Lasterror is set.
Value is 100 for 100%.
(Read and Write computed property)

CPMPageFormatMBS.UnadjustedPageSize as CPMRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Printing MBS MacCG Plugin 2.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The unadjusted page size.

Lasterror is set.

Some examples using this method:

CPMPageFormatMBS.UnadjustedPaperSize as CPMRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Printing MBS MacCG Plugin 2.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The unadjusted page size.

Lasterror is set.

Some examples using this method:

The items on this page are in the following plugins: MBS MacCG Plugin.


The biggest plugin in space...