Platforms to show: All Mac Windows Linux Cross-Platform
Back to Graphics class.
Graphics.DrawCGPDFDocumentMBS(pdf as CGPDFDocumentMBS, r as CGRectMBS, page as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Requires Mac OS X to work.
If destination is scaled page size, you need to also scale the rectangle here.
Seems broken in MacOS Mojave for us with drawing in print context.
See also:
Some examples using this method:
- /DynaPDF/Create and print PDF
- /DynaPDF/PDF Viewer Example
- /DynaPDF/PDF Viewer Example with links
- /DynaPDF/PDFPreview Window
- /DynaPDF/Raster/PDF Benchmark
- /DynaPDF/Raster/PDF Diff
- /MacCG/CG Ovals with PDF in memory
- /MacCG/CoreGraphics PDF/Getpicture PDF
- /MacCG/CoreGraphics PDF/PDF Viewer White on Black
- /MacCG/CoreGraphics PDF/Show PDF
graphics.DrawCGPDFDocumentMBS(pdf as CGPDFDocumentMBS, r as CGRectMBS, page as Integer, InterpolationQuality as Integer, Antialias as boolean, FontSmoothing as Boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Requires Mac OS X to work.
You can pass for interpolation:
0 | Let the context decide. |
1 | Never interpolate. |
2 | Low quality, fast interpolation. |
4 | Medium quality, slower than kCGInterpolationLow. |
3 | Highest quality, slower than kCGInterpolationMedium. |
Set Antialias to true to allow anti aliasing and to false to disallow.
Set FontSmoothing to true to allow font smoothing and false to disallow it.
If destination is scaled page size, you need to also scale the rectangle here.
Seems broken in MacOS Mojave for us with drawing in print context.
See also:
Some examples using this method:
- /DynaPDF/Create and print PDF
- /DynaPDF/PDF Viewer Example
- /DynaPDF/PDF Viewer Example with links
- /DynaPDF/PDFPreview Window
- /DynaPDF/Raster/PDF Benchmark
- /DynaPDF/Raster/PDF Diff
- /MacCG/CG Ovals with PDF in memory
- /MacCG/CoreGraphics PDF/Getpicture PDF
- /MacCG/CoreGraphics PDF/PDF Viewer White on Black
- /MacCG/CoreGraphics PDF/Show PDF
Blog Entries
- MBS Xojo Plugins, version 21.2pr1
- MBS Xojo Plugins, version 19.2pr1
- MBS Xojo Plugins, version 19.1pr7
- MBS Real Studio Plugins, version 12.3pr8
- MBS Plugins 11.1 Release notes
- MBS Real Studio Plugins, version 11.1pr10
Xojo Developer Magazine
The items on this page are in the following plugins: MBS MacCG Plugin.