Platforms to show: All Mac Windows Linux Cross-Platform
Back to DynaPDFMBS class.
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 |
See also LockLayer function in DynaPDF manual.
DynaPDFMBS.MarkTemplateAsWatermark(TemplateHandle as Integer) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 23.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The function adds additional metadata to a template (XObject type Form in PDF terms, see BeginTemplate() or BeginTransparencyGroup() for further information) so that PDF editors like Adobe Acrobat are able to identify the template as watermark.
Watermarks can be deleted with Acrobat and many other PDF editors. DynaPDF can delete such watermarks too with DeleteWatermark() or Optimize().
Returns true on success or false on failure.
See also MarkTemplateAsWatermark function in DynaPDF manual.
DynaPDFMBS.MovePage(source as Integer, dest as Integer) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also MovePage function in DynaPDF manual.
DynaPDFMBS.MoveTo(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 |
See also MoveTo function in DynaPDF manual.
DynaPDFMBS.OpenImportBuffer(Buffer as Memoryblock, PwdType as Integer = 0, Password as string = "") as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 13.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Requires DynaPDF Lite license.
See also:
Some examples using this method:
- /ChartDirector/Place PDF Chart with DynaPDF
- /DynaPDF/PDF Viewer Example
- /DynaPDF/PDF Viewer Example with links
- /DynaPDF/PDFPreview Window
- /DynaPDF/Raster/DynaPDF Display PDF in memory
- /DynaPDF/Split PDF in memory
See also OpenImportBuffer function in DynaPDF manual.
DynaPDFMBS.OpenImportBuffer(Buffer as string, PwdType as Integer = 0, Password as string = "") as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Requires DynaPDF Lite license.
See also:
See also OpenImportBuffer function in DynaPDF manual.
DynaPDFMBS.OpenImportFile(File as folderitem, PwdType as Integer = 0, Password as string = "") as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Requires DynaPDF Lite license.
See also:
Some examples using this method:
- /DynaPDF/collections/collections
- /DynaPDF/Create numbered pages
- /DynaPDF/Display Form Fields
- /DynaPDF/Extract files from Collection PDF
- /DynaPDF/Find and Replace
- /DynaPDF/Interlace PDFs
- /DynaPDF/Million pages test/DynaPDF Database Invoice Example with 1000000 pages
- /DynaPDF/PDF Color Analyze
- /DynaPDF/Raster/DynaPDF Display PDF
- /DynaPDF/Show Javascript
See also OpenImportFile function in DynaPDF manual.
DynaPDFMBS.OpenImportFile(Path as String, PwdType as integer = 0, Password as string = "") as integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Requires DynaPDF Lite license.
See also:
See also OpenImportFile function in DynaPDF manual.
DynaPDFMBS.OpenOutputFile(File as folderitem) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
Some examples using this method:
- /DynaPDF/collections/collections2
- /DynaPDF/Create PDF with Custom Signature
- /DynaPDF/Hello World
- /DynaPDF/metafiles/metafiles
- /DynaPDF/personalize/personalize
- /DynaPDF/Table with Listbox auto width
- /DynaPDF/Tables/older examples/TablePDF multiple page
- /DynaPDF/Tables/older examples/TablePDF single page
- /DynaPDF/text formatting/text formatting Ansi
- /DynaPDF/text formatting/text formatting parallel
See also OpenOutputFile function in DynaPDF manual.
DynaPDFMBS.OpenOutputFile(Path as String) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
See also OpenOutputFile function in DynaPDF manual.
DynaPDFMBS.OpenOutputFileEncrypted(File as folderitem, OpenPwd as string, OwnerPwd as string, KeyLen as Integer, Restrict as Integer) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 16.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This function enables in combination with FlushPages the creation of very large encrypted PDF files with minimal memory usage.
The function can be called in a while statement, e.g. to display a open file dialog if the file could not be opened. Once the function succeeds the PDF file can be finished with CloseFile.
If the function succeeds the return value is true. If the function fails the return value is false.
See also:
See also OpenOutputFileEncrypted function in DynaPDF manual.
DynaPDFMBS.OpenOutputFileEncrypted(Path as String, OpenPwd as string, OwnerPwd as string, KeyLen as integer, Restrict as integer) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This function enables in combination with FlushPages the creation of very large encrypted PDF files with minimal memory usage.
The function can be called in a while statement, e.g. to display a open file dialog if the file could not be opened. Once the function succeeds the PDF file can be finished with CloseFile.
If the function succeeds the return value is true. If the function fails the return value is false.
See also:
See also OpenOutputFileEncrypted function in DynaPDF manual.
DynaPDFMBS.OpenTag(Tag as Integer, Lang as string, AltText as string, Expansion as string, BBox as DynaPDFRectMBS = nil) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Rect: Optional parameter BBox that is required by the tags btFigure and btTable.
BBox must be defined in the current coordinate system that is used to output the corresponding contents. All transformations will be taken into account.
Some examples using this method:
See also OpenTag function in DynaPDF manual.
DynaPDFMBS.OpenTagAnsi(Tag as Integer, Lang as string, AltText as string, Expansion as string, BBox as DynaPDFRectMBS = nil) as boolean Deprecated
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Rect: Optional parameter BBox that is required by the tags btFigure and btTable.
See also OpenTag function in DynaPDF manual.
DynaPDFMBS.OpenTagEx(Tag as integer, Lang as string, AltText as string, Expansion as string, Attributes as String) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 23.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The optional parameter Attributes is a JSON like string. The JSON parser in DynaPDF supports a few extensions to make the definition of additional attributes as easy as possible.
See also OpenTagEx function in DynaPDF manual.
DynaPDFMBS.Optimize(Flags as Integer = 0, Params as DynaPDFOptimizeParamsMBS = nil) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 14.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This repairs also a lot of errors in the PDF and can shrink the PDF size.
After optimize, please close PDF. If you need to further edit it, please import it again in a new environment.
You need to use InitColorManagement to get color conversion working well if needed.
Note that this function requires the DynaPDF Pro.
See also Optimize function in DynaPDF manual.
DynaPDFMBS.PageLink(PosX as Double, PosY as Double, Width as Double, Height as Double, DestPage as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Some examples using this method:
- /DynaPDF/Create PDF with Bookmarks
- /DynaPDF/Create PDF with named destination
- /DynaPDF/Show Annotations
- /DynaPDF/Show Links
See also PageLink function in DynaPDF manual.
DynaPDFMBS.PageLink2(PosX as Double, PosY as Double, Width as Double, Height as Double, NamedDest as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Some examples using this method:
See also PageLink2 function in DynaPDF manual.
DynaPDFMBS.PageLink3(PosX as Double, PosY as Double, Width as Double, Height as Double, NamedDest as string) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 12.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The difference in comparison to PageLink2() is that the named destination can be defined as string.
This makes it possible to create the link, also if you don't have the required information to create the named destination at this point. If the named destination does not exist when the file is closed then the link does nothing. See also, CreateNamedDest().
Return values:
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 PageLink3 function in DynaPDF manual.
DynaPDFMBS.PageLinkEx(PosX as Double, PosY as Double, Width as Double, Height as Double, DestType as Integer, DestPage as Integer, a as Double = 0.0, b as Double = 0.0, c as Double = 0.0, d as Double = 0.0) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also PageLinkEx function in DynaPDF manual.
DynaPDFMBS.PageStatistic(page as Integer = -1) as DynaPDFPageStatisticMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 12.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If page is -1 the current open page is used. Else the plugin uses editpage(page) to open the page and run the statistics on that.
Returns nil on any error or statistic value.
Some examples using this method:
DynaPDFMBS.ParseContent(ParseInterface as DynaPDFParseInterfaceMBS, flags as Integer) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.6 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Requires DynaPDF Pro license.
Some examples using this method:
- /DynaPDF/Extract images
- /DynaPDF/Find and Replace
- /DynaPDF/List fonts in PDF
- /DynaPDF/Parse PDF Content
- /DynaPDF/Parse PDF Content iOS
- /DynaPDF/Text extraction
- /DynaPDF/Text Positions
See also ParseContent function in DynaPDF manual.
DynaPDFMBS.PlaceImage(ImgHandle as Integer, PosX as Double, PosY as Double, Width as Double, Height 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 |
See also PlaceImage function in DynaPDF manual.
DynaPDFMBS.PlaceSigFieldValidateIcon(SigField as Integer, PosX as Double, PosY as Double, Width as Double, Height 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 |
Some examples using this method:
- /DynaPDF/Create PDF with Signature on Windows
- /DynaPDF/signature appearance/signature appearance
- /DynaPDF/signed pdfa/signed pdfa
See also PlaceSigFieldValidateIcon function in DynaPDF manual.
DynaPDFMBS.PlaceTemplate(TmplHandle as Integer, PosX as Double, PosY as Double, Width as Double, Height 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 |
Some examples using this method:
- /ChartDirector/Place PDF Chart with DynaPDF
- /DynaPDF/Create numbered pages
- /DynaPDF/DynaPDF Graphics/Create numbered pages
- /DynaPDF/Letter/Letter with writeftext
- /DynaPDF/Letter/Web Letter
- /DynaPDF/place centered/Clip
- /DynaPDF/place centered/place centered
- /DynaPDF/place centered/place centered and rotate
See also PlaceTemplate function in DynaPDF manual.
DynaPDFMBS.PlaceTemplateEx(TmplHandle as Integer, PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 10.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Some examples using this method:
- /ChartDirector/Place PDF Chart with DynaPDF
- /DynaPDF/DynaPDF Database Invoice Example
- /DynaPDF/DynaPDF Merge 2 to 1
- /DynaPDF/Letter/Letter with writeftext
- /DynaPDF/Million pages test/DynaPDF Database Invoice Example with 1000000 pages
- /DynaPDF/Million pages test/Import page 1000000
- /DynaPDF/Rotate rotated PDF back
- /DynaPDF/Tables/Dynamic Table/DynaPDF Table Multi Page
- /DynaPDF/Tables/DynaPDF Table
- /DynaPDF/Tables/DynaPDF Table Multi Page
See also PlaceTemplateEx function in DynaPDF manual.
DynaPDFMBS.PolygonAnnot(Vertices() as DynaPDFPointMBS, LineWidth as Double, 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 | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 14.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The vertices are connected by straight lines. The path is always closed before it will be drawn. It is not required to close the path explicitly. At least two vertices must be provided.
The coordinates of the vertices are interpretet in current user space. Any transformation that was applied on the coordinate system will be taken into account.
The stroke or fill color can be set to the special constant kNO_COLOR to fill or stroke the polygon. It is not allowed to set both colors to kNO_COLOR since this would result in an invisible annotation.
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.
Some examples using this method:
See also PolygonAnnot function in DynaPDF manual.
DynaPDFMBS.PolygonAnnotAnsi(Vertices() as DynaPDFPointMBS, LineWidth as Double, 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 |
The vertices are connected by straight lines. The path is always closed before it will be drawn. It is not required to close the path explicitly. At least two vertices must be provided.
The coordinates of the vertices are interpretet in current user space. Any transformation that was applied on the coordinate system will be taken into account.
The stroke or fill color can be set to the special constant kNO_COLOR to fill or stroke the polygon. It is not allowed to set both colors to kNO_COLOR since this would result in an invisible annotation.
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 PolygonAnnot function in DynaPDF manual.
DynaPDFMBS.PolyLineAnnot(Vertices() as DynaPDFPointMBS, 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 | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 14.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The vertices are connected by straight lines. At least two vertices must be provided.
The coordinates of the vertices are interpretet in current user space. Any transformation that was applied on the coordinate system will be taken into account.
The parameter FillColor is only used if the line end style of the start or end point has an interior that can be filled. The special constant kNO_COLOR represents a transparent interior.
The stroke color is required and must not be set to kNO_COLOR.
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.
The parameter LineWidth must be in the range 0 through 12 units. Values outside the valid range will be adjusted to the nearest allowed value. A zero line width produces a 1 pixel wide line.
The line end styles can be changed if necessary with SetAnnotLineEndStyle.
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.
Some examples using this method:
See also PolyLineAnnot function in DynaPDF manual.
DynaPDFMBS.PolyLineAnnotAnsi(Vertices() as DynaPDFPointMBS, 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 |
The vertices are connected by straight lines. At least two vertices must be provided.
The coordinates of the vertices are interpretet in current user space. Any transformation that was applied on the coordinate system will be taken into account.
The parameter FillColor is only used if the line end style of the start or end point has an interior that can be filled. The special constant kNO_COLOR represents a transparent interior.
The stroke color is required and must not be set to kNO_COLOR.
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.
The parameter LineWidth must be in the range 0 through 12 units. Values outside the valid range will be adjusted to the nearest allowed value. A zero line width produces a 1 pixel wide line.
The line end styles can be changed if necessary with SetAnnotLineEndStyle.
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 PolyLineAnnot function in DynaPDF manual.
The items on this page are in the following plugins: MBS DynaPDF Plugin.