Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

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.

See also InkAnnot function in DynaPDF manual.

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.

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.

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 8.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.

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 8.0 Yes Yes Yes Yes No
Function: 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.

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.

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.

See also InsertBookmark function in DynaPDF manual.

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.

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.

See also InsertBookmarkEx function in DynaPDF manual.

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 8.0 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.

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 8.0 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.

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

See also:

See also InsertImageEx function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 19.5 Yes Yes Yes Yes No
Function: 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
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.

See also:

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.

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.

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 8.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.

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.

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 8.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.
Notes: 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: 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 8.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: 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 8.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: 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: 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 8.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: 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 8.0 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: 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 8.0 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: 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 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
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.
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:

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.4 Yes Yes Yes Yes No
Function: Takes a Xojo picture and adds it to the PDF.
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:

Feedback, Comments & Corrections

DynaPDFMBS.InsertRawImage(Data as String, BitsPerPixel as Integer, ColorCount as Integer, ImgWidth as Integer, ImgHeight as Integer, 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 13.0 Yes Yes Yes Yes No
Function: The function inserts an image from a raw image buffer which contains no image header.

See also:

See also InsertRawImage function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.InsertRawImage(Memory as MemoryBlock, BitsPerPixel as Integer, ColorCount as Integer, ImgWidth as Integer, ImgHeight as Integer, 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 8.0 Yes Yes Yes Yes No
Function: The function inserts an image from a raw image buffer which contains no image header.

See also:

See also InsertRawImage function in DynaPDF manual.

Feedback, Comments & Corrections

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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 13.3 Yes Yes Yes Yes No
Function: The function inserts an image from a raw image buffer that contains no image header.
Notes:
See also InsertRawImageEx in dynapdf_help.pdf manual file.
Returns false if image parameter has invalid values.

See also InsertRawImageEx function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.IsBidiText(Text as string) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: 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.
Notes: The text parameter is converted to unicode.

See also IsBidiText function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.IsColorPage(GrayIsColor as Boolean) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: This function checks whether a page is a color page or if all graphic elements of the page use black & white only.
Notes: Value is 0 for false, 1 for true or negative for an error.

See also IsColorPage function in DynaPDF manual.

Feedback, Comments & Corrections

Previous items Next items

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

The biggest plugin in space...




Links
MBS Xojo Plugins