Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFMBS class.

Previous items Next items

DynaPDFMBS.AttachFileEx(Buffer as Memoryblock, Filename as string, Description as string, Compress as boolean) 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 attaches a file to the document in the same way as AttachFile() but accepts a file buffer instead of a file path.

See also:

Some examples using this method:

See also AttachFileEx function in DynaPDF manual.

DynaPDFMBS.AttachFileEx(Buffer as string, Filename as string, Description as string, Compress as boolean) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function attaches a file to the document in the same way as AttachFile() but accepts a file buffer instead of a file path.
Example
dim pdf as DynaPDFMBS // your dynapdf object

// add embedded file to PDF
const Compressed = true
call pdf.AttachFileEx("This is hidden text in an attached file.", "attachment.txt", "", Compressed)

See also:

See also AttachFileEx function in DynaPDF manual.

DynaPDFMBS.AutoTemplate(Templ 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
To insert a template automatically on newly created pages, use the function AutoTemplate().

See also AutoTemplate function in DynaPDF manual.

DynaPDFMBS.BeginContinueText(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
This function prepares the output of multiple text lines which use the graphics state parameter Leading as line height, or the font size if Leading is not set.

Some examples using this method:

See also BeginContinueText function in DynaPDF manual.

DynaPDFMBS.BeginLayer(OCG as UInt32) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function opens a layer in the current open page or template.

If the function succeeds the return value is true. If the function fails the return value is false.

See also BeginLayer function in DynaPDF manual.

DynaPDFMBS.BeginPageTemplate(Name as String, UseAutoTemplates as boolean) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a new page template with given name.

This function creates or opens a page template for editing. Page templates are hidden pages which can be added to the document or overlaid on existing pages via JavaScript.

The usage of the function is like Append() or EditPage(). If the template does already exist then it will be opened for editing. Page templates support form fields and annotations but it is not allowed to add article beads to them.

See also BeginPageTemplate function in DynaPDF manual.

DynaPDFMBS.BeginPattern(PatternType as Integer, TilingType as Integer, Width as Double, Height as Double) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function creates a new tiling pattern.

See also BeginPattern function in DynaPDF manual.

DynaPDFMBS.BeginTemplate(Width as Double, Height as Double) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Begins a new template

See also BeginTemplate function in DynaPDF manual.

DynaPDFMBS.BeginTemplateEx(BBox as DynaPDFRectMBS, Matrix as DynaPDFMatrixMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Begins a new template

The plugin passes nil to the library for the bbox or the matrix parameter if they are nil.

DynaPDFMBS.BeginTransparencyGroup(x1 as Double, y1 as Double, x2 as Double, y2 as Double, Isolated as Boolean, Knockout as Boolean, CS as Integer, CSHandle as Int32) as Int32

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Begins a new transparency group.

CS: color space, pass kes* constants.

Requires DynaPDF Pro license.

See also BeginTransparencyGroup function in DynaPDF manual.

DynaPDFMBS.Bezier_1_2_3(x1 as Double, y1 as Double, x2 as Double, y2 as Double, x3 as Double, y3 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
Adds a bezier path to the pdf.

Some examples using this method:

See also Bezier_1_2_3 function in DynaPDF manual.

DynaPDFMBS.Bezier_1_3(x1 as Double, y1 as Double, x3 as Double, y3 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
Adds a bezier path to the pdf.

Some examples using this method:

See also Bezier_1_3 function in DynaPDF manual.

DynaPDFMBS.Bezier_2_3(x2 as Double, y2 as Double, x3 as Double, y3 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
Adds a bezier path to the pdf.

Some examples using this method:

See also Bezier_2_3 function in DynaPDF manual.

DynaPDFMBS.CalcWidthHeight(OrgWidth as Double, OrgHeight as Double, ScaledWidth as Double, ScaledHeight as Double) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function calculates the scaled width or height of a given size in the same way as InsertImage() or PlaceTemplate().

Some examples using this method:

See also CalcWidthHeight function in DynaPDF manual.

DynaPDFMBS.CaretAnnot(PosX as Double, PosY as Double, Width as Double, Height 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 iOS Targets
method DynaPDF MBS DynaPDF Plugin 15.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a caret annotation.

This type of annotation is typically used to mark a position on a page where a user should add or edit text.
If the coordinate system is bottom-up the point PosX, PosY defines the lower left corner of the bounding rectangle. If the coordinate system is top-down it defines the upper left corner.
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 CaretAnnot function in DynaPDF manual.

DynaPDFMBS.CaretAnnotAnsi(PosX as Double, PosY as Double, Width as Double, Height as Double, ColorValue 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 15.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use the non ANSI function instead.
Creates a caret annotation.

This type of annotation is typically used to mark a position on a page where a user should add or edit text.
If the coordinate system is bottom-up the point PosX, PosY defines the lower left corner of the bounding rectangle. If the coordinate system is top-down it defines the upper left corner.
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 CaretAnnot function in DynaPDF manual.

DynaPDFMBS.ChangeAnnotName(Handle as Integer, Name as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function changes or deletes the optional name of an annotation.

The Name parameter is converted to unicode.

See also ChangeAnnotName function in DynaPDF manual.

DynaPDFMBS.ChangeAnnotNameAnsi(Handle as Integer, Name as string) as boolean   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use the non ANSI function instead.
This function changes or deletes the optional name of an annotation.

The Name parameter is converted to ANSI.

See also ChangeAnnotName function in DynaPDF manual.

DynaPDFMBS.ChangeAnnotPos(Handle 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
This function changes the position and size of an annotation.

See also ChangeAnnotPos function in DynaPDF manual.

DynaPDFMBS.ChangeBookmark(ABmk as Integer, Text as string, Parent as Integer, DestPage as Integer, Open as Boolean) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function changes an existing bookmark.

The text parameter is converted to unicode.

See also ChangeBookmark function in DynaPDF manual.

DynaPDFMBS.ChangeBookmarkAnsi(ABmk as Integer, Text as string, Parent as Integer, DestPage as Integer, Open as Boolean) as boolean   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use the non ANSI function instead.
This function changes an existing bookmark.

The text parameter is converted to ANSI.

See also ChangeBookmark function in DynaPDF manual.

DynaPDFMBS.ChangeFont(Handle 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
This function changes or sets the font to the one defined by the parameter AHandle.

See also ChangeFont function in DynaPDF manual.

DynaPDFMBS.ChangeFontEx(Handle as integer, FontSize as double, Style as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Changes or sets the font to the one of the parameter Handle.

Handle must be a valid font handle that was returned by SetFont(), SetFontEx(), SetCIDFont(), or LoadFont().
The style flags should be the same as in the initial SetFont() call with exception of the flags fsUnderline or fsStriked which can be used to underline or strikeout text.
The parameter FontSize must be greater zero.

If the function succeeds the return value is true. If the function fails the return value is false.

See also ChangeFontEx function in DynaPDF manual.

DynaPDFMBS.ChangeFontStyle(Style 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
This function changes the style of the current font.

Some examples using this method:

See also ChangeFontStyle function in DynaPDF manual.

DynaPDFMBS.ChangeFontStyleEx(Style 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
The function changes the font style of a font like ChangeFontStyle() but it accepts also the font styles fsBold and fsItalic.

See also ChangeFontStyleEx function in DynaPDF manual.

DynaPDFMBS.ChangeJavaScript(Handle as Integer, Text as string) 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 replaces a global JavaScript with a new one.

The text parameter is converted to unicode.

See also ChangeJavaScript function in DynaPDF manual.

DynaPDFMBS.ChangeJavaScriptAction(Handle as Integer, Text as string) 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 replaces the script of a JavaScript action with a new one.

The text parameter is converted to unicode.

See also ChangeJavaScriptAction function in DynaPDF manual.

DynaPDFMBS.ChangeJavaScriptActionAnsi(Handle as Integer, Text as string) as Boolean   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use the non ANSI function instead.
The function replaces the script of a JavaScript action with a new one.

The text parameter is converted to ANSI.

See also ChangeJavaScriptAction function in DynaPDF manual.

DynaPDFMBS.ChangeJavaScriptAnsi(Handle as Integer, Text as string) as Boolean   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use the non ANSI function instead.
The function replaces a global JavaScript with a new one.

The text parameter is converted to ANSI.

See also ChangeJavaScript function in DynaPDF manual.

DynaPDFMBS.ChangeJavaScriptName(Handle as Integer, Text as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function changes the name of a global JavaScript.

The text parameter is converted to unicode.

See also ChangeJavaScriptName function in DynaPDF manual.

DynaPDFMBS.ChangeJavaScriptNameAnsi(Handle as Integer, Text as string) as Boolean   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use the non ANSI function instead.
This function changes the name of a global JavaScript.

The text parameter is converted to ANSI.

See also ChangeJavaScriptName function in DynaPDF manual.

DynaPDFMBS.ChangeLinkAnnot(Handle as Integer, URL as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function changes the link of a file link or web link annotation.

See also ChangeLinkAnnot function in DynaPDF manual.

DynaPDFMBS.ChangeNamedDest(ObjType as Integer, Handle as Integer, Name as String) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Changes the name of a named destination.

ObjType: Object type to which the handle belongs like kotAction, kotAnnotation, kotBookmark or kotPageLink.
Handle: Object handle
Name: New destination name

Named destinations can be accessed by link annotations, bookmarks, and actions. For link annotations the object type otPageLink or otAnnotation can be used.

If the function succeeds the return value is true. If the function fails the return value is false.

See also ChangeNamedDest function in DynaPDF manual.

DynaPDFMBS.ChangeOCGName(Handle as Integer, Name as String) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Changes the name of an Optional Content Group (OCG).

Returns true on success and false in case of error.

See also ChangeOCGName function in DynaPDF manual.

DynaPDFMBS.ChangeSeparationColor(CSHandle as UInt32, NewColor as UInt32, AlternateExtColorSpace as Integer, AltHandle as Integer = -1) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function changes the color of a separation color space.
Example
// your instance
dim pdf as DynaPDFMBS

// Create new separation color
dim ColorSpaceHandle as Integer = pdf.CreateSeparationCS("test",DynaPDFMBS.kcsDeviceCMYK,-1,DynapdfMBS.CMYK(0,0,0,100))
call pdf.SetExtColorSpace(ColorSpaceHandle)

// draw something
call pdf.SetfillColor(255) // 100% of the separation color test
call pdf.DrawCircle(193,389,66, pdf.kfmFill)

// change it to red
call pdf.ChangeSeparationColor(ColorSpaceHandle, 255, DynaPDFMBS.kcsDeviceRGB, -1)

The new color value must be defined in the alternate color space. The alternate color space can be any device or ICC based color space including Lab. If a non-device color space is used, the parameter AltHandle must be set to the color space handle of the alternate color space.

Returns true on success or false on failure.
CSHandle is the index in the colorspace table, not the reference to the C++ object. So do not pass handle property from DynaPDFColorSpaceMBS, but the Index property.

See also ChangeSeparationColor function in DynaPDF manual.

DynaPDFMBS.CheckCollection 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 checks whether user defined data fields in embedded files are consistently defined with
collection fields.

Some examples using this method:

See also CheckCollection function in DynaPDF manual.

DynaPDFMBS.CheckConformance(ConformanceType as Integer, CheckOptions 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
The functions checks whether the PDF file is compatible to a specific PDF standard or PDF version depending the parameter Type and modifies anything that is required to get the file compatible to the standard depending on the check options.

Some examples using this method:

See also CheckConformance function in DynaPDF manual.

DynaPDFMBS.CheckFieldNames as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function checks all currently defined interactive form fields for invalid duplicate field names.

See also CheckFieldNames function in DynaPDF manual.

DynaPDFMBS.CircleAnnot(PosX as Double, PosY as Double, Width as Double, Height as Double, LineWidth as Double, FillColor as UInt32, StrokeColor as UInt32, ColorSpace as Integer, Author as string, Subject as string, Comment as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function draws a circle annotation on the current open page.

If the parameters Width and Height are equal the function draws a circle, an ellipse otherwise. If the annotation should be drawn without a border, set the parameter LineWidth zo zero or StrokeColor to the special constant kNO_COLOR.
If the interior should be transparent set FillColor to the special constant kNO_COLOR.
Although the line width can be set to any positive floating point value, Adobe's Acrobat or Reader restrict the line width to 0 through 12 units. The line width should be restricted in the same way to avoid issues in Adobe viewer products.

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 CircleAnnot function in DynaPDF manual.

DynaPDFMBS.CircleAnnotAnsi(PosX as Double, PosY as Double, Width as Double, Height as Double, LineWidth as Double, FillColor as UInt32, StrokeColor as UInt32, ColorSpace as Integer, Author as string, Subject as string, Comment as string) as Integer   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use the non ANSI function instead.
The function draws a circle annotation on the current open page.

If the parameters Width and Height are equal the function draws a circle, an ellipse otherwise. If the annotation should be drawn without a border, set the parameter LineWidth zo zero or StrokeColor to the special constant kNO_COLOR.
If the interior should be transparent set FillColor to the special constant kNO_COLOR.
Although the line width can be set to any positive floating point value, Adobe's Acrobat or Reader restrict the line width to 0 through 12 units. The line width should be restricted in the same way to avoid issues in Adobe viewer products.

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 CircleAnnot function in DynaPDF manual.

DynaPDFMBS.ClearAutoTemplates as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function deletes the array of templates which are automatically added to newly created pages.

See also ClearAutoTemplates function in DynaPDF manual.

DynaPDFMBS.ClearErrorLog

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 11.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Clears the error log.

See also ClearErrorLog function in DynaPDF manual.

DynaPDFMBS.ClearHostFonts as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function deletes the array of fonts included in all currently defined font search paths.

See also ClearHostFonts function in DynaPDF manual.

DynaPDFMBS.ClearPageGraphics

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 19.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Clears the page graphics objects.

This method clears graphics object.

As the graphics object keeps a reference to DynaPDFMBS object and the DynaPDF object references the graphics object, this call may be required to make sure the circular reference is cleared.

Automatically called in Append, EndPage, CloseFile, ImportPDFFile, ImportPDFPage and CloseFileEx.

DynaPDFMBS.ClipPath(ClipMode as Integer, FillMode 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
This function marks the current path as clipping path.

See also ClipPath function in DynaPDF manual.

DynaPDFMBS.CloseAndSignFile(CertFile as folderitem, Password as string, Reason as string, Location as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function finishes the PDF file, digitally signs it, and frees all used resources if the file was not created in memory.

Only for 1024 bit keys. For longer keys, check our custom signature example.

Some examples using this method:

See also CloseAndSignFile function in DynaPDF manual.

DynaPDFMBS.CloseAndSignFileEx(OpenPwd as string, OwnerPwd as string, KeyLen as Integer, Restrict as Integer, CertFile as folderitem, Password as string, Reason as string, Location as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function finishes the PDF file, encrypts it, digitally signs it, and frees all used resources if the file was not created in memory.

If you need more than 1024 bit keys, please check our custom signatur example, which shows how to signatures with 2048 or 4096 bit keys and the CloseAndSignFileExt function.

See also CloseAndSignFileEx function in DynaPDF manual.

DynaPDFMBS.CloseAndSignFileExt(SigParams as DynaPDFSigParmsMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function closes the PDF file and returns either the file hash or the byte ranges to be signed by an external signature handler.

Some examples using this method:

See also CloseAndSignFileExt function in DynaPDF manual.

DynaPDFMBS.CloseAndSignPDFFile(OutputFile as FolderItem, CertificateData as String, Password as String, ContactInfo as String = "", Location as String = "", Reason as String = "") as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 15.0 ❌ No ✅ Yes ❌ No ❌ No All
Closes and signs file.

This uses pdf_signature.cpp example code from DynaPDF.
The function will on Windows use functions from Crypt DLL on Windows.
Internally calls CloseAndSignFileExt, OpenOutputFile and FinishSignature.
Returns true on success and false on failure.

Loads certificate from provided certificate file data.

Version 15.1 allows OutputFile to be nil.

If you need more than 1024 bit keys, please check our custom signatur example, which shows how to signatures with 2048 or 4096 bit keys and the CloseAndSignFileExt function.

Some examples using this method:

Previous items Next items

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


The biggest plugin in space...