Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

DynaPDF.ParseContent

Runs the content parser.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 4.0 Yes Yes Yes Yes Yes

MBS( "DynaPDF.ParseContent"; PDF; PageIndex )

Parameters

Parameter Description Example value
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

Requires DynaPDF Pro license.

See also ParseContent function in DynaPDF manual.

Examples

Parse content of page 6:

MBS( "DynaPDF.ParseContent"; $pdf; 6 )

See also


DynaPDF.PageStatistics   -   DynaPDF.PlaceTemplate

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins