Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFMBS class.

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   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 14.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use the non ANSI function instead.
Adds a line annotation.

See also LineAnnot function in DynaPDF manual.

DynaPDFMBS.LineTo(PosX as Double, PosY 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 draws a path from the current position up to the specified point.
Example
Var pdf as new DynaPDFMBS
Var 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.

DynaPDFMBS.LoadCMap(CMapName as string, Embed as Boolean) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads a character map.

See also LoadCMap function in DynaPDF manual.

DynaPDFMBS.LoadFDFData(FileName as folderitem, Password as string, Flags as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 9.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads PDF form data from the given PDF file.

See also LoadFDFData function in DynaPDF manual.

DynaPDFMBS.LoadFDFDataEx(Buffer as memoryblock, Password as string, Flags as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads PDF form data from the given PDF file in the buffer.

See also:

See also LoadFDFDataEx function in DynaPDF manual.

DynaPDFMBS.LoadFDFDataEx(Buffer as string, Password as string, Flags as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 9.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads PDF form data from the given PDF file in the buffer.

See also:

See also LoadFDFDataEx function in DynaPDF manual.

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 iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function loads a font from a file buffer.

Added CollectionIndex parameter in 12.1 plugin version.

See also:

See also LoadFont function in DynaPDF manual.

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 iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function loads a font from a file buffer.

Added CollectionIndex parameter in 12.1 plugin version.

See also:

See also LoadFont function in DynaPDF manual.

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 iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
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.

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 iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
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.

DynaPDFMBS.LoadLayerConfig(Index as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 17.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads the specified layer configuration.

A PDF file that contains layers (Optional Content Groups in PDF syntax) contains usually at least a default configuration dictionary. This configuration is loaded by default when the visibility state of a layer or optional content group must be determined, e.g. when rendering a page.
Use this function to load another configuration if available. To determine the number of available configurations call GetLayerConfigCount().

The paramter Index can be one of the following

  • -1: Load the default configuration.
  • -2: If a configuration was already loaded, leave it unchanged. Load
  • the default configuration otherwise.
  • 0..Count -1: Load the specified configuration.
If the function succeeds the return value is true. If the function fails the return value is false.

See also LoadLayerConfig function in DynaPDF manual.

DynaPDFMBS.LoadSVG(file as FolderItem) as DynaPDFSVGMBS   New in 26.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Opens the specified SVG file and returns the SVG parser instance on success.
Example
Var pdf As New DynaPDFMBS
Call pdf.CreateNewPDF

// load a SVG
var file as FolderItem = SpecialFolder.Desktop.Child("dinosaur.svg")
Var svg As DynaPDFSVGMBS = pdf.LoadSVG(file)

SVG files are available in different flavors. Regular SVG files contain exactly one graphic but SVG files can also contain more than one graphic or symbol. Such symbol files contain no visible graphic if loaded without a symbol name.

In order to determine which kind of SVG file we have in memory, the function
SymbolCount() must be called after the SVG file was loaded. If the return value is greater zero, the file contains multiple symbols. In such a case the desired symbol name must be passed to InsertSVG(), otherwise there is no visible output.
The symbol names that a SVG file contains can be accessed with SymbolName. The function accepts an index from 0 through SymbolCount -1.

See also:

See also LoadSVG function in DynaPDF manual.

DynaPDFMBS.LoadSVG(path as String) as DynaPDFSVGMBS   New in 26.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Opens the specified SVG file and returns the SVG parser instance on success.

SVG files are available in different flavors. Regular SVG files contain exactly one graphic but SVG files can also contain more than one graphic or symbol. Such symbol files contain no visible graphic if loaded without a symbol name.

In order to determine which kind of SVG file we have in memory, the function
SymbolCount() must be called after the SVG file was loaded. If the return value is greater zero, the file contains multiple symbols. In such a case the desired symbol name must be passed to InsertSVG(), otherwise there is no visible output.
The symbol names that a SVG file contains can be accessed with SymbolName. The function accepts an index from 0 through SymbolCount -1.

See also:

See also LoadSVG function in DynaPDF manual.

DynaPDFMBS.LoadSVGFromBuffer(data as MemoryBlock) as DynaPDFSVGMBS   New in 26.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All

Opens a SVG file and returns the SVG parser instance on success like LoadSVG(), but
accepts a file buffer as input.

If the function succeeds the return value is a pointer of the SVG parser instance. If the function fails, the return value is nil.

See also:

See also LoadSVGFromBuffer function in DynaPDF manual.

DynaPDFMBS.LoadSVGFromBuffer(data as String) as DynaPDFSVGMBS   New in 26.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All

Opens a SVG file and returns the SVG parser instance on success like LoadSVG(), but
accepts a file buffer as input.

If the function succeeds the return value is a pointer of the SVG parser instance. If the function fails, the return value is nil.

See also:

See also LoadSVGFromBuffer function in DynaPDF manual.

DynaPDFMBS.LockLayer(layer as UInt32) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Unlocks a layer.

See also LockLayer function in DynaPDF manual.

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


The biggest plugin in space...