Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

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 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, 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 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, 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 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 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.
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 REALbasic 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

DynaPDFMBS.IsEmptyPage 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 checks whether a page is empty.
Notes: Value is 0 for false, 1 for true or negative for an error.

See also IsEmptyPage function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.LineAnnot(x1 as Double, y1 as Double, x2 as Double, y2 as Double, LineWidth as Double, StartLineEndStyle as Integer, EndLineEndStyle as Integer, FillColor as UInt32, StrokeColor 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 14.0 Yes Yes Yes Yes No
Function: Adds a line annotation.

See also LineAnnot function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.LineAnnotAnsi(x1 as Double, y1 as Double, x2 as Double, y2 as Double, LineWidth as Double, StartLineEndStyle as Integer, EndLineEndStyle as Integer, FillColor as UInt32, StrokeColor 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 14.0 Yes Yes Yes Yes No
Function: Adds a line annotation.

Feedback, Comments & Corrections

DynaPDFMBS.LineTo(PosX as Double, PosY 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 draws a path from the current position up to the specified point.
Example:
dim pdf as new DynaPDFMBS
dim f as FolderItem = SpecialFolder.Desktop.Child("Create PDF with Line.pdf")

pdf.SetLicenseKey "Starter" // For this example you can use a Starter, Lite, Pro or Enterprise License

// Create a new PDF
call pdf.CreateNewPDF f

// We want to use top-down coordinates
call pdf.SetPageCoords pdf.kpcTopDown

// Add a page
call pdf.Append

// black
call pdf.SetStrokeColor 0

// line down
call pdf.MoveTo(100,100)
call pdf.LineTo(200,200)
call pdf.StrokePath

// line up
call pdf.MoveTo(200,200)
call pdf.LineTo(300,100)
call pdf.StrokePath

// end page
call pdf.EndPage

// Close page
call pdf.CloseFile

// Open PDF
f.Launch

See also LineTo function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.LoadCMap(CMapName as string, Embed as Boolean) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 10.1 Yes Yes Yes Yes No
Function: Loads a character map.

See also LoadCMap function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.LoadFDFData(FileName as folderitem, Password as string, Flags as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 9.4 Yes Yes Yes Yes No
Function: Loads PDF form data from the given PDF file.

See also LoadFDFData function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.LoadFDFDataEx(Buffer as memoryblock, Password as string, Flags as Integer) 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: Loads PDF form data from the given PDF file in the buffer.

See also:

See also LoadFDFDataEx function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.LoadFDFDataEx(Buffer as string, Password as string, Flags as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 9.4 Yes Yes Yes Yes No
Function: Loads PDF form data from the given PDF file in the buffer.

See also:

See also LoadFDFDataEx function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.LoadFont(Buffer as memoryblock, Style as Integer, size as Double, Embed as Boolean = false, CodePage as Integer = 2, CollectionIndex as UInt32 = 0) 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 loads a font from a file buffer.
Notes: Added CollectionIndex parameter in 12.1 plugin version.

See also:

See also LoadFont function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.LoadFont(Buffer as string, Style as Integer, size as Double, Embed as Boolean = false, CodePage as Integer = 2, CollectionIndex as UInt32 = 0) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 12.1 Yes Yes Yes Yes No
Function: The function loads a font from a file buffer.
Notes: Added CollectionIndex parameter in 12.1 plugin version.

See also:

See also LoadFont function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.LoadFontEx(File as folderitem, Style as Integer, size as Double, Embed as Boolean = false, CodePage as Integer = 2, CollectionIndex as UInt32 = 0) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 12.1 Yes Yes Yes Yes No
Function: The function loads a font from a font file and activates it in the graphics state if the function was called within an open page or template.

See also:

See also LoadFontEx function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.LoadFontEx(Filepath as string, Style as Integer, size as Double, Embed as Boolean = false, CodePage as Integer = 2, CollectionIndex as UInt32 = 0) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 12.1 Yes Yes Yes Yes No
Function: The function loads a font from a font file and activates it in the graphics state if the function was called within an open page or template.

See also:

See also LoadFontEx function in DynaPDF manual.

Feedback, Comments & Corrections

Previous items Next items

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





Links
MBS Xojo blog