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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rpa-pdf-1.1.4.tar.gz.
File metadata
- Download URL: rpa-pdf-1.1.4.tar.gz
- Upload date:
- Size: 28.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15aef5945dde9a97ca8374f578f2c20952451af4916d8c1f7e5c58cd42d5c60d
|
|
| MD5 |
6b96c13bc70e27d5304da6f92845bfdf
|
|
| BLAKE2b-256 |
3f67530d1929837f8a70470cfb74e1608970691ce5df60a9b57a44a858eee3d6
|
File details
Details for the file rpa_pdf-1.1.4-py3-none-any.whl.
File metadata
- Download URL: rpa_pdf-1.1.4-py3-none-any.whl
- Upload date:
- Size: 28.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de31b950234442c75d9e2a702984f06a0979692f7908ac973ed06139d5807144
|
|
| MD5 |
5c9376c36d632b9059d54b2b7a91594b
|
|
| BLAKE2b-256 |
3b6a9417e61cfd898ae73b89c33823e39c7471a2695f9bf5ed6730590c99b410
|