Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFMBS class.

Previous items Next items

DynaPDFMBS.SetFillColorEx(ParamArray colorvalue as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 9.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the fill color using the values in parameters.
Example
// new DynaPDF Object. Use your own subclass to catch errors in error event
dim pdf as new DynaPDFMBS

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

// destination pdf file
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")

// create new pdf document
call pdf.CreateNewPDF f

// add new page
call pdf.append

// set red text color
call pdf.SetFillColorEx 255,0,0

// set font
call pdf.SetFont "Times", pdf.kfsItalic, 40.0, true, pdf.kcp1252

// write some text
call pdf.WriteFText pdf.ktaCenter, "My first PDF!"

// close page
call pdf.EndPage

// close file
call pdf.CloseFile

// open in users preferred PDF viewer application
f.Launch

Pass as many color values as needed for the current color space. 3 for RGB, 4 for CMYK. All values must be in the range of 0 to 255.

See also:

See also SetFillColorEx function in DynaPDF manual.

DynaPDFMBS.SetFillColorSpace(Colorspace 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 fill color space.

See also SetFillColorSpace function in DynaPDF manual.

DynaPDFMBS.SetFloatPrecision(NumTextDecDigits as UInt32, NumVectDecDigits as UInt32) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function changes the output precision of text and vector coordinates.

The default precision for text and vector graphics is two decimal digits. This corresponds to 7200 DPI. The output precision of bezier curves is one higher as for vector graphics. The maximum output precision is 5 decimal digits.
Note that higher values increase the resulting file size.

NumTextDecDigits: Number decimal digits for text object.
NumVectDecDigits: Number of decimal digits for vector objects.

Returns boolean, true for success.

See also SetFloatPrecision function in DynaPDF manual.

DynaPDFMBS.SetFont(Name as string, Style as Integer = 0, Size as Double = 12, Embed as boolean = true, CP as Integer = &h27) 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 loads a font that can be used for text output and interactive form fields.

The name parameter is converted to unicode.

If font is not found by name, please check SetFontSelMode function.

See also SetFont function in DynaPDF manual.

DynaPDFMBS.SetFontAnsi(Name as string, Style as integer = 0, Size as double = 12, Embed as boolean = true, CodePage as integer = &h27) 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 loads a font that can be used for text output and interactive form fields.
Example
dim pdf as DynaPDFMBS // your PDF object
call pdf.SetFontAnsi("Helvetica", pdf.kfsNone, 10.0, true, pdf.kcp1252)

The name parameter is converted to ANSI.

If font is not found by name, please check SetFontSelMode function.

See also SetFont function in DynaPDF manual.

DynaPDFMBS.SetFontEx(Name as string, Style as Integer = 0, Size as Double = 12, Embed as boolean = true, CodePage as Integer = &h27) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function loads a font that can be used for text output and interactive form fields.

The name parameter is converted to unicode.

If font is not found by name, please check SetFontSelMode function.

Some examples using this method:

See also SetFontEx function in DynaPDF manual.

DynaPDFMBS.SetFontExAnsi(Name as string, Style as Integer = 0, Size as Double = 12, Embed as boolean = true, CodePage as Integer = &h27) 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 loads a font that can be used for text output and interactive form fields.

The name parameter is converted to ANSI.

If font is not found by name, please check SetFontSelMode function.

See also SetFontEx function in DynaPDF manual.

DynaPDFMBS.SetFontOrigin(Origin 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 sets the current font origin that is used to position text strings.

Some examples using this method:

See also SetFontOrigin function in DynaPDF manual.

DynaPDFMBS.SetFontSearchOrder(Order() as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the font search order.

The values in the array use this constants:
kfbtTrueTypeTrueType, TrueType Collections, or OpenType fonts with TrueType outlines
kfbtType1Type1 font
kfbtOpenTypeOpenType font with Postscript outlines
kfbtStdFontPDF Standard font
kfbtDisabled This value can be used to disable a specific font format.

The array has 4 values.

See also SetFontSearchOrder function in DynaPDF manual.

DynaPDFMBS.SetFontSearchOrderEx(Order1 as Integer, Order2 as Integer, Order3 as Integer, Order4 as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function changes the font search order in the same way as SetFontSearchOrder() but it does not use an array to set the search order to improve compatibility to programming languages with limited array support.

use the font base constants.

See also SetFontSearchOrderEx function in DynaPDF manual.

DynaPDFMBS.SetFontSelMode(Mode 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 selection mode.

See also SetFontSelMode function in DynaPDF manual.

DynaPDFMBS.SetFontWeight(Weight 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 font weight specifies the thickness or boldness of a font.

See also SetFontWeight function in DynaPDF manual.

DynaPDFMBS.SetGStateFlags(Flags as Integer, Reset 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 sets optional flags affecting the graphics state and coordinate handling.
Example

// set the flag to use image colorspace:
Call pdf.SetGStateFlags(MyDynaPDFMBS.kgfUseImageColorSpace, False)

Some examples using this method:

See also SetGStateFlags function in DynaPDF manual.

DynaPDFMBS.SetIconColor(ColorValue 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 icon color is used for the closed state of a text annotation.

See also SetIconColor function in DynaPDF manual.

DynaPDFMBS.SetImportFlags(Flags 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 sets optional flags to control the import of external PDF files.
Example
// set flags to import all
Dim flags As Integer = Bitwise.BitOr(pdf.kifImportAsPage, pdf.kifImportAll)
Call pdf.SetImportFlags(flags)

Some examples using this method:

See also SetImportFlags function in DynaPDF manual.

DynaPDFMBS.SetImportFlags2(Flags as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function sets optional flags to control the import of external PDF files.

Some examples using this method:

See also SetImportFlags2 function in DynaPDF manual.

DynaPDFMBS.SetItalicAngle(value 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 property ItalicAngle is used to emulate an italic font if the font is not available in an italic style.

See also SetItalicAngle function in DynaPDF manual.

DynaPDFMBS.SetJPEGQuality(Value 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 sets the quality of JPEG compressed images in percent if JPEG compression is used.

Some examples using this method:

See also SetJPEGQuality function in DynaPDF manual.

DynaPDFMBS.SetLanguage(ISOTag 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 property specifies the language of the document.

See also SetLanguage function in DynaPDF manual.

DynaPDFMBS.SetLeading(value 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 sets the leading that will be used by the functions AddContinueText() and WriteFText() to calculate the distance between two text lines.

This is for setting the line height.

See also SetLeading function in DynaPDF manual.

DynaPDFMBS.SetLicenseKey(Value as string)   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use SetLicenseKeyGlobal instead.
Use this function to enter your license key.
Example
dim pdf as DynaPDFMBS // your DynaPDF object
pdf.SetLicenseKey("1234567890") // enter your code here

If the value represents a correct license key the demo string does not longer appear on PDF pages. Once a correct key was set, it will be active until the library is unloaded or the current PDF object is released. Note that the key must be entered for each PDF object or process of a multi-threading application separately.

The license key must not be stored in the registry or other files in an unencrypted form.

You need to buy a license key from MBS.
The key will unlock the library to not run in demo mode.

Pro license is required for the following functions:

  • BeginTransparencyGroup
  • ConvertColors
  • Create3DAnnot
  • CreateSoftMask
  • FlattenForm
  • GetPageText
  • ImportPage and ImportPageEx
  • ParseContent
  • RenderAnnotOrField
  • RenderPage
  • SetCMapDir
  • SetExtColorSpace, SetExtFillColorSpace and SetExtStrokeColorSpace.
  • SetUseGlobalImpFiles

Lite is required for:
  • AddRenderingIntent and AddRenderingIntentEx
  • CreateFormFields
  • CloseFileEx
  • ConvertEMFSpool
  • CreateCollection
  • CreateExtGState
  • InsertMetafile and InsertMetafileEx
  • OpenImportBuffer, OpenImportFile and OpenImportStream
  • SetPDFVersion for PDF/A and PDF/X

And all functions relaying on those functions internally.

See also SetLicenseKey function in DynaPDF manual.

DynaPDFMBS.SetLicenseKeyGlobal(Value as string)   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 18.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Private method to avoid you call this on an object.

Please call shared method in app.open.
Because if you make a new object and set key, it's too late.

See also:

DynaPDFMBS.SetLineAnnotParms(Handle as UInt32, FontHandle as Integer, FontSize as Double, Params as DynaPDFLineAnnotParameterMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 14.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function sets or changes the properties of a line annotation relating to measure lines.

The parameter Parms can be set to nil to delete all measure line specific values. The parameters FontHandle and FontSize will be ignored in this case.
The member Caption specifies whether the parameter Content of the function LineAnnot should be used as caption of the measure line. Although a measure line can display the string in a PopUp annotation like ordinary line annotations, this is not recommended and not fully supported in Adobe's Acrobat or Reader.
If Caption is true (recommended), the caption is drawn horizontally centered either on top or inside the measure line. The text position can be changed from its normal position with the members CaptionOffsetX and CaptionOffsetY.
The parameter FontHandle can be used to specify an arbitrary font that should be used to draw the caption. Although it is possible to use any font or font size greater 0 with DynaPDF, a PDF viewer will change the font and font size to it's default values when the annotation will be edited since line annotations support no property to specify the font or font size.
Function Reference

The default font to draw the caption is Helvetica and the default font size is 9 units. In order to use the default font set the parameter FontHandle to -1. The default font size is used if the parameter FontSize is set to to zero.

Returns true on success or false on failure.

See also SetLineAnnotParms function in DynaPDF manual.

DynaPDFMBS.SetLineCapStyle(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 sets the line cap style that specifies how the endpoint of a line will be drawn.

See also SetLineCapStyle function in DynaPDF manual.

DynaPDFMBS.SetLineDashPattern(Dash as string, Phase 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 line dash pattern controls the pattern of dashes and gaps used to stroke paths.

See also SetLineDashPattern function in DynaPDF manual.

DynaPDFMBS.SetLineDashPattern2(dash() as double, Phase as double) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 20.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets a line dash pattern with a given array.

Returns true on success.
If array is nil, the pattern is removed.

See also SetLineDashPattern2 function in DynaPDF manual.

DynaPDFMBS.SetLineDashPatternEx(dash as memoryblock, NumValues as Integer, Phase as Integer) as Boolean   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use SetLineDashPattern2 instead.
The function sets a line dash pattern in the same way as SetLineDashPattern().

dash is a memoryblock with doubles.
So dash.size=NumValues*8.

See also:

See also SetLineDashPatternEx function in DynaPDF manual.

DynaPDFMBS.SetLineDashPatternEx(dash() as double, Phase as integer) as Boolean   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 17.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use SetLineDashPattern2 instead.
Sets a line dash pattern with a given array.

However, this version accepts an array of doubles instead of a string value.
Returns true on success.
See SetLineDashPattern for more details.

If array is nil, the pattern is removed.

See also:

See also SetLineDashPatternEx function in DynaPDF manual.

DynaPDFMBS.SetLineJoinStyle(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 sets the line join style which specifies how two line segments are connected.

See also SetLineJoinStyle function in DynaPDF manual.

DynaPDFMBS.SetLineWidth(value 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 sets the line width used to stroke paths.

See also SetLineWidth function in DynaPDF manual.

DynaPDFMBS.SetLinkHighlightMode(Mode 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 sets the highlight mode that is used by link annotations.

Some examples using this method:

See also SetLinkHighlightMode function in DynaPDF manual.

DynaPDFMBS.SetListFont(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
The function marks an arbitrary font as list font.

Some examples using this method:

See also SetListFont function in DynaPDF manual.

DynaPDFMBS.SetMatrix(Matrix as DynaPDFMatrixMBS) 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 left multiplies the current transformation matrix with the new one.

Some examples using this method:

See also SetMatrix function in DynaPDF manual.

DynaPDFMBS.SetMaxErrLogMsgCount(value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the maximum number of error log messages kept in memory.

See also SetMaxErrLogMsgCount function in DynaPDF manual.

DynaPDFMBS.SetMaxFieldLen(TxtField as Integer, MaxLen 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 maximum count of characters which can be entered into a text field.

A value of zero determines that the string length should not be restricted.

See also SetMaxFieldLen function in DynaPDF manual.

DynaPDFMBS.SetMetaConvFlags(Flags 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 sets specific flags to control the conversion of metafiles.

See also SetMetaConvFlags function in DynaPDF manual.

DynaPDFMBS.SetMetadata(ObjType as Integer, Handle as Integer, Buffer as Memoryblock) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 15.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function sets or replaces the XMP metadata stream of a specific object.

The function deletes the XMP stream if empty buffer will be provided.

If the global XMP stream of the Catalog object should be replaced then proceed as follows:

  • Set the wished output PDF version with SetPDFVersion.
  • Get a preview of the XMP stream with GetMetadata.
  • Modify the returned stream as needed and save it with SetMetadata, finished!

The above steps make sure that the XMP metadata and document info contain the same values. This is especially important for PDF standards like PDF/A or PDF/X. DynaPDF makes sure that the creation and modification date will not be changed when closing the file.

Returns true on success and false on failure.

See also:

See also SetMetadata function in DynaPDF manual.

DynaPDFMBS.SetMetadata(ObjType as Integer, Handle as Integer, Buffer as String) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 15.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function sets or replaces the XMP metadata stream of a specific object.

The function deletes the XMP stream if empty buffer will be provided.

If the global XMP stream of the Catalog object should be replaced then proceed as follows:

  • Set the wished output PDF version with SetPDFVersion.
  • Get a preview of the XMP stream with GetMetadata.
  • Modify the returned stream as needed and save it with SetMetadata, finished!

The above steps make sure that the XMP metadata and document info contain the same values. This is especially important for PDF standards like PDF/A or PDF/X. DynaPDF makes sure that the creation and modification date will not be changed when closing the file.

Returns true on success and false on failure.

See also:

See also SetMetadata function in DynaPDF manual.

DynaPDFMBS.SetMiterLimit(value 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
Sets the miter limit.

See also SetMiterLimit function in DynaPDF manual.

DynaPDFMBS.SetNeedAppearance(value as boolean) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the appearance flag.

See also SetNeedAppearance function in DynaPDF manual.

DynaPDFMBS.SetNumberFormat(TxtField as Integer, Sep as Integer, DecPlaces as Integer, NegStyle as Integer, CurrStr as string, Prepend 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
The function restricts the allowed input characters of a text field to numbers and formats the resulting string as specified.

See also SetNumberFormat function in DynaPDF manual.

DynaPDFMBS.SetOCGContUsage(Handle as UInt32, Value as DynaPDFOCGContUsageMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 15.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates or changes the Content Usage dictionary of an OCG.

See dynapdf_help.pdf manual for details.
If the function succeeds the return value is true. If the function fails the return value is false.

See also SetOCGContUsage function in DynaPDF manual.

DynaPDFMBS.SetOCGState(Handle as UInt32, On as Boolean, SaveState as Boolean) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 15.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Changes the visibility state of an OCG or layer.

If the parameter SaveState is true, the new state is also saved in the PDF file. Otherwise, the state is only changed temporarily so that the whished state can be rendered with RenderPage or RenderPageToImage for example.
Note that only the new state of the current OCG will be be saved. If the state of other OCGs were changed beforehand, while SaveState was set to false, then these changes will not be considered.

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

Some examples using this method:

See also SetOCGState function in DynaPDF manual.

DynaPDFMBS.SetOpacity(value 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 sets the opacity value which is used to render the appearance of a text annotation.

See also SetOpacity function in DynaPDF manual.

DynaPDFMBS.SetOrientation(Value 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 sets the orientation of a page.

Some examples using this method:

See also SetOrientation function in DynaPDF manual.

DynaPDFMBS.SetOrientationEx(Value 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 orientation of a page, incl. important page properties such as the width and height, and the coordinate system.

Some examples using this method:

See also SetOrientationEx function in DynaPDF manual.

DynaPDFMBS.SetPageCoords(PageCoords 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 native coordinate system of the Portable Document Format is bottom up.

Value can be kpcTopDown or kpcBottomUp. Default is kpcBottomUp.

Some examples using this method:

See also SetPageCoords function in DynaPDF manual.

DynaPDFMBS.SetPageFormat(Value 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 sets a predefined page or paper format.


Common paper formats and sizes in points:

FormatSize in units (Width x Height)
DIN A3842.0 x 1191.0
DIN A4595.0 x 842.0
DIN A5419.0 x 595.0
DIN B4709.0 x 1001.0
DIN B5499.0 x 709.0
DIN B6354.0 x 499.0
DIN C3918.0 x 1298.0
DIN C4649.0 x 918.0
DIN C5459.0 x 649.0
DIN C6323.0 x 459.0
DIN C65323.0 x 649.0
DIN DL312.0 x 624.0
DIN E4623.0 x 879.0
DIN E5439.0 x 624.0
DIN E6312.0 x 439.0
DIN E65312.0 x 624.0
DIN M5439.0 x 632.0
DIN M65317.0 x 632.0
US Legal612.0 x 1008.0
US Letter612.0 x 792.0

Some examples using this method:

See also SetPageFormat function in DynaPDF manual.

Previous items Next items

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


The biggest plugin in space...