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
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 |
savePath | True | path | '''C:\Users''' | Directory to save the extracted images. Defaults to the location of the PDF file |
type | True | enum | "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)