PDF Viewer ActiveX Control

ExportText

 

Export the Text from specific Page to Unicode Text File, XML File or HTML File.

Public Function ExportText(
 ByVal strTextFileName As String ,_
 ByVal iPage As Integer ,_
 ByVal iOutputType As Integer
) as bool

 

Parameter
strTextFileName
the output text file name.

iPage
the output page number, the first page is 0.

iOutputType
the output text type.
0 - Unicode Text File
1 - XML File
2 - HTML file.


Return Value
true - successful, otherwise return false.

Example


Visual Basic Syntax
PDFViewer1.LoadPDFFile ="c:\test.pdf"
PDFViewer1.ExportText "c:\output.txt", 0, 0