



# PDF
  
Module to perform actions with PDF files  

*Read this in other languages: [English](README.md), [Português](README.pr.md), [Español](README.es.md)*

## How to install this module
  
To install the module in Rocketbot Studio, it can be done in two ways:
1. Manual: __Download__ the .zip file and unzip it in the modules folder. The folder name must be the same as the module and inside it must have the following files and folders: \__init__.py, package.json, docs, example and libs. If you have the application open, refresh your browser to be able to use the new module.
2. Automatic: When entering Rocketbot Studio on the right margin you will find the **Addons** section, select **Install Mods**, search for the desired module and press install.  


## Overview


1. Split PDF  
This command allows you to split a PDF file into several PDF files with a certain number of pages.

2. Split PDF in specific steps  
Splits the PDF in a certain pace

3. Merge PDFs  
This command allows you to merge multiple PDFs from a folder into a single PDF.

4. Encrypt PDF  
This command allows you to add a password to a PDF file.

5. Decrypt PDF  
This command allows you to decrypt a PDF file.

6. Read PDF  
This command allows you to read a PDF. If the PDF is encrypted, providing the password decrypts it.

7. Read PDF text boxes and checkboxes  
This command reads the text boxes and checkboxes of a PDF file.

8. Count Pages  
This command allows you to count the pages of a PDF.

9. Write on PDF input  
This command allows you to write on a PDF input, creating a new PDF with the data loaded.

10. Crop image from PDF  
Create an image from the assigned coordinates.

11. Convert to JPG  
Convert each sheet of a PDF file to JPG format

12. Add image to PDF  
Adds an image to a PDF on the page and coordinates entered.

13. Get HTML  
This command allows you to read a PDF and save it as HTML.

14. Rotate PDF  
Rotate specified pages of a PDF  




----
### OS

- windows
- mac
- linux
- docker

### Dependencies
- [**PyPDF2**](https://pypi.org/project/PyPDF2/)- [**fillpdf**](https://pypi.org/project/fillpdf/)- [**fitz**](https://pypi.org/project/fitz/)
### License
  
![MIT](https://camo.githubusercontent.com/107590fac8cbd65071396bb4d04040f76cde5bde/687474703a2f2f696d672e736869656c64732e696f2f3a6c6963656e73652d6d69742d626c75652e7376673f7374796c653d666c61742d737175617265)  
[MIT](http://opensource.org/licenses/mit-license.ph)