Create a ZIP file of receipt PDF files
Now you have successfully completed the orders and have created PDF file for each order reciept with screenshot of the robot. The next step is to archive all thoses files into a single ZIP file.
Why do we prefer ZIP though? When you run your robots in Control Room and get access to the robot output artifacts (such as the files the robot generates), you store the files in the output
directory. Since Control Room does not support subdirectories for the output artifacts, you need to ZIP the receipt PDFs.
def archive_receipts():
Hints
- You need an RPA Framework library that can create ZIP
archives
. You will, of course, use the Python flavour. - Sometimes you need to look deeper than the
Readme