PDF Driver in Eras
PDF (Portable Document Format) is a widely used format for exchanging and storing documents. In the context of RPA (Robotic Process Automation), PDF operations refer to various tasks that can be automated using RPA to extract information from, manipulate, or interact with PDF documents.
Here are some common PDF operations in RPA:
PDF to Text Conversion: This involves converting the contents of a PDF document into editable text, which can then be processed and analyzed by the RPA system.
Data Extraction: This involves automatically extracting specific information from PDF documents, such as names, addresses, phone numbers, and so on.
Form Processing: This involves automatically extracting information from PDF forms and using that information to update databases, send notifications, or perform other actions.
PDF Merging: This involves automatically merging multiple PDF documents into a single document.
PDF Splitting: This involves automatically splitting a single PDF document into multiple smaller documents.
PDF Page Manipulation: This involves automatically adding, removing, or rearranging pages within a PDF document.
PDF Signature Verification: This involves automatically verifying digital signatures within PDF documents to ensure their authenticity.
SetVariables
This method allows users to set Ftp server variables.
Parameters
- host -
string= Ftp server host address - username -
string= authentication username - password -
string= authentication password - port -
int= ftp server port number (default is 22)
Ftp.SetVariables("http:\\185.10.1.121", "eras", "pass123!", 22);
GetFileContent
This method allows users to get file content in ftp.
Parameters
- filePath -
string= Folder where the file will be created
Ftp.SetVariables("http:\\185.10.1.121", "eras", "pass123!", 22);
var fileContent = Ftp.GetFileContent("/test/20230101.csv")
InfoLog (fileContent);
UploadFile
This method is used for uploading a file to FTP server.
Parameters
- localFilePath -
string= Path of the local file name that will be uploaded. - ftpFilePath -
string= Path of the remote file name for uploaded files. - canOverride -
bool= Overwrite if there is a file or folder with same name. (default is true)
Ftp.SetVariables("http:\\185.10.1.121", "eras", "pass123!", 22);
Ftp.UploadFile ("D:\\test.csv", "/test/20230101.csv", true);
DownloadFile
This method is used for downloading a file in FTP server.
Parameters
- remoteFilePath -
string= Path of the remote file name that will be downloaded. - localDirectory -
string= Path of the local file directory for downloaded files. - fileName -
string= name of file
Ftp.SetVariables("http:\\185.10.1.121", "eras", "pass123!", 22);
Ftp.DownloadFile (, "/test/20230101.csv", "D:\\Eras\\", "test.csv");
DeleteFile
This method is used for deleting a file or folder in FTP server.
Parameters
- fileName -
string= File name with path.
Ftp.SetVariables("http:\\185.10.1.121", "eras", "pass123!", 22);
Ftp.DeleteFile ("/test/20230101.csv");
IsFileExists
This method is used for checking if a file exists or not in FTP server.
Parameters
- remoteFilePath -
string= Path of the remote file - fileName -
string= File name
Ftp.SetVariables("http:\\185.10.1.121", "eras", "pass123!", 22);
var result = Ftp.IsFileExists ("/test/","20230101.csv");
IsDirectoryExists
This method is used for checking if a directory exists or not in FTP server.
Parameters
- remoteFilePath -
string= Path of the remote file
Ftp.SetVariables("http:\\185.10.1.121", "eras", "pass123!", 22);
var result = Ftp.IsDirectoryExists ("/test/");
ListFiles
This method is used for listing the file names in specified location.
Parameters
- remoteFilePath -
string= Directory name with path. - fileExtension -
string= specific file extension
Ftp.SetVariables("http:\\185.10.1.121", "eras", "pass123!", 22);
var result = Ftp.IsDirectoryExists ("/test/", "txt");
MoveFile
This method is used for moving file to other directory
Parameters
- destinationDirectoryPath -
string= Destination directory name with path. - currentFilePath -
string= file which will be moved
Ftp.SetVariables("http:\\185.10.1.121", "eras", "pass123!", 22);
Ftp.MoveFile ("/test12/", "/test/2023.txt");