Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

DynaPDFMBS.ImportPage(PageNum as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: The function imports a page of an external PDF file and converts this page to a template.
Notes:
Also check the dynapdf manual on the pdfImportPage function.
Requires DynaPDF Pro license.

See also ImportPage function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.ImportPageEx(PageNum as Integer, ScaleX as Double = 1.0, ScaleY as Double = 1.0) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: The function imports a PDF page of an external PDF file incl. interactive objects such as annotations, form fields and so on, if any.
Notes:
Also check the dynapdf manual on the pdfImportPageEx function.
Requires DynaPDF Pro license.

See also ImportPageEx function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.ImportPDFFile(DestPage as Integer, ScaleX as Double = 1.0, ScaleY as Double = 1.0) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: The function imports an external PDF file incl. interactive objects such as annotations, bookmarks, form fields and so on.
Notes:
Also check the dynapdf manual on the pdfImportPDFFile function.
Scaling factor is ignored if importing as pages (not templates).

This function returns the page number of the last page imported. It does not return how many pages are imported. If you need number of imported pages, please use returned value minus DestPage.

See also ImportPDFFile function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.ImportPDFPage(PageNum as Integer, ScaleX as Double = 1.0, ScaleY as Double = 1.0) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 15.1 Yes Yes Yes Yes No
Function: Imports a PDF page.
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.

Feedback, Comments & Corrections

DynaPDFMBS.InitColorManagement(profiles as DynaPDFColorProfilesMBS, DestSpace as Integer, Flags as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.3 Yes Yes Yes Yes No
Function: Initializes color management with the given default profiles.
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.

Also check the dynapdf manual on the pdfInitColorManagement function.

See also InitColorManagement function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.InitColorManagementEx(profiles as DynaPDFColorProfilesExMBS, DestSpace as Integer, Flags as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 16.0 Yes Yes Yes Yes No
Function: Initialize color management.
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.

Feedback, Comments & Corrections

DynaPDFMBS.InitStack(byref stack as DynaPDFStackMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.7 Yes Yes Yes Yes No
Function: The function initializes the variable Stack with default values and prepares the editing of a content stream.
Example:
dim s as DynaPDFStackMBS
dim pdf as DynaPDFMBS // get your DynaPDF object

call pdf.InitStack(s)
Notes:
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.

Also check the dynapdf manual on the pdfInitStack function.

See also InitStack function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.InkAnnot(points() as DynapdfPointMBS, LineWidth as Double, ColorValue as UInt32, ColorSpace as Integer, Author as string, Subject as string, Content as string) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 15.3 Yes Yes Yes Yes No
Function: Creates an Ink annotation.
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.

Feedback, Comments & Corrections

DynaPDFMBS.InkAnnotAnsi(points() as DynapdfPointMBS, LineWidth as Double, ColorValue as UInt32, ColorSpace as Integer, Author as string, Subject as string, Content as string) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 15.3 Yes Yes Yes Yes No
Function: Creates an Ink annotation.
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.

Feedback, Comments & Corrections

DynaPDFMBS.InsertBMPFromBuffer(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, Buffer as memoryblock) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 13.0 Yes Yes Yes Yes No
Function: The function inserts a Device Independent Bitmap from a file buffer.
This item is deprecated and should no longer be used. You can use InsertImageFromBuffer instead.
Notes: Also check the dynapdf manual on the pdfInsertBMPFromBuffer function.

See also:

Feedback, Comments & Corrections

DynaPDFMBS.InsertBMPFromBuffer(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, Buffer as string) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 13.0 Yes Yes Yes Yes No
Function: The function inserts a Device Independent Bitmap from a file buffer.
This item is deprecated and should no longer be used. You can use InsertImageFromBuffer instead.
Notes: Also check the dynapdf manual on the pdfInsertBMPFromBuffer function.

See also:

Feedback, Comments & Corrections

DynaPDFMBS.InsertBMPFromBuffer(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, BufferAddress as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: The function inserts a Device Independent Bitmap from a file buffer.
This item is deprecated and should no longer be used. You can use InsertImageFromBuffer instead.
Notes: Also check the dynapdf manual on the pdfInsertBMPFromBuffer function.

See also:

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: This function inserts a bitmap in the same way as InsertImage() but accepts a HBITMAP handle as input.
Notes: Also check the dynapdf manual on the pdfInsertBMPFromHandle function.

See also InsertBMPFromHandle function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.2 Yes Yes Yes Yes No
Function: This function inserts a bookmark to the global outline tree of the document.
Notes:
The title parameter is converted to unicode.
Also check the dynapdf manual on the pdfInsertBookmarkW function.

See also InsertBookmark function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.InsertBookmarkAnsi(title as String, parent as Integer, DestPage as Integer, Open as boolean, AddChildren as boolean) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.2 Yes Yes Yes Yes No
Function: This function inserts a bookmark to the global outline tree of the document.
Notes:
The title parameter is converted to ANSI.
Also check the dynapdf manual on the pdfInsertBookmarkA function.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.2 Yes Yes Yes Yes No
Function: This function inserts a bookmark to the global outline tree of the document.
Notes:
The title parameter is converted to unicode.
Also check the dynapdf manual on the pdfInsertBookmarkExW function.

See also InsertBookmarkEx function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.InsertBookmarkExAnsi(title as String, parent as Integer, NamedDest as Integer, Open as boolean, AddChildren as boolean) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.2 Yes Yes Yes Yes No
Function: This function inserts a bookmark to the global outline tree of the document.
Notes:
The title parameter is converted to ANSI.
Also check the dynapdf manual on the pdfInsertBookmarkExA function.

Feedback, Comments & Corrections

DynaPDFMBS.InsertImage(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, File as folderitem) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: 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)
This item is deprecated and should no longer be used. You can use InsertImage instead.
Notes:
Please call SetUseTransparency(false) before inserting image if you don't like one of the colors (default white) to become transparent.
Also check the dynapdf manual on the pdfInsertImage function.

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

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: 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)
Notes:
Please call SetUseTransparency(false) before inserting image if you don't like one of the colors (default white) to become transparent.
Also check the dynapdf manual on the pdfInsertImageEx function.

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

See also InsertImageEx function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 13.0 Yes Yes Yes Yes No
Function: The function inserts an image in exactly the same way as InsertImageEx(), but it accepts a file buffer as input.
Notes:
Please call SetUseTransparency(false) before inserting image if you don't like one of the colors (default white) to become transparent.
Also check the dynapdf manual on the pdfInsertImageFromBuffer function.

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

See also:

See also InsertImageFromBuffer function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: The function inserts an image in exactly the same way as InsertImageEx(), but it accepts a file buffer as input.
Notes:
Please call SetUseTransparency(false) before inserting image if you don't like one of the colors (default white) to become transparent.
Also check the dynapdf manual on the pdfInsertImageFromBuffer function.

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

See also:

See also InsertImageFromBuffer function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: The function converts an Enhanced Meta File (EMF) or Windows Meta File (WMF) to a native PDF vector graphic.
Notes:
Also check the dynapdf manual on the pdfInsertMetafile function.
Requires DynaPDF Lite license.

See also InsertMetafile function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 13.0 Yes Yes Yes Yes No
Function: 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().
Notes:
Also check the dynapdf manual on the pdfInsertMetafileEx function.
Requires DynaPDF Lite license.

See also:

See also InsertMetafileEx function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: 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().
Notes:
Also check the dynapdf manual on the pdfInsertMetafileEx function.
Requires DynaPDF Lite license.

See also:

See also InsertMetafileEx function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: 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().
Notes:
Also check the dynapdf manual on the pdfInsertMetafileExt function.
Requires DynaPDF Lite license.

See also InsertMetafileExt function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 13.0 Yes Yes Yes Yes No
Function: 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().
Notes:
Also check the dynapdf manual on the pdfInsertMetafileExtEx function.
Requires DynaPDF Lite license.

See also:

See also InsertMetafileExtEx function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: 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().
Notes:
Also check the dynapdf manual on the pdfInsertMetafileExtEx function.
Requires DynaPDF Lite license.

See also:

See also InsertMetafileExtEx function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: This function inserts an Enhanced Metafile exactly in the same way as InsertMetafile() but accepts a HENHMETAFILE handle as input.
Notes:
Also check the dynapdf manual on the pdfInsertMetafileFromHandle function.
Requires DynaPDF Lite license.

See also InsertMetafileFromHandle function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 7.6 Yes Yes Yes Yes No
Function: This function inserts an Enhanced Metafile exactly in the same way as InsertMetafileExt() but accepts a HENHMETAFILE handle as input.
Notes:
Also check the dynapdf manual on the pdfInsertMetafileFromHandleEx function.
Requires DynaPDF Lite license.

See also InsertMetafileFromHandleEx function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 9.7 Yes Yes Yes Yes No
Function: Takes a REALbasic 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
Notes:
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.

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

See also:

Feedback, Comments & Corrections

Previous items Next items

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




Links
MBS Xojo Chart Plugins