Python module delivers some actions to manipulate with PDF files. The module is compatibile with the Robocorp.
To install the package run:
pip install rpa_pdf
from rpa_pdf import Pdf
pdf = Pdf()
pdf.text_to_pdf('some text', 'c:/temp/somefile.pdf)
from rpa_pdf import Pdf
pdf = Pdf()
pdf.compress('c:/temp/somefile.pdf')
from rpa_pdf import Pdf
pdf = Pdf()
pdf.add_code39_stamp('c:/temp/input_file.pdf', 'c:/temp/output_file.pdf', '12345678')
from rpa_pdf import Pdf
pdf = Pdf()
pdf.merge(['c:/temp/file1.pdf', 'c:/temp/file2.pdf'], 'c:/temp/merged.pdf')
from rpa_pdf import Pdf
pdf = Pdf()
pdf.add_text_stamp('c:/temp/input_file.pdf', 'c:/temp/output_file.pdf', 'some text')
from rpa_pdf import Pdf
pdf = Pdf()
pdf.print('c:/temp/document.pdf', 'printer1')
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)