Pdf actions for RPA
Project description
RPA_PDF
Python module delivers some actions to manipulate with PDF files. The module is compatibile with the Robocorp.
Installation
To install the package run:
pip install rpa_pdf
Example
Generating pdf file from text
from rpa_pdf import Pdf
pdf = Pdf()
pdf.text_to_pdf('some text', 'c:/temp/somefile.pdf)
Compress pdf file
from rpa_pdf import Pdf
pdf = Pdf()
pdf.compress('c:/temp/somefile.pdf')
Add Code39 stamp
from rpa_pdf import Pdf
pdf = Pdf()
pdf.add_code39_stamp('c:/temp/input_file.pdf', 'c:/temp/output_file.pdf', '12345678')
Merging pdf files
from rpa_pdf import Pdf
pdf = Pdf()
pdf.merge(['c:/temp/file1.pdf', 'c:/temp/file2.pdf'], 'c:/temp/merged.pdf')
Add text stamp
from rpa_pdf import Pdf
pdf = Pdf()
pdf.add_text_stamp('c:/temp/input_file.pdf', 'c:/temp/output_file.pdf', 'some text')
Print PDF document on the printer
from rpa_pdf import Pdf
pdf = Pdf()
pdf.print('c:/temp/document.pdf', 'printer1')
Dependencies
Python packages: PyPDF2 >= 1.28.5, fpdf2 >= 2.5.6, python-barcode >= 0.14.0 External dependencies: DejaVu font, SumatraPdf.exe (both included in the package)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rpa-pdf-1.1.15.tar.gz
(94.2 MB
view details)
Built Distribution
rpa_pdf-1.1.15-py3-none-any.whl
(94.5 MB
view details)
File details
Details for the file rpa-pdf-1.1.15.tar.gz
.
File metadata
- Download URL: rpa-pdf-1.1.15.tar.gz
- Upload date:
- Size: 94.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50514c3ba7c5450211154ae24a463cb4b67f0d3a1008d975df6d93e783174c5f |
|
MD5 | 9e837ab653c9d8a0b9e49fcbfeccc6be |
|
BLAKE2b-256 | a2e24a790d217d2682642b4391aef30ef14e6217ad51126fedb21e0fd81cd1b0 |
File details
Details for the file rpa_pdf-1.1.15-py3-none-any.whl
.
File metadata
- Download URL: rpa_pdf-1.1.15-py3-none-any.whl
- Upload date:
- Size: 94.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca15a2c80df05fe7db33d97688428cc29176e33df5dd1cba8c92e79392b8a524 |
|
MD5 | f372038332bcbac682a794c5c6ba2dc5 |
|
BLAKE2b-256 | 346451b9c1d082f915de887cd446497b3a26b8492bcc71563cec560db7dfd499 |