Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.Parser.ParsePage
Parses a page.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 14.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.Parser.ParsePage"; PDF; PageNum; Flags ) More
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference. | ||
PageNum | The page number. | 1 |
Flags | The content parser flags. | "EnableTextSelection" |
Result
Returns OK or error.
Description
Parses a page.The function parses a page and stores the page contents in a objects internally. Once a page was parsed various functions can be called, e.g. to extract the text of a page, to find and replace text, or to delete arbitrary operators.
The page that should be parsed should be closed, that means it should not be opened for editing beforehand with DynaPDF.EditPage or DynaPDF.AppendPage. The function can parse an open page too but this can lead to errors and is not recommended.
If the function succeeds the return value is true. If the function fails the return value is false.
Name | Number | Description | |
Default | 0 | Nothing special to do. | |
ComputeBBox | 1 | Compute bounding boxes of all objects. | |
FlattenLayers | 2 | Flatten layers. | |
SkipInvisibleObjects | 4 | Ignore invisible objects. | |
FullRecursive | 8 | Parse all objects recursively. | |
NoInlineTemplate | 16 | Do not resolve templates with a reference count of 1. | |
CalcDeviceColors | 32 | Compute device colors of all colors which are set in the content streams. | |
EnableTextSelection | 256 | This flag is required to enable text selection and text extraction. | |
SkipClipPaths | 1024 | Useful for debugging purposes. | |
SkipImages | 2048 | Ignore all images. This flag is useful for text extraction. | |
SkipShadings | 4096 | Useful for debugging purposes. | |
SkipText | 8192 | Useful for debugging purposes. | |
SkipVector | 16384 | Useful for debugging purposes. Exclude vector graphics with exception of clipping paths. |
See also
- DynaPDF.EditPage
- DynaPDF.Parser.Create
- DynaPDF.Parser.DeleteImage
- DynaPDF.Parser.DeleteText
- DynaPDF.Parser.FindText
- DynaPDF.Parser.ListImages
- DynaPDF.Parser.ReplaceSelText
- DynaPDF.Parser.WriteToPage
Release notes
- Version 14.0
- Added DynaPDF parser functions: DynaPDF.Parser.ChangeAltFont, DynaPDF.Parser.Create, DynaPDF.Parser.DeleteText, DynaPDF.Parser.ExtractText, DynaPDF.Parser.FindText, DynaPDF.Parser.Line, DynaPDF.Parser.ParsePage, DynaPDF.Parser.ReplaceSelText, DynaPDF.Parser.SetAltFont, DynaPDF.Parser.TextMatrix, DynaPDF.Parser.WriteToPage.
Example Databases
Blog Entries
This function checks for a license.
Created 23th November 2023, last changed 23th November 2023