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
- 18 methods
- method Abort
- method ChangeAltFont(FontHandle as integer) as Boolean
- method Constructor(PDF as DynaPDFMBS, OptimizeFlags as Integer = 0, OptimizeParams as DynaPDFOptimizeParamsMBS = nil)
- method Content(index as Integer) as DynaPDFParserContentMBS New in 25.5
- method Contents as DynaPDFParserContentMBS() New in 25.5
- method DeleteAllImage as Integer
- method DeleteContent(index as Integer) New in 25.5
- method DeleteImage(ImageHandle as UInt32, Nth as UInt32 = 0) as Boolean
- 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 ListImages as Integer()
- 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.
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 25.5
- MBS Xojo Plugins, version 25.5pr5
- News from the MBS Xojo Plugins in version 24.5
- MBS Xojo Plugins, version 24.5pr6
- 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
- News from the MBS Xojo Plugins Version 24.0
- MonkeyBread Software Releases the MBS Xojo Plugins in version 24.0
- DynaPDF Parser for Xojo
Release notes
- Version 25.5
- Added Content array to DynaPDFParserMBS class.
- Added DeleteContent method to DynaPDFParserMBS class.
- Version 24.5
- Added DeleteAllImages, DeleteImage and ListImages functions to DynaPDFParserMBS class.
- 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.
Some examples using this class:
Some related classes:
- class DynaPDFMatrixMBS
- class DynaPDFMBS
- class DynaPDFOptimizeParamsMBS
- class DynaPDFParserContentMBS
- class DynaPDFPointMBS
- class DynaPDFRectMBS
The items on this page are in the following plugins: MBS DynaPDF Plugin.
DynaPDFParserContentMBS - DynaPDFPointDataDictionaryMBS