DynaPDF.ParseContent
Runs the content parser.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
DynaPDF
|
4.0 |
✅ Yes |
✅ Yes |
✅ Yes |
✅ Yes |
✅ Yes |
MBS( "DynaPDF.ParseContent"; PDF; PageIndex )
More
MBS(
"DynaPDF.ParseContent"; /* Runs the content parser. */
$PDF; /* The PDF reference returned from
DynaPDF.New. */
$PageIndex) /* The page to check. Range is from one to
DynaPDF.GetPageCount.e.g. 1 */
Less
Parameters
Parameter |
Description |
Example |
PDF |
The PDF reference returned from DynaPDF.New. |
$pdf |
PageIndex |
The page to check. Range is from one to DynaPDF.GetPageCount. |
1 |
Result
Returns text or error.
Description
Runs the content parser.
Returns a list of text representations of the various PDF commands founds.
Output shows entries like this:
SaveGraphicState
Rectangle X: 0.000000 Y: 0.000000 W: 842.000000 H: 595.000000
ClipPath EvenOdd: 0 PathFillMode: 10
SetFillColor IColorSpace: 0x843e34d0 ExtColorSpace: 6 NumComps: 1 Color[0]: 1.000000
MulMatrix Matrix: 1.000000 0.000000 0.000000 -1.000000 0.000000 595.000000
Rectangle X: 19.842520 Y: 19.637820 W: 240.944900 H: 555.690600
SetFont FontType: 1 Embedded: 1 FontName: Cochin Style: 419430400, FontSize: 1.000000, Font: 0x86131e00
ShowTextArray Count: 1 Width: 1.500000 Matrix: 13.000000 0.000000 0.000000 -13.000000 63.150010 237.000000 SourceAdvance[0]: 0.000000 SourceLength[0]: 3 SourceText[0]: SourceAdvance[0]: 0.000000 SourceLength[0]: 3 SourceText[0]: +49 KerningAdvance[0]: 0.000000 KerningLength[0]: 3 KerningWidth[0]: 1.500000 KerningText[0]: +49
This function uses the parser interface in DynaPDF and needs a Pro license.
See also ParseContent function in DynaPDF manual.
Examples
Parse content of page 6:
MBS( "DynaPDF.ParseContent"; $pdf; 6 )
See also
Release notes
- Version 13.2
- Version 10.2
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 19th March 2019
DynaPDF.PageStatistics
-
DynaPDF.Parser.ChangeAltFont