Platforms to show: All Mac Windows Linux Cross-Platform

PDFPageMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class PDFKit MBS MacControls Plugin 8.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: The PDFKit class for a page in a pdf document.
Example:
dim file1,file2,file3,destfile as FolderItem
dim page1,page2,page3 as PDFPageMBS
dim doc1,doc2 as PDFDocumentMBS
dim img as NSImageMBS
dim doc as PDFDocumentMBS

file1=SpecialFolder.Desktop.Child("test1.pdf")
file2=SpecialFolder.Desktop.Child("test2.pdf")
file3=SpecialFolder.Desktop.Child("logo.jpg")

doc1=new PDFDocumentMBS(file1)
doc2=new PDFDocumentMBS(file2)

MsgBox str(doc1.pageCount)

img=new NSImageMBS(file3)

Backdrop=img.CopyPicture

page1=new PDFPageMBS(img)
page2=doc1.pageAtIndex(0)
page3=doc2.pageAtIndex(0)

doc=new PDFDocumentMBS
doc.insertPage page1,0
doc.insertPage page2,1
doc.insertPage page3,2

destfile=SpecialFolder.Desktop.Child("test.pdf")
call doc.write(destfile)

Feedback, Comments & Corrections

Boxes

Constant Value Description
kPDFDisplayBoxBleedBox 2
kPDFDisplayBoxCropBox 1
kPDFDisplayBoxMediaBox 0
kPDFDisplayBoxTrimBox 3

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some events using this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine


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


PDFOutlineMBS   -   PDFSelectionMBS

The biggest plugin in space...




Links
MBS Xojo Plugins

Start Chat