Platforms to show: All Mac Windows Linux Cross-Platform
CGPDFDocumentMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If the release property is true, the destructor of this class will release the pdfdocument reference.
- 8 properties
- property AllowsCopying as Boolean
- property AllowsPrinting as Boolean
- property handle as Integer
- property IsEncrypted as Boolean
- property IsUnlocked as Boolean
- property MajorVersion as Integer
- property MinorVersion as Integer
- property PageCount as Integer
- 15 methods
- method ArtBox(page as Integer) as CGRectMBS
- method BleedBox(page as Integer) as CGRectMBS
- method Catalog as CGPDFDictionaryMBS
- method Constructor(dataProvider as CGDataProviderMBS)
- method Constructor(file as folderitem)
- method Constructor(Handle as Integer)
- method Constructor(url as string)
- method CropBox(page as Integer) as CGRectMBS
- method GetID as CGPDFArrayMBS
- method GetInfo as CGPDFDictionaryMBS
- method MediaBox(page as Integer) as CGRectMBS
- method Page(index as Integer) as CGPDFPageMBS
- method RotationAngle(page as Integer) as Integer
- method TrimBox(page as Integer) as CGRectMBS
- method UnlockWithPassword(name as string) as boolean
- 5 shared methods
- shared method CreateWithData(data as Memoryblock) as CGPDFDocumentMBS
- shared method CreateWithData(data as string) as CGPDFDocumentMBS
- shared method CreateWithFile(file as folderitem) as CGPDFDocumentMBS
- shared method CreateWithProvider(dataProvider as CGDataProviderMBS) as CGPDFDocumentMBS
- shared method CreateWithURL(url as string) as CGPDFDocumentMBS
This class has no sub classes.
Some useful global functions for this class:
- CGOpenPDFDocumentMBS(dataprovider as CGDataProviderMBS) as CGPDFDocumentMBS
- CGOpenPDFDocumentMBS(file as folderitem) as CGPDFDocumentMBS
Some methods using this class:
- FolderItem.OpenAsCGPDFDocumentMBS as CGPDFDocumentMBS
- Graphics.DrawCGPDFDocumentMBS(pdf as CGPDFDocumentMBS, r as CGRectMBS, page as Integer)
- graphics.DrawCGPDFDocumentMBS(pdf as CGPDFDocumentMBS, r as CGRectMBS, page as Integer, InterpolationQuality as Integer, Antialias as boolean, FontSmoothing as Boolean)
Some properties using for this class:
- CGPDFArrayMBS.Document as CGPDFDocumentMBS
- CGPDFDictionaryListMBS.Document as CGPDFDocumentMBS
- CGPDFDictionaryMBS.Document as CGPDFDocumentMBS
- CGPDFObjectMBS.Document as CGPDFDocumentMBS
- CGPDFPageMBS.Document as CGPDFDocumentMBS
- CGPDFStreamMBS.Document as CGPDFDocumentMBS
- CGPDFStringMBS.Document as CGPDFDocumentMBS
Some examples using this class:
- /DynaPDF/Create and print PDF
- /DynaPDF/PDF Viewer Example with links
- /DynaPDF/Raster/PDF Benchmark
- /DynaPDF/Raster/PDF Diff
- /MacCG/Carbon Print Manager/Carbon Print Hello
- /MacCG/Carbon Print Manager/sample
- /MacCG/CoreGraphics PDF/Getpicture PDF
- /MacCG/CoreGraphics PDF/PDF Viewer White on Black
- /MacCG/Print PDF with CoreGraphics/Print PDF with CoreGraphics
- /MacCG/Rotate PDF Page
Blog Entries
- Several ways for picture to PDF in MBS Plugins
- MBS Xojo Plugins, version 17.3pr7
- MBS Real Studio Plugins, version 12.5pr1
- MBS Real Studio Plugins, version 11.2pr7
Xojo Developer Magazine
- 8.5, pages 20 to 21: Printing PDFs, Easy PDF printing on Mac and Windows
- 6.4, page 30: Creating PDF Files, How to create PDFs using the MBS Plugins by Christian Schmitz
Release notes
- Version 17.3
- Added check to CGPDFDocumentMBS to raise out of memory exception in low memory conditions to avoid crashes later.
The items on this page are in the following plugins: MBS MacCG Plugin.
CGPDFDictionaryMBS - CGPDFObjectMBS