Platforms to show: All Mac Windows Linux Cross-Platform
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 15.1 | Yes | Yes | Yes | Yes | All |
Notes:
If a page is open, this function calls EndPage.
Than it appends a new page, calls ImportPageEx and Endpage.
On success the return value is zero. If the function fails the return value is a negative error code.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 11.3 | Yes | Yes | Yes | Yes | All |
Notes:
Pass nil for profiles to disable color management.
DestSpace can be kcsDeviceRGB, kcsDeviceCMYK or kcsDeviceGray.
Flags can be kicmDefault or kicmBPCompensation for:
Black point compensation preserves the black point when converting CMYK colors to different color spaces.
See also InitColorManagement function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 16.0 | Yes | Yes | Yes | Yes | All |
Notes:
The function enables color management in the functions RenderPage(), RenderPageEx(), RenderPageToImage(), and RenderPDFFile() exactly like InitColorManagement() but accepts ICC profile buffers instead of file paths. See InitColorManagement() for further information.
To disable color management set the parameter Profiles to nil.
Initializing the color management requires a considerable amount of processing time. It is strongly recommended to use one PDF instance as long as possible so that it must not be initialized again when another PDF file will be rendered.
The color management can be initialized right after the PDF instance was created.
Returns true on succes or false on failure.
See also InitColorManagementEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 7.7 | Yes | Yes | Yes | Yes | All |
Example:
dim s as DynaPDFStackMBS
dim pdf as DynaPDFMBS // get your DynaPDF object
call pdf.InitStack(s)
If stack is nil, a new one will be created and stored in the variable.
Return values:
If the function succeeds the return value is true. If the function fails the return value is false.
See also InitStack function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 15.3 | Yes | Yes | Yes | Yes | All |
Notes:
An ink annotation (PDF 1.3) represents a freehand "scribble" composed of one or more disjoint paths. The parameter Points represents a stroked path. More paths can be added with AddInkList.
The points are interpreted in currect user space. Any transformation that was applied on the coordinate system will be taken into account.
The points are connected with bezier curves to achieve a smooth transition between points. If the points should be connected with straight lines, then create a PolyLine annotation instead (see PolyLineAnnot).
This annotation type has an associated PopUp annotation that displays the string Content in a floating window. The initial window state of the associated PopUp annotation is closed by default but the state can be changed with SetAnnotOpenState() if necessary.
If the function succeeds the return value is the annotation handle, a value greater or equal zero. If the function fails the return value is a negative error code.
See also InkAnnot function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 15.3 | Yes | Yes | Yes | Yes | All |
An ink annotation (PDF 1.3) represents a freehand "scribble" composed of one or more disjoint paths. The parameter Points represents a stroked path. More paths can be added with AddInkList.
The points are interpreted in currect user space. Any transformation that was applied on the coordinate system will be taken into account.
The points are connected with bezier curves to achieve a smooth transition between points. If the points should be connected with straight lines, then create a PolyLine annotation instead (see PolyLineAnnot).
This annotation type has an associated PopUp annotation that displays the string Content in a floating window. The initial window state of the associated PopUp annotation is closed by default but the state can be changed with SetAnnotOpenState() if necessary.
If the function succeeds the return value is the annotation handle, a value greater or equal zero. If the function fails the return value is a negative error code.
See also InkAnnot function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 20.5 | Yes | Yes | Yes | Yes | All |
Example:
Dim d As New DynapdfMBS
// create/edit a page, then draw barcode:
// UPCA
Dim b1 As New DynaPDFBarcode2MBS
b1.BarcodeType = b1.kbctUPCA
b1.Data = "72527270270"
Call d.InsertBarcode(100, 100, 200, 50, d.kcoLeft, d.kcoTop, b1)
See also InsertBarcode function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 13.0 | Yes | Yes | Yes | Yes | All |
See also:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 13.0 | Yes | Yes | Yes | Yes | All |
See also:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also InsertBMPFromHandle function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 11.2 | Yes | Yes | Yes | Yes | All |
Notes: The title parameter is converted to unicode.
See also InsertBookmark function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 11.2 | Yes | Yes | Yes | Yes | All |
See also InsertBookmark function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 11.2 | Yes | Yes | Yes | Yes | All |
Notes: The title parameter is converted to unicode.
See also InsertBookmarkEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 11.2 | Yes | Yes | Yes | Yes | All |
See also InsertBookmarkEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
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:
See also InsertImageEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 19.5 | Yes | Yes | Yes | Yes | All |
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 13.0 | Yes | Yes | Yes | Yes | All |
Notes:
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes:
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes: Requires DynaPDF Lite license.
See also InsertMetafile function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 13.0 | Yes | Yes | Yes | Yes | All |
Notes: Requires DynaPDF Lite license.
See also:
See also InsertMetafileEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes: Requires DynaPDF Lite license.
See also:
See also InsertMetafileEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes: Requires DynaPDF Lite license.
See also InsertMetafileExt function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 13.0 | Yes | Yes | Yes | Yes | All |
Notes: Requires DynaPDF Lite license.
See also:
See also InsertMetafileExtEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes: Requires DynaPDF Lite license.
See also:
See also InsertMetafileExtEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes: Requires DynaPDF Lite license.
See also InsertMetafileFromHandle function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes: Requires DynaPDF Lite license.
See also InsertMetafileFromHandleEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 9.7 | Yes | Yes | Yes | Yes | All |
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. With DynaPDF 3 the mask is used while we used a keycolor in DynaPDF 2.x.
Internally this calls pdfInsertRawImage so check the documtation on this function in the dynapdf manual.
Does not work with alpha channel pictures.
PosX and PosY are the destination position and ScaledWidth and ScaledHeight is the new size of the image.
See also:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.4 | Yes | Yes | Yes | Yes | All |
Notes:
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.
Does not work with alpha channel or masked pictures.
PosX and PosY are the destination position and ScaledWidth and ScaledHeight is the new size of the image.
See also:
The items on this page are in the following plugins: MBS DynaPDF Plugin.

Links
MBS Xojo PDF Plugins