Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFMBS class.

DynaPDFMBS.WatermarkAnnot(PosX as Double, PosY as Double, Width as Double, Height as Double) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 17.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a Watermark annotation.
Example
// create watermark annotation
Var AnnotHandle As Integer = pdf.WatermarkAnnot(100, 100, 300, 200)

// it's empty initially

// so we create an annotation appearance stream
Var x As Integer = pdf.CreateAnnotAP(AnnotHandle)

// set a color and draw rectangle
Call pdf.SetFillColor(&cFF7777)
Call pdf.Rectangle 0, 0, 300, 200, pdf.kfmFill

Call pdf.SetStrokeColor(&c000000)
Call pdf.SetFillColor(&c000000)
Call pdf.SetFont("Helvetica", pdf.kfsBold, 30)
Call pdf.WriteText(20, 20, "Hello World")

// close template
Call pdf.EndTemplate

Watermark annotations have no interactive elements like other annotation types. This property is useful in many cases because it is usually not possible to select or change the contents of a watermark annotation in viewer applications.
The annotation has no appearance after it was created. Call CreateAnnotAP to create an appearance template for the annotation. After the appearance template was created you can draw text, images or vector graphics into it. The template must be closed with EndTemplate when finished. It is also possible to import an external page or EMF contents into the template.
Watermark annotations can be shared on multiple pages. To place the annotation on other pages call AddAnnotToPage.

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

DynaPDFMBS.WebLink(PosX as Double, PosY as Double, Width as Double, Height as Double, aText 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
The function inserts a web link onto the current open page.

The text parameter is converted to unicode.

See also WebLink function in DynaPDF manual.

DynaPDFMBS.WebLinkAnsi(PosX as Double, PosY as Double, Width as Double, Height as Double, aText as string) as Integer   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 inserts a web link onto the current open page.

The text parameter is converted to ANSI.

See also WebLink function in DynaPDF manual.

DynaPDFMBS.WriteAngleText(aText as string, Angle as Double, PosX as Double, PosY as Double, Radius as Double, YOrigin 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 prints a string in a user defined angle around a radius.

The text parameter is converted to unicode.

See also:

Some examples using this method:

See also WriteAngleText function in DynaPDF manual.

DynaPDFMBS.WriteAngleText(glyphs() as Integer, Angle as Double, PosX as Double, PosY as Double, Radius as Double, YOrigin as Double) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function prints a string in a user defined angle around a radius.

This version takes an array of integers. So if you are using the kcpUnicode on SetFont, please pass an array of unicode codepoints. If you use kcpGlyphIndexes, please pass an array of glyph values.

See also:

See also WriteAngleText function in DynaPDF manual.

DynaPDFMBS.WriteAngleTextAnsi(aText as string, Angle as Double, PosX as Double, PosY as Double, Radius as Double, YOrigin as Double) 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 prints a string in a user defined angle around a radius.

The text parameter is converted to ANSI, so use only with SetFont with kcp1252.

See also WriteAngleText function in DynaPDF manual.

DynaPDFMBS.WriteAngleTextDirect(aText as string, Angle as Double, PosX as Double, PosY as Double, Radius as Double, YOrigin as Double) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function prints a string in a user defined angle around a radius.

The text parameter is not converted, so pass a string in the right encoding.

See also:

DynaPDFMBS.WriteAngleTextDirect(glyphs() as Integer, Angle as Double, PosX as Double, PosY as Double, Radius as Double, YOrigin as Double) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function prints a string in a user defined angle around a radius.

This version takes an array of integers. So pass in values in the encoding you are using. This can be glyph values or bytes in any encoding you selected in the SetFont method.

See also:

DynaPDFMBS.WriteFText(Align as Integer, aText 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
Instead of printing text on a line by line basis it is also possible to output text into a rectangle by applying a formatting algorithm.

The text parameter is converted to unicode.

The PageBreak event is called when needed by the plugin.

See also:

Some examples using this method:

See also WriteFText function in DynaPDF manual.

DynaPDFMBS.WriteFText(Align as Integer, glyphs() as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Instead of printing text on a line by line basis it is also possible to output text into a rectangle by applying a formatting algorithm.

This version takes an array of integers. So if you are using the kcpUnicode on SetFont, please pass an array of unicode codepoints. If you use kcpGlyphIndexes, please pass an array of glyph values.


The PageBreak event is called when needed by the plugin.

See also:

See also WriteFText function in DynaPDF manual.

DynaPDFMBS.WriteFTextAnsi(Align as Integer, aText 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.
Instead of printing text on a line by line basis it is also possible to output text into a rectangle by applying a formatting algorithm.

The text parameter is converted to ANSI, so use only with SetFont with kcp1252.

The PageBreak event is called when needed by the plugin.

See also WriteFText function in DynaPDF manual.

DynaPDFMBS.WriteFTextDirect(Align as Integer, aText as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Instead of printing text on a line by line basis it is also possible to output text into a rectangle by applying a formatting algorithm.

The text parameter is not converted, so pass a string in the right encoding.

The PageBreak event is called when needed by the plugin.

See also:

DynaPDFMBS.WriteFTextDirect(Align as Integer, glyphs() as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Instead of printing text on a line by line basis it is also possible to output text into a rectangle by applying a formatting algorithm.

This version takes an array of integers. So pass in values in the encoding you are using. This can be glyph values or bytes in any encoding you selected in the SetFont method.


The PageBreak event is called when needed by the plugin.

See also:

DynaPDFMBS.WriteFTextEx(PosX as Double, PosY as Double, Width as Double, Height as Double, Align as Integer, glyphs() as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function prints a formatted text exactly in the same way as WriteFText().

This version takes an array of integers. So if you are using the kcpUnicode on SetFont, please pass an array of unicode codepoints. If you use kcpGlyphIndexes, please pass an array of glyph values.


The PageBreak event is called when needed by the plugin.

See also:

See also WriteFTextEx function in DynaPDF manual.

DynaPDFMBS.WriteFTextExAnsi(PosX as Double, PosY as Double, Width as Double, Height as Double, Align as Integer, aText 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 prints a formatted text exactly in the same way as WriteFText().

The text parameter is converted to ANSI, so use only with SetFont with kcp1252.

The PageBreak event is called when needed by the plugin.

See also WriteFTextEx function in DynaPDF manual.

DynaPDFMBS.WriteFTextExDirect(PosX as Double, PosY as Double, Width as Double, Height as Double, Align as Integer, aText as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function prints a formatted text exactly in the same way as WriteFText().

The text parameter is not converted, so pass a string in the right encoding.

The PageBreak event is called when needed by the plugin.

See also:

DynaPDFMBS.WriteFTextExDirect(PosX as Double, PosY as Double, Width as Double, Height as Double, Align as Integer, glyphs() as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function prints a formatted text exactly in the same way as WriteFText().

This version takes an array of integers. So pass in values in the encoding you are using. This can be glyph values or bytes in any encoding you selected in the SetFont method.


The PageBreak event is called when needed by the plugin.

See also:

DynaPDFMBS.WriteStyledText(Align as Integer, StyledText as StyledText, LeadingFactor as double = -1) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Writes styled text.

Same as WriteFText, but calls ConvertStyledText for you to convert the styled text to formatting commands.

LeadingFactor: Added in v21.0. If you pass a value > 0, the plugin will add \LD[] commands to styled text to set leading relative to font size. This way you define the spacing beteween lines. e.g. 1.2.

If you have a problem with the conversion, you can always use ConvertStyledText function directly and inspect what it generates. And you can of course modify it and e.g. convert "* " on a beginning of a line to a list.

See also:

See also WriteStyledText function in DynaPDF manual.

DynaPDFMBS.WriteStyledText(Align as Integer, TextArea as TextArea, LeadingFactor as double = -1) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Writes styled text from TextArea.

Same as WriteFText, but calls ConvertStyledText for you to convert the styled text to formatting commands.

LeadingFactor: Added in v21.0. If you pass a value > 0, the plugin will add \LD[] commands to styled text to set leading relative to font size. This way you define the spacing beteween lines. e.g. 1.2.

If you have a problem with the conversion, you can always use ConvertStyledText function directly and inspect what it generates. And you can of course modify it and e.g. convert "* " on a beginning of a line to a list.

See also:

See also WriteStyledText function in DynaPDF manual.

DynaPDFMBS.WriteStyledTextEx(PosX as Double, PosY as Double, Width as Double, Height as Double, Align as Integer, StyledText as StyledText, LeadingFactor as double = -1) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Writes styled text.

Same as WriteFTextEx, but calls ConvertStyledText for you to convert the styled text to formatting commands.

LeadingFactor: Added in v21.0. If you pass a value > 0, the plugin will add \LD[] commands to styled text to set leading relative to font size. This way you define the spacing beteween lines. e.g. 1.2.

If you have a problem with the conversion, you can always use ConvertStyledText function directly and inspect what it generates. And you can of course modify it and e.g. convert "* " on a beginning of a line to a list.

See also:

Some examples using this method:

See also WriteStyledTextEx function in DynaPDF manual.

DynaPDFMBS.WriteStyledTextEx(PosX as Double, PosY as Double, Width as Double, Height as Double, Align as Integer, TextArea as TextArea, LeadingFactor as double = -1) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Writes styled text from TextArea.

Same as WriteFTextEx, but calls ConvertStyledText for you to convert the styled text to formatting commands.

LeadingFactor: Added in v21.0. If you pass a value > 0, the plugin will add \LD[] commands to styled text to set leading relative to font size. This way you define the spacing beteween lines. e.g. 1.2.

If you have a problem with the conversion, you can always use ConvertStyledText function directly and inspect what it generates. And you can of course modify it and e.g. convert "* " on a beginning of a line to a list.

See also:

See also WriteStyledTextEx function in DynaPDF manual.

DynaPDFMBS.WriteText(PosX as Double, PosY as Double, aText 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 prints a text onto the current open page, template, or pattern.

The text parameter is converted to unicode.

See also:

See also WriteText function in DynaPDF manual.

DynaPDFMBS.WriteText(PosX as Double, PosY as Double, glyphs() as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function prints a text onto the current open page, template, or pattern.

This version takes an array of integers. So if you are using the kcpUnicode on SetFont, please pass an array of unicode codepoints. If you use kcpGlyphIndexes, please pass an array of glyph values.

See also:

See also WriteText function in DynaPDF manual.

DynaPDFMBS.WriteTextAnsi(PosX as Double, PosY as Double, aText 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 prints a text onto the current open page, template, or pattern.

The text parameter is converted to ANSI, so use only with SetFont with kcp1252.

See also WriteText function in DynaPDF manual.

DynaPDFMBS.WriteTextDirect(PosX as Double, PosY as Double, aText as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function prints a text onto the current open page, template, or pattern.

The text parameter is not converted, so pass a string in the right encoding.

See also:

DynaPDFMBS.WriteTextDirect(PosX as Double, PosY as Double, glyphs() as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function prints a text onto the current open page, template, or pattern.

This version takes an array of integers. So pass in values in the encoding you are using. This can be glyph values or bytes in any encoding you selected in the SetFont method.

See also:

DynaPDFMBS.WriteTextMatrix(Matrix as DynaPDFMatrixMBS, glyphs() as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function prints a text onto the current open page, template, or pattern by using a transformation matrix to calculate the position of the string.

This version takes an array of integers. So if you are using the kcpUnicode on SetFont, please pass an array of unicode codepoints. If you use kcpGlyphIndexes, please pass an array of glyph values.

See also:

Some examples using this method:

See also WriteTextMatrix function in DynaPDF manual.

DynaPDFMBS.WriteTextMatrix(Matrix as DynaPDFMatrixMBS, 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 prints a text onto the current open page, template, or pattern by using a transformation matrix to calculate the position of the string.

The text parameter is converted to unicode.

See also:

See also WriteTextMatrix function in DynaPDF manual.

DynaPDFMBS.WriteTextMatrixAnsi(Matrix as DynaPDFMatrixMBS, 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 prints a text onto the current open page, template, or pattern by using a transformation matrix to calculate the position of the string.

The text parameter is converted to ANSI, so use only with SetFont with kcp1252.

See also WriteTextMatrix function in DynaPDF manual.

DynaPDFMBS.WriteTextMatrixDirect(Matrix as DynaPDFMatrixMBS, glyphs() as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function prints a text onto the current open page, template, or pattern by using a transformation matrix to calculate the position of the string.

This version takes an array of integers. So pass in values in the encoding you are using. This can be glyph values or bytes in any encoding you selected in the SetFont method.

See also:

DynaPDFMBS.WriteTextMatrixDirect(Matrix as DynaPDFMatrixMBS, Text as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function prints a text onto the current open page, template, or pattern by using a transformation matrix to calculate the position of the string.

The text parameter is not converted, so pass a string in the right encoding.

See also:

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


The biggest plugin in space...