Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFMBS class.

Previous items Next items

DynaPDFMBS.InsertBMPFromBuffer(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, Buffer as string) as Integer   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use InsertImageFromBuffer instead.
The function inserts a Device Independent Bitmap from a file buffer.

See also:

See also InsertBMPFromBuffer function in DynaPDF manual.

DynaPDFMBS.InsertBMPFromBuffer(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, BufferAddress as Integer) as Integer   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use InsertImageFromBuffer instead.
The function inserts a Device Independent Bitmap from a file buffer.

See also:

See also InsertBMPFromBuffer function in DynaPDF manual.

DynaPDFMBS.InsertBMPFromHandle(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, hBitmap as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function inserts a bitmap in the same way as InsertImage() but accepts a HBITMAP handle as input.

See also InsertBMPFromHandle function in DynaPDF manual.

DynaPDFMBS.InsertBookmark(title as String, parent as Integer, DestPage as Integer, Open as boolean, AddChildren as boolean) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 11.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function inserts a bookmark to the global outline tree of the document.

The title parameter is converted to unicode.

See also InsertBookmark function in DynaPDF manual.

DynaPDFMBS.InsertBookmarkAnsi(title as String, parent as Integer, DestPage as Integer, Open as boolean, AddChildren as boolean) as Integer   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 11.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use the non ANSI function instead.
This function inserts a bookmark to the global outline tree of the document.

The title parameter is converted to ANSI.

See also InsertBookmark function in DynaPDF manual.

DynaPDFMBS.InsertBookmarkEx(title as String, parent as Integer, NamedDest as Integer, Open as boolean, AddChildren as boolean) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 11.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function inserts a bookmark to the global outline tree of the document.

The title parameter is converted to unicode.

See also InsertBookmarkEx function in DynaPDF manual.

DynaPDFMBS.InsertBookmarkExAnsi(title as String, parent as Integer, NamedDest as Integer, Open as boolean, AddChildren as boolean) as Integer   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 11.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use the non ANSI function instead.
This function inserts a bookmark to the global outline tree of the document.

The title parameter is converted to ANSI.

See also InsertBookmarkEx function in DynaPDF manual.

DynaPDFMBS.InsertImage(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, File as folderitem) as Integer   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use InsertImage instead.
The function inserts an image from a file.
Example
dim pdf as DynaPDFMBS

// ... add page

// use transparency from image
call pdf.SetUseTransparency(False)

// max 300 dpi for recompressed images
call pdf.SetResolution(300)

// use JPEG when compressing new pictures
call pdf.SetCompressionFilter(pdf.kcfJPEG)

// pass through JPEGs if possible
call pdf.SetSaveNewImageFormat(false)

// insert image
dim source as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
call pdf.InsertImage(0, 0, 300, 200, source)

Please call SetUseTransparency(false) before inserting image if you don't like one of the colors (default white) to become transparent.

DynaPDF 3.0 adds support for pictures with alpha channel for this function.

See also InsertImage function in DynaPDF manual.

DynaPDFMBS.InsertImageEx(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, File as folderitem, index as Integer = 1) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function inserts an image from a file.
Example
dim pdf as DynaPDFMBS

// ... add page

// use transparency from image
call pdf.SetUseTransparency(False)

// max 300 dpi for recompressed images
call pdf.SetResolution(300)

// use JPEG when compressing new pictures
call pdf.SetCompressionFilter(pdf.kcfJPEG)

// pass through JPEGs if possible
call pdf.SetSaveNewImageFormat(false)

// insert image
dim source as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
call pdf.InsertImageEx(0, 0, 300, 200, source)

Please call SetUseTransparency(false) before inserting image if you don't like one of the colors (default white) to become transparent.

DynaPDF 3.0 adds support for pictures with alpha channel for this function.

See also:

Some examples using this method:

See also InsertImageEx function in DynaPDF manual.

DynaPDFMBS.InsertImageEx(PosX as double, PosY as double, ScaleWidth as double, ScaleHeight as double, Path as String, index as integer = 1) as integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 19.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function inserts an image from a file.
Example
Dim d As New DynaPDFMBS

// create PDF in memory
Call d.CreateNewPDF

// add a picture
Call d.Append
Call d.InsertImageEx(100, 100, 100, 100, "/Users/cs/Pictures/mond.jpg")
Call d.EndPage

// okay?
If d.HaveOpenDoc Then

// open target file
Call d.OpenOutputFile("/Users/cs/Desktop/mond.pdf")

// write and close
Call d.CloseFile

End If

Please call SetUseTransparency(false) before inserting image if you don't like one of the colors (default white) to become transparent.

DynaPDF 3.0 adds support for pictures with alpha channel for this function.

See also:

See also InsertImageEx function in DynaPDF manual.

DynaPDFMBS.InsertImageFromBuffer(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, Buffer as Memoryblock, index as Integer = 1) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function inserts an image in exactly the same way as InsertImageEx(), but it accepts a file buffer as input.

Please call SetUseTransparency(false) before inserting image if you don't like one of the colors (default white) to become transparent.

DynaPDF 3.0 adds support for pictures with alpha channel for this function.
Please pass positon and size as doubles. If you use integers, Xojo will give a compile error.

See also:

Some examples using this method:

See also InsertImageFromBuffer function in DynaPDF manual.

DynaPDFMBS.InsertImageFromBuffer(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, Buffer as string, index as Integer = 1) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function inserts an image in exactly the same way as InsertImageEx(), but it accepts a file buffer as input.

Please call SetUseTransparency(false) before inserting image if you don't like one of the colors (default white) to become transparent.

DynaPDF 3.0 adds support for pictures with alpha channel for this function.
Please pass positon and size as doubles. If you use integers, Xojo will give a compile error.

See also:

See also InsertImageFromBuffer function in DynaPDF manual.

DynaPDFMBS.InsertMetafile(FileName as folderitem, PosX as Double, PosY as Double, Width as Double, Height as Double) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function converts an Enhanced Meta File (EMF) or Windows Meta File (WMF) to a native PDF vector graphic.

Requires DynaPDF Lite license.

Some examples using this method:

See also InsertMetafile function in DynaPDF manual.

DynaPDFMBS.InsertMetafileEx(Buffer as memoryblock, PosX as Double, PosY as Double, Width as Double, Height as Double) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function converts an Enhanced Meta File (EMF) or Windows Meta File (WMF) to a native PDF vector graphic in the same way as InsertMetafile().

Requires DynaPDF Lite license.

See also:

See also InsertMetafileEx function in DynaPDF manual.

DynaPDFMBS.InsertMetafileEx(Buffer as string, PosX as Double, PosY as Double, Width as Double, Height as Double) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function converts an Enhanced Meta File (EMF) or Windows Meta File (WMF) to a native PDF vector graphic in the same way as InsertMetafile().

Requires DynaPDF Lite license.

See also:

See also InsertMetafileEx function in DynaPDF manual.

DynaPDFMBS.InsertMetafileExt(FileName as folderitem, View as DynaPDFRectMBS, PosX as Double, PosY as Double, Width as Double, Height as Double) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function converts an Enhanced Meta File (EMF) or Windows Meta File (WMF) to a native PDF vector graphic in the same way as InsertMetafile().

Requires DynaPDF Lite license.

See also InsertMetafileExt function in DynaPDF manual.

DynaPDFMBS.InsertMetafileExtEx(Buffer as Memoryblock, View as DynaPDFRectMBS, PosX as Double, PosY as Double, Width as Double, Height as Double) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function converts an Enhanced Meta File (EMF) or Windows Meta File (WMF) to a native PDF vector graphic in the same way as InsertMetafileExt().

Requires DynaPDF Lite license.

See also:

See also InsertMetafileExtEx function in DynaPDF manual.

DynaPDFMBS.InsertMetafileExtEx(Buffer as String, View as DynaPDFRectMBS, PosX as Double, PosY as Double, Width as Double, Height as Double) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function converts an Enhanced Meta File (EMF) or Windows Meta File (WMF) to a native PDF vector graphic in the same way as InsertMetafileExt().

Requires DynaPDF Lite license.

See also:

See also InsertMetafileExtEx function in DynaPDF manual.

DynaPDFMBS.InsertMetafileFromHandle(hEnhMetafileHandle as Integer, PosX as Double, PosY as Double, Width as Double, Height as Double) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function inserts an Enhanced Metafile exactly in the same way as InsertMetafile() but accepts a HENHMETAFILE handle as input.

Requires DynaPDF Lite license.

See also InsertMetafileFromHandle function in DynaPDF manual.

DynaPDFMBS.InsertMetafileFromHandleEx(hEnhMetafileHandle as Integer, View as DynaPDFRectMBS, PosX as Double, PosY as Double, Width as Double, Height as Double) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function inserts an Enhanced Metafile exactly in the same way as InsertMetafileExt() but accepts a HENHMETAFILE handle as input.

Requires DynaPDF Lite license.

See also InsertMetafileFromHandleEx function in DynaPDF manual.

DynaPDFMBS.InsertPicture(pic as picture, mask as picture, PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 9.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Takes a Xojo picture with a mask and adds it to the PDF.
Example
// insert MBS Logo with round Mask
dim d as new MyDynaPDFMBS
dim file as FolderItem = SpecialFolder.Desktop.Child("test.pdf")

call d.CreateNewPDF file
call d.Append

// get picture
dim p as Picture = LogoMBS(500)

// get mask
dim m as new Picture(500, 500, 32)
m.Graphics.ForeColor = &cFFFFFF
m.Graphics.FillRect 0,0,500,500
m.Graphics.ForeColor = &c000000
m.Graphics.FillOval 0,0,500,500

// add image to pdf
call d.InsertPicture(p, m, 50, 150, 500, 500)

call d.EndPage
call d.CloseFile

Please call SetUseTransparency(false) before inserting image if you don't like one of the colors (default white) to become transparent.
This is a convenience function to handle picture with mask.

Internally this calls pdfInsertRawImage so check the documtation on this function in the dynapdf manual.
For images with alpha channel, we pass a PNG via pdfInsertImageFromBuffer.

Usually InsertPicture with the mask/alpha is better.
PosX and PosY are the destination position and ScaledWidth and ScaledHeight is the new size of the image.

See also:

Some examples using this method:

DynaPDFMBS.InsertPicture(pic as picture, PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Takes a Xojo picture and adds it to the PDF.

Please call SetUseTransparency(false) before inserting image if you don't like one of the colors (default white) to become transparent.
Internally this calls pdfInsertRawImage so check the documtation on this function in the dynapdf manual.
For images with alpha channel, we pass a PNG via pdfInsertImageFromBuffer.

PosX and PosY are the destination position and ScaledWidth and ScaledHeight is the new size of the image.

See also:

DynaPDFMBS.InsertRawImageEx(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, Image as DynaPDFRawImageMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function inserts an image from a raw image buffer that contains no image header.

See also InsertRawImageEx in dynapdf_help.pdf manual file.
Returns false if image parameter has invalid values.

Some examples using this method:

See also InsertRawImageEx function in DynaPDF manual.

DynaPDFMBS.IsBidiText(Text as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the position of the first bidirectional character that can be found in the string or -1 if no such character can be found.

The text parameter is converted to unicode.

See also IsBidiText function in DynaPDF manual.

DynaPDFMBS.IsColorPage(GrayIsColor as Boolean) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function checks whether a page is a color page or if all graphic elements of the page use black & white only.

Value is 0 for false, 1 for true or negative for an error.

See also IsColorPage function in DynaPDF manual.

DynaPDFMBS.IsEmptyPage as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function checks whether a page is empty.

Value is 0 for false, 1 for true or negative for an error.

See also IsEmptyPage function in DynaPDF manual.

DynaPDFMBS.IterateAnnotations as DynaPDFIteratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Iterate over annotations.
Example
Dim d As New DynaPDFMBS

// load a PDF here or add an annotation

For Each Annotation As DynaPDFAnnotationExMBS In d.IterateAnnotations

Dim Nmae As String = Annotation.Name

Break
Next

The value is a DynaPDFAnnotationExMBS object.

DynaPDFMBS.IterateBookmarks as DynaPDFIteratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Iterate over bookmarks.
Example
Dim d As New DynaPDFMBS

For Each Bookmark As DynaPDFBookmarkMBS In d.IterateBookmarks

Dim Name As String = Bookmark.Title

Break
Next

The value is a DynaPDFBookmarkMBS object.

DynaPDFMBS.IterateCMaps as DynaPDFIteratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Iterate over character maps.
Example
Dim d As New DynaPDFMBS

For Each CMap As DynaPDFCMapMBS In d.IterateCMaps

Dim Name As String = CMap.CMapName

Break
Next

The value is a DynaPDFCMapMBS object.

DynaPDFMBS.IterateColorSpaces as DynaPDFIteratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Iterate over Colorspaces.
Example
Dim d As New DynaPDFMBS

For Each ColorSpace As DynaPDFColorSpaceMBS In d.IterateColorSpaces

Dim Name As String = ColorSpace.Name

Break
Next

The value is a DynaPDFColorSpaceMBS object.

DynaPDFMBS.IterateEmbeddedFiles(Decompress as boolean = false) as DynaPDFIteratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Iterate over embedded files.
Example
Dim d As New DynaPDFMBS

For Each fileSpace As DynaPDFFileSpecMBS In d.IterateEmbeddedFiles

Dim Name As String = fileSpace.Name

Break
Next

The value is a DynaPDFFileSpecMBS object.

DynaPDFMBS.IterateErrLogMessages as DynaPDFIteratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Iterate over error log messages.
Example
Dim d As New DynaPDFMBS

For Each Error As DynaPDFErrorMBS In d.IterateErrLogMessages

Dim Name As String = Error.Message

Break
Next

The value is a DynaPDFErrorMBS object.

DynaPDFMBS.IterateFields as DynaPDFIteratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Iterate over fields.
Example
Dim d As New DynaPDFMBS

For Each Field As DynaPDFFieldExMBS In d.IterateFields

Dim Name As String = Field.FieldName

Break
Next

The value is a DynaPDFFieldExMBS object.

DynaPDFMBS.IterateFonts as DynaPDFIteratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Iterate over fonts.
Example
Dim d As New DynaPDFMBS

Call d.CreateNewPDF

Call d.Append
Call d.SetFont("Geneva")

// now we can find fonts like Helvetica (default) and our Geneva
For Each Font As DynaPDFFontMBS In d.IterateFonts

Dim Name As String = Font.FontName

Break
Next

The value is a DynaPDFFontMBS object.

DynaPDFMBS.IterateImages(ImageFlags as Integer = 0) as DynaPDFIteratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Iterate over images.
Example
Dim d As New DynaPDFMBS

// load a PDF here or add pages with images

For Each Image As DynaPDFImageMBS In d.IterateImages

Dim Buffer As String = Image.Buffer

Break
Next

The value is a DynaPDFImageMBS object.

DynaPDFMBS.IterateLayerConfigurations as DynaPDFIteratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Iterate over layer configurations.
Example
Dim d As New DynaPDFMBS

// load a PDF here or add pages with layers

For Each layer As DynaPDFOCLayerConfigMBS In d.IterateLayerConfigurations

Dim Name As String = layer.Name

Break
Next

The value is a DynaPDFOCLayerConfigMBS object.

DynaPDFMBS.IterateNamedDestinations as DynaPDFIteratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Iterate over named destinations.
Example
Dim d As New DynaPDFMBS

// load a PDF here or add pages with named destinations

For Each dest As DynaPDFNamedDestMBS In d.IterateNamedDestinations

Dim Name As String = dest.Name

Break
Next

The value is a DynaPDFNamedDestMBS object.

Previous items Next items

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


The biggest plugin in space...