Skip to main content

PDF-Save-Pages-as-Images

Command Description

Save the specified page in PDF file as image and with the naming convention of "PDF file name_number"

Command Prototype

PDF.PageSaveToPic(filePath,password,savePath,pageStart,pageEnd)

Parameter Description

ParameterRequiredTypeDefaultDescription
filePathTruepath'''C:\Users'''Path of the PDF file
passwordTruestring""PDF file password. No need to fill in if no password
savePathTruepath'''C:\Users'''Directory to save the extracted images. Defaults to the location of the PDF file
pageStartTruenumber1The starting page number of the image to be saved (starting from 1)
pageEndTruenumber2The ending page number of the image to be saved

Demo

/********************************Save the specified page as a picture*********** ******************** 
Command prototype:
PDF.PageSaveToPic('''C:\Users''',"",'''C:\Users''',1,2)
Input parameters:
filePath--PDF file path
password--PDF file password, no password need to fill in
savePath--the path where the picture is saved, the default is the directory where the PDF file is located
pageStart--The starting page number that needs to be saved as a picture, starting from 1
pageEnd--the end page number that needs to be saved as a picture
Outgoing parameters:
None
********************************************************************************/
Dim filePath='''C:\Users\Chance\Desktop\testPDF\Laiye Technology RPA Product Introduction.pdf'''
Dim password=""
Dim savePath='''C:\Users\Chance\Desktop\testPDF'''
Dim startPage=1
Dim endPage=2
PDF.PageSaveToPic(filePath,password,savePath,startPage,endPage)