PDF-Get-Pages-Text
Command Description
Extracts text from the specified pages of a PDF file
Command Prototype
sRet = PDF.GetPageText(filePath,password,pageStart,pageEnd)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
filePath | True | path | '''C:\Users''' | Path of the PDF file |
password | True | string | "" | PDF file password. No need to fill in if no password |
pageStart | True | number | 1 | The starting page number of the text (starting from 1) |
pageEnd | True | number | 2 | The ending page number of the text |
return
sRet,The variable used to save the output of the command.
Demo
/************************************Get the specified page text************ *********************
Command prototype:
sRet = PDF.GetPageText ('' 'C: \ Users' '', "", 1,2)
Input parameters:
filePath--PDF file path
password--PDF file password, no password need to fill in
pageStart--Get the starting page number of the text, starting from 1
pageEnd--get the end page number of the text
Outgoing parameters:
sRet--the result after the command is run
********************************************************************************/
Dim filePath='''C:\Users\Chance\Desktop\testPDF\Laiye Technology RPA Product Introduction.pdf'''
Dim password=""
Dim startPage=1
Dim endPage=2
sRet = PDF.GetPageText (filePath, password, startPage, endPage)
TracePrint (sRet)