Skip to main content

PDF-Get-Pictures

Command Description

Get all the pictures in the PDF file and save the name as "PDF file name_serial number"

Command Prototype

PDF.GetAllPic(filePath,password,savePath,type)

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
typeTrueenum"PNG"Format of the saved images. Supports PNG, JPG, and BMP

Demo

/************************************Get all images************ ************************ 
Command prototype:
PDF.GetAllPic('''C:\Users''',"",'''C:\Users''',"PNG")
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
imgType--the format of image saving, supports PNG, JPG, BMP format
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 imgType="PNG"
PDF.GetAllPic(filePath,password,savePath,imgType)