Topics   All   Mac OS X (Only)   Windows (Only)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 4.0   4.1   4.2   4.3   4.4   5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2    Statistic  

DynaPDF.ExtractPageText

Component: DynaPDF
Version: 3.0
Mac OS X: Yes
Windows: Yes
Server: Yes

MBS( "DynaPDF.ExtractPageText"; PDF; pageIndex )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
pageIndex The number of the page. Must be within 1 and DynaPDF.GetPageCount. 1

Result

Returns the text or error message.

Description

Extracts the text of the page.
Use DynaPDF.ExtractText is you need text from whole document.

Examples

Queries page text of page 5:

$text = MBS( "DynaPDF.ExtractPageText"; $PDF; 5 )

Load PDF and extract text of page 2:

# initialize DynaPDF before running this:
Set Variable [$pdf; Value:MBS("DynaPDF.New")]
# load PDF from container
Set Variable [$r; Value:MBS("DynaPDF.OpenPDFFromContainer";$pdf; Test::data)]
# import all pages
Set Variable [$r; Value:MBS("DynaPDF.ImportPDFFile";$pdf)]
# extra text of page 2
Set Field [Test::PageText; MBS("DynaPDF.ExtractPageText"; $pdf; 2)]
#Cleanup
Set Variable [$r; Value:MBS("DynaPDF.Release"; $pdf)]

See also


DynaPDF.ExtractPageRectText   -   DynaPDF.ExtractText

Feedback: Report problem or ask question.




Links
MBS REALbasic Plugins - Nachhilfe in Eich