Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

DynaPDFMBS.SetFontExAnsi(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 Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.3 Yes Yes Yes Yes No
Function: The function loads a font that can be used for text output and interactive form fields.
Notes:
The name parameter is converted to ANSI.
Also check the dynapdf manual on the pdfSetFontExA function.

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

Feedback, Comments & Corrections

DynaPDFMBS.SetFontOrigin(Origin as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function sets the current font origin that is used to position text strings.
Notes: Also check the dynapdf manual on the pdfSetFontOrigin function.

See also SetFontOrigin function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetFontSearchOrder(Order() as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 10.1 Yes Yes Yes Yes No
Function: Sets the font search order.
Notes:
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.

Feedback, Comments & Corrections

DynaPDFMBS.SetFontSearchOrderEx(Order1 as Integer, Order2 as Integer, Order3 as Integer, Order4 as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: 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.
Notes:
Also check the dynapdf manual on the pdfSetFontSearchOrderEx function.
use the font base constants.

See also SetFontSearchOrderEx function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetFontSelMode(Mode as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function changes the font selection mode.
Notes: Also check the dynapdf manual on the pdfSetFontSelMode function.

See also SetFontSelMode function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetFontWeight(Weight as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The font weight specifies the thickness or boldness of a font.
Notes: Also check the dynapdf manual on the pdfSetFontWeight function.

See also SetFontWeight function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetGStateFlags(Flags as Integer, Reset as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function sets optional flags affecting the graphics state and coordinate handling.
Notes: Also check the dynapdf manual on the pdfSetGStateFlags function.

See also SetGStateFlags function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetIconColor(ColorValue as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The icon color is used for the closed state of a text annotation.
Notes: Also check the dynapdf manual on the pdfSetIconColor function.

See also SetIconColor function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetImportFlags(Flags as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function sets optional flags to control the import of external PDF files.
Notes: Also check the dynapdf manual on the pdfSetImportFlags function.

See also SetImportFlags function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetImportFlags2(Flags as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.2 Yes Yes Yes Yes No
Function: The function sets optional flags to control the import of external PDF files.
Notes: Also check the dynapdf manual on the pdfSetImportFlags2 function.

See also SetImportFlags2 function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetItalicAngle(value as Double) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The property ItalicAngle is used to emulate an italic font if the font is not available in an italic style.
Notes: Also check the dynapdf manual on the pdfSetItalicAngle function.

See also SetItalicAngle function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetJPEGQuality(Value as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function sets the quality of JPEG compressed images in percent if JPEG compression is used.
Notes: Also check the dynapdf manual on the pdfSetJPEGQuality function.

See also SetJPEGQuality function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetLanguage(ISOTag as string) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The property specifies the language of the document.
Notes: Also check the dynapdf manual on the pdfSetLanguage function.

See also SetLanguage function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetLeading(value as Double) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function sets the leading that will be used by the functions AddContinueText() and WriteFText() to calculate the distance between two text lines.
Notes:
Also check the dynapdf manual on the pdfSetLeading function.
This is for setting the line height.

See also SetLeading function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetLicenseKey(Value as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: Use this function to enter your license key.
Example:
dim pdf as DynaPDFMBS // your DynaPDF object
pdf.SetLicenseKey("1234567890") // enter your code here
Notes:
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.

Feedback, Comments & Corrections

DynaPDFMBS.SetLineAnnotParms(Handle as UInt32, FontHandle as Integer, FontSize as Double, Params as DynaPDFLineAnnotParameterMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 14.0 Yes Yes Yes Yes No
Function: The function sets or changes the properties of a line annotation relating to measure lines.
Notes:
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.

Feedback, Comments & Corrections

DynaPDFMBS.SetLineCapStyle(Style as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function sets the line cap style that specifies how the endpoint of a line will be drawn.
Notes: Also check the dynapdf manual on the pdfSetLineCapStyle function.

See also SetLineCapStyle function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetLineDashPattern(Dash as string, Phase as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The line dash pattern controls the pattern of dashes and gaps used to stroke paths.
Notes: Also check the dynapdf manual on the pdfSetLineDashPattern function.

See also SetLineDashPattern function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetLineDashPatternEx(dash as memoryblock, NumValues as Integer, Phase as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function sets a line dash pattern in the same way as SetLineDashPattern().
Notes:
dash is a memoryblock with doubles.
So dash.size=NumValues*8.

Also check the dynapdf manual on the pdfSetLineDashPatternEx function.

See also:

See also SetLineDashPatternEx function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetLineDashPatternEx(dash() as double, Phase as integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 17.2 Yes Yes Yes Yes No
Function: Sets a line dash pattern with a given array.
Notes:
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.

Feedback, Comments & Corrections

DynaPDFMBS.SetLineJoinStyle(Style as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function sets the line join style which specifies how two line segments are connected.
Notes: Also check the dynapdf manual on the pdfSetLineJoinStyle function.

See also SetLineJoinStyle function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetLineWidth(value as Double) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function sets the line width used to stroke paths.
Notes: Also check the dynapdf manual on the pdfSetLineWidth function.

See also SetLineWidth function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetLinkHighlightMode(Mode as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function sets the highlight mode that is used by link annotations.
Notes: Also check the dynapdf manual on the pdfSetLinkHighlightMode function.

See also SetLinkHighlightMode function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetListFont(Handle as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function marks an arbitrary font as list font.
Notes: Also check the dynapdf manual on the pdfSetListFont function.

See also SetListFont function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetMatrix(Matrix as DynapdfMatrixMBS) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function left multiplies the current transformation matrix with the new one.
Notes: Also check the dynapdf manual on the pdfSetMatrix function.

See also SetMatrix function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetMaxErrLogMsgCount(value as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Sets the maximum number of error log messages kept in memory.

See also SetMaxErrLogMsgCount function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetMaxFieldLen(TxtField as Integer, MaxLen as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function changes the maximum count of characters which can be entered into a text field.
Notes:
A value of zero determines that the string length should not be restricted.

Also check the dynapdf manual on the pdfSetMaxFieldLen function.

See also SetMaxFieldLen function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetMetaConvFlags(Flags as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 8.0 Yes Yes Yes Yes No
Function: The function sets specific flags to control the conversion of metafiles.
Notes: Also check the dynapdf manual on the pdfSetMetaConvFlags function.

See also SetMetaConvFlags function in DynaPDF manual.

Feedback, Comments & Corrections

DynaPDFMBS.SetMetadata(ObjType as Integer, Handle as Integer, Buffer as Memoryblock) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 15.1 Yes Yes Yes Yes No
Function: The function sets or replaces the XMP metadata stream of a specific object.
Notes:
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.

Feedback, Comments & Corrections

DynaPDFMBS.SetMetadata(ObjType as Integer, Handle as Integer, Buffer as String) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 15.1 Yes Yes Yes Yes No
Function: The function sets or replaces the XMP metadata stream of a specific object.
Notes:
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.

Feedback, Comments & Corrections

Previous items Next items

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




Links
MBS Xojo tutorial videos