Platforms to show: All Mac Windows Linux Cross-Platform
DynaPDFParserMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | DynaPDF | MBS DynaPDF Plugin | 24.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Allows you to do Find and Replace, text extraction and deletion of text.
- 11 properties
- property InitMatrix as DynaPDFMatrixMBS
- property OperatorCount as Integer
- property OptimizeFlags as Integer
- property OptimizeParams as DynaPDFOptimizeParamsMBS
- property PageNumber as Integer
- property PDF as DynaPDFMBS
- property SelBBox as DynaPDFRectMBS
- property SelText as String
- property TextLine as Integer
- property TextMatrix as DynaPDFMatrixMBS
- property TextSelectionLength as Integer
- 12 methods
- method Abort
- method ChangeAltFont(FontHandle as integer) as Boolean
- method Constructor(PDF as DynaPDFMBS, OptimizeFlags as Integer = 0, OptimizeParams as DynaPDFOptimizeParamsMBS = nil)
- method DeleteText(area as DynaPDFRectMBS) as Boolean
- method ExtractText(TextExtractionFlags as Integer, byref Text as String, area as DynaPDFRectMBS = nil) as Boolean
- method FindText(area as DynaPDFRectMBS, SearchType as Integer, findText as String, continueSearch as boolean = false) as Boolean
- method ParsePage(PageNum as Integer, ContentParseFlags as Integer = 0) as Boolean
- method ReplaceSelText(NewText as String) as Boolean
- method Reset
- method SelBBox2 as DynaPDFPointMBS()
- method SetAltFont(Name as string, Style as integer = 0, Size as double = 12, Embed as boolean = true, CP as integer = &h27) as integer
- method WriteToPage(OptimizeFlags as Integer = 0, OptimizeParams as DynaPDFOptimizeParamsMBS = nil) as Boolean
- 25 constants
Content Parser Flags
Constant | Value | Description |
---|---|---|
kcpfCalcDeviceColors | 32 |
Compute device colors of all colors which are set in the content streams. |
kcpfComputeBBox | 1 |
Compute bounding boxes of all objects. |
kcpfDefault | 0 |
Nothing special to do. |
kcpfEnableTextSelection | &h00000100 |
This flag is required to enable text selection and text extraction. |
kcpfFlattenLayers | 2 |
Flatten layers. |
kcpfFullRecursive | 8 |
Parse all objects recursively. |
kcpfInitMatrix | &h00000200 |
Use an initial matrix, which must be set with InitMatrix property. |
kcpfNoInlineTemplate | 16 |
Do not resolve templates with a reference count of 1. |
kcpfSkipClipPaths | &h00000400 |
Useful for debugging purposes. |
kcpfSkipImages | &h00000800 |
Ignore all images. This flag is useful for text extraction. |
kcpfSkipInvisibleObjects | 4 |
Ignore invisible objects. |
kcpfSkipShadings | &h00001000 |
Useful for debugging purposes. |
kcpfSkipText | &h00002000 |
Useful for debugging purposes. |
kcpfSkipVector | &h00004000 |
Useful for debugging purposes. Exclude vector graphics with exception of clipping paths. |
Search Types
Constant | Value | Description |
---|---|---|
kstCaseInSensitive | 2 |
Case insensitive search |
kstDefault | 0 |
Case sensitive search |
kstMatchAlways | 4 |
Return on every single character. Text is ignored when this flag is set. |
kstSearchAsIs | 8 |
Disable sorting on the x-axis. |
kstWholeWord | 1 |
Only whole words Example |
Text Extraction Flags
Constant | Value | Description |
---|---|---|
ktefDefault | 0 |
Create text lines in the original order. |
ktefDeleteOverlappingText | 4 |
Delete duplicate text records on same position. |
ktefNoHeuristic | 8 |
If set, text is sorted on the x-axis as specified. If absent, a heuristic is used to determine whether it is might be better to leave a line unsorted. |
ktefSortTextX | 1 |
Sort text records in x-direction. |
ktefSortTextXY | 3 |
Sort text records in x and y-direction. |
ktefSortTextY | 2 |
Sort text records in y-direction. |
This class has no sub classes.
Some examples using this class:
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 24.3
- Using DynaPDF parser to find characters
- News from the MBS Xojo Plugins Version 24.1
- MBS Xojo Plugins, version 24.1pr5
- News from the MBS Xojo Plugins Version 24.0
- MonkeyBread Software Releases the MBS Xojo Plugins in version 24.0
- DynaPDF Parser for Xojo
- MBS Xojo Plugins, version 23.6pr1
Release notes
- Version 24.3
- Added SearchAsIs flag for FindText function in DynaPDFParserMBS class.
- Version 24.1
- Added SelBBox2 method for DynaPDFParserMBS class to query all 4 points of current text box.
- Added SelText property for DynaPDFParserMBS class to query found text.
- Version 24.0
- Added DynaPDFParserMBS class.
The items on this page are in the following plugins: MBS DynaPDF Plugin.
DynaPDFParseInterfaceMBS - DynaPDFPointDataDictionaryMBS