Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Extracts the text of all pages.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 6.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. |
Returns text or error.
Load PDF and extract 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.ExtractDocumentText"; $pdf)]
Set Variable [$r; Value:MBS("DynaPDF.Release"; $pdf)]
Full script to get text with error checking:
If [MBS("DynaPDF.IsInitialized") ≠ 1]
Perform Script [“InitDynaPDF”]
End If
Set Variable [$pdf; Value:MBS("DynaPDF.New")]
If [MBS("IsError")]
Show Custom Dialog ["DynaPDF Fehler"; $pdf]
Else
Set Variable [$r; Value:MBS("DynaPDF.OpenPDFFromContainer";$pdf; Test::data)]
If [MBS("IsError")]
Show Custom Dialog ["DynaPDF Fehler"; $r]
Else
Set Variable [$r; Value:MBS("DynaPDF.ImportPDFFile";$pdf)]
If [MBS("IsError")]
Show Custom Dialog ["DynaPDF Fehler"; $r]
Else
Set Field [Test::PageText; MBS("DynaPDF.ExtractTextOld"; $pdf)]
Commit Records/Requests [No dialog]
End If
End If
#Cleanup
Set Variable [$r; Value:MBS("DynaPDF.Release"; $pdf)]
End If
Created 8th December 2015, last changed 25th June 2020
DynaPDF.ExchangePages - DynaPDF.ExtractImages
Feedback: Report problem or ask question.