A2019 PDF Command

 RPA | A2019 PDF Command/Package| Automation Anywhere - Part-23


A2019 PDF Package | A2019 PDF Command is used to perform various operations on PDF files. We can perform various operations on PDF files such as encrypting and decrypting the pdf files, we can also extract image and text from a pdf file. We can merge multiple pdf files using the merge pdf documents command and we can split the pdf document using the split document action.

Note - To use the pdf command we need to install the PDF Package from Bots->Packages and search for the pdf package and then click the three dots and install the package.32

Now we will see each of the sub commands that are present under the PDF package one by one in great detail along with the practical scenario for each of the commands under this package.

  • Encrypt Document - This command is basically used to "encrypt a document" i.e. to protect a pdf file we need to encrypt the file by setting the password. The properties include selecting the pdf file from the specified folder location and then either we can set the user password or the owner password. By Owner password we basically means the actual owner of that file and after applying the password we can give various permissions to the file such as modifying the document, copy the document from one location to the another location and then set the encryption level such as RC4 40-bit, RC4 128-bit, AES 128-bit and then save the encrypted pdf file to the required specified folder location.
  • Decrypt Document - This command is used to "decrypt an encrypted document" i.e. through this command we unprotect the password protected file by removing the password that is being set by the user or the owner of the file. The properties of this command includes selecting the pdf file from the required location , give either the owner password or the user password either of which is set, then select the location where we need to save the file, if the file already exists then check the overwrite file with same name checkbox.
  • Extract Image - This command is used to save a pdf document as an image file. In it's properties section it includes selection of the pdf file from the specified folder location, then give the password if the file has any, then select the range of page i.e. give the starting point and the ending point in the form for example if you want to save page 1 and 2 of the pdf file as an image file then give 1-2 in the page range or if you want all of the pages of pdf file to be saved as an image file then select all pages in the page range property, then select the type of image in which we want to convert the pdf file to i.e. JPEG, PNG, BMP, TIFF etc. and then select the location where you need to save the image file.
  • Extract Text - This command is used to extract text from pdf file and saves it into a text file. In the properties section it includes selecting the pdf file from which we want to extract the text, then give the password to decrypt the pdf file if any password is there on the pdf file, select the type of text to be extracted i.e. if we want to extract the plain text or structured text then select the page range which you want to extract i.e. suppose if we want to extract the text of 1st and 2nd page of pdf file then in the page range select the pages option and give the range as 1-2 or if you want to extract the text of the whole pdf file then select All Pages option and then give the location of the text file in which we want to extract the text and if the text file already exists then check the Overwrite file with same name checkbox.
  • Merge Documents - This command is used to merge multiple pdf documents into a single pdf document i.e. through this action we can combine multiple pdf documents into a single document. The properties section include giving or selecting the file names which we want to merge and then giving the Output file path where we need to save the merged pdf files. If the file already exists then we can check the overwrite files with the same name checkbox.


Here is the code snippet on how to use the PDF Commands in A2019 Automation Anywhere.



If you have any queries related to PDF Command and it's functionality then you can raise or send in your queries in the comment section and I will be more than happy to respond to your queries.


Comments

  1. I felt very happy while reading this site. This was really very informative site for me. I really liked it. This was really a cordial post. Thanks a lot!. combinepdf.net

    ReplyDelete

Post a Comment

If you have any doubts, please letme know.