Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Extracts the text of the page PageNum.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 8.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
PageNum | The page number. | 1 | |
Flags | The flags for text extraction. Can include Default, SortTextX, SortTextY, SortTextXY and/or DeleteOverlappingText. |
"SortTextXY" | Optional |
AreaLeft | The left coordiante of the area. | Optional | |
AreaTop | The top coordiante of the area. | Optional | |
AreaRight | The right coordiante of the area. | Optional | |
AreaBottom | The bottom coordiante of the area. | Optional |
Returns text or error.
See also ExtractText function in DynaPDF manual.
Extract some text:
Set Variable [ $pdf ; Value: MBS("DynaPDF.New") ]
Set Variable [ $r ; Value: MBS("DynaPDF.OpenPDFFromContainer";$pdf; Test::data) ]
Set Variable [ $r ; Value: MBS("DynaPDF.ImportPDFFile";$pdf) ]
Set Field [ Test::PageText ; MBS("DynaPDF.ExtractText"; $pdf; 1; 0) ]
# Cleanup
Set Variable [ $r ; Value: MBS("DynaPDF.Release"; $pdf) ]
Extract text in area:
Set Field [ Test::PageText ; MBS("DynaPDF.ExtractText"; $pdf; 1; "Default"; 200; 200; 400; 400) ]
This function checks for a license.
Created 21st December 2017, last changed 5th January 2024