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
PDF The PDF reference. $pdf
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.

NameNumberDescription
Default0Nothing special to do.
ComputeBBox1Compute bounding boxes of all objects.
FlattenLayers2Flatten layers.
SkipInvisibleObjects4Ignore invisible objects.
FullRecursive8Parse all objects recursively.
NoInlineTemplate16Do not resolve templates with a reference count of 1.
CalcDeviceColors32Compute device colors of all colors which are set in the content streams.
EnableTextSelection256This flag is required to enable text selection and text extraction.
SkipClipPaths1024Useful for debugging purposes.
SkipImages2048Ignore all images. This flag is useful for text extraction.
SkipShadings4096Useful for debugging purposes.
SkipText8192Useful for debugging purposes.
SkipVector16384Useful for debugging purposes. Exclude vector graphics with exception of clipping paths.

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 23th November 2023, last changed 23th November 2023


DynaPDF.Parser.Line - DynaPDF.Parser.ReplaceSelText