Platforms to show: All Mac Windows Linux Cross-Platform
Back to DynaPDFMBS class.
DynaPDFMBS.ActiveFontInfo as DynaPDFFontInfoMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 20.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Added, so you can see it in debugger.
(Read only property)
DynaPDFMBS.ClearRectMode as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 20.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
When graphics class is called with ClearRect method, the area in the PDF page is filled with white color.
If you like to ignore such calls, please set value to ignore all or just big rectangles.
(Read and Write property)
Some examples using this property:
DynaPDFMBS.ErrorCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 21.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Use Error event to track them.
Or catch exceptions.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 22.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The function returns the font size, a value greater zero on success, or a negative error code on failure.
If you set this property, it calls ChangeFontSize internally.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 8.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The constructor fills this handle and the destructor frees it.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Relevant for some example projects and graphics class support to know whether CreateExtGState is available.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 20.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Relevant for some example projects and graphics class support to know whether Render Engine is available.
(Read only property)
Some examples using this property:
- /DynaPDF/DynaPDF Graphics/DynaPDF Graphics
- /DynaPDF/DynaPDF Graphics/DynaPDF Graphics Desktop
- /DynaPDF/DynaPDF Graphics/DynaPDF Graphics iOS
- /DynaPDF/DynaPDF Graphics/DynaPDF GraphicsPath
- /DynaPDF/DynaPDF Graphics/ListBoxReport
- /DynaPDF/DynaPDF Graphics/Reporting/GasReport/GasReport
- /DynaPDF/DynaPDF Graphics/Reporting/ListBoxReport
- /DynaPDF/DynaPDF Graphics/VectorGraphics
- /DynaPDF/DynaPDF Graphics/VectorGraphics Alignments
DynaPDFMBS.ImportFlags as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 17.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Same as using GetImportFlags and SetImportFlags.
(Read and Write property)
Some examples using this property:
DynaPDFMBS.ImportFlags2 as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 17.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Same as using GetImportFlags2 and SetImportFlags2.
(Read and Write property)
DynaPDFMBS.PageCoords as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 10.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The native coordinate system of the Portable Document Format is bottom up.
Also check the dynapdf manual on the pdfGetPageCoords and pdfSetPageCoords functions.
Value can be kpcTopDown or kpcBottomUp. Default is kpcBottomUp.
(Read and Write property)
Some examples using this property:
DynaPDFMBS.PageGraphics as Graphics
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
We create a temporary picture and subclass the graphics to reproduce all drawing commands called on this graphics object to the current PDF Page.
For every drawing command, we apply the following properties from graphics object to DynaPDF:
- ForeColor
- Bold
- Italic
- Underline
- TextUnit
- TextFont
- TextSize
- ScaleX
- ScaleY
- PenHeight
- PenWidth
- CharacterSpacing
Supports the following graphics commands:
- Draw/Fill Oval/Rect/RoundRect/Line/Polygon
- DrawString
- StringHeight and StringWidth
- DrawPicture
- NextPage
- Get/Set Pixel.
- Clip
- Supports vector graphics classes (Object2D)
- Supports report engine
Some notes:
- Handle() function returns handle for picture.
- Pixel reads from temporary picture
- ClearRect draws white rectangle
- DrawCautionIcon, DrawNoteIcon and DrawStopIcon are not supported.
- NextPage method calls NextPage event. If missing, we end page and create a new one. In the event, please call EndPage and maybe Append or import an existing PDF page from import PDF.
- If CMYK, Gray or Lab colorspace is set, the plugin will keep them for white/black colors, but switch to RGB for all other colors.
StyledTextPrinter is not supported, but you can do similar things via WriteStyledText or WriteStyledTextEx methods in DynaPDFMBS class.
If no page is open, call this may append a new page. If no document is open, we call CreateNewPDF for you with nil folderitem, so an in memory PDF get's created.
Seems like reports on Windows may not work for v19.2 of our plugins. This is fixed for 19.3.
(Read only property)
Some examples using this property:
- /DynaPDF/DynaPDF Graphics/Create numbered pages
- /DynaPDF/DynaPDF Graphics/DynaPDF Graphics
- /DynaPDF/DynaPDF Graphics/DynaPDF Graphics Desktop
- /DynaPDF/DynaPDF Graphics/ListBoxReport
- /DynaPDF/DynaPDF Graphics/Reporting/GasReport/GasReport
- /DynaPDF/DynaPDF Graphics/Reporting/List Of Orders
- /DynaPDF/DynaPDF Graphics/Reporting/List Of Products
- /DynaPDF/DynaPDF Graphics/Reporting/List Of Products Preview
- /DynaPDF/DynaPDF Graphics/Reporting/ListBoxReport
- /DynaPDF/DynaPDF Graphics/VectorGraphics Alignments
DynaPDFMBS.PageGraphicsPicture as Picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
For debugging it may be useful to see the temporary picture with all the draws made on the PDF page.
This is not 1 to 1 what you will see in rendered PDF Page.
This can be viewed even when graphics object is cleared.
(Read only property)
Some examples using this property:
- /DynaPDF/DynaPDF Graphics/DynaPDF Graphics
- /DynaPDF/DynaPDF Graphics/DynaPDF Graphics iOS
- /DynaPDF/DynaPDF Graphics/ListBoxReport
- /DynaPDF/DynaPDF Graphics/Reporting/Breaking List Of Orders
- /DynaPDF/DynaPDF Graphics/Reporting/GasReport/GasReport
- /DynaPDF/DynaPDF Graphics/Reporting/List Of Orders
- /DynaPDF/DynaPDF Graphics/Reporting/List Of Products
- /DynaPDF/DynaPDF Graphics/Reporting/List Of Products Preview
- /DynaPDF/DynaPDF Graphics/Reporting/ListBoxReport
- /DynaPDF/DynaPDF Graphics/VectorGraphics
DynaPDFMBS.PrintCancelled as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 20.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Set by PrintPDFFileWithDialog and PrintPDFPageWithDialog methods if user presses cancel button.
Otherwise will be false.
(Read and Write property)
DynaPDFMBS.SpaceWidthFactor as Single
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Sets the space width factor that is used by DynaPDF.ExtractText to determine whether the distance between two text records or glyphs should be interpreted as space character.
PDF files do often not contain space characters. Depending on the font type, i.e. fixed pitch or proportional fonts, different default widths are used during text extraction. However, the full space width is mostly too large to find spaces. Therefore, the text extraction algorithm multiplies the default space width with the space width factor to find suitable values.
The default value is 0.7. Increase the value if too many spaces occur in extracted text and decrease the value if too few spaces were found.
The value must be large zero. Although the upper bound is not restricted, values larger than 2 are mostly not meaningful.
(Read and Write property)
DynaPDFMBS.TraceFile as FolderItem
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 10.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The plugin writes debug messages to this file so you can check what functions you called.
Improved with 16.2 plugin to really cover over 99% of all calls with parameters and result. Please report if you miss something.
See also AppendTraceFile method to append the log file.
(Read and Write property)
Some examples using this property:
DynaPDFMBS.TraceHandle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 10.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If this is not zero, the tracing option is turned on.
You can set this value indirectly by using the TraceFile property.
(Read only property)
DynaPDFMBS.ValidateTextEncodings as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 13.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You should enable this for debugging to find bugs with text encodings.
(Read and Write property)
DynaPDFMBS.WarningCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynaPDF | MBS DynaPDF Plugin | 21.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Use Error event to track them.
Or catch exceptions.
(Read only property)
The items on this page are in the following plugins: MBS DynaPDF Plugin.