Skip to main content

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


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.16.tar.gz (95.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rpa_pdf-1.1.16-py3-none-any.whl (96.1 MB view details)

Uploaded Python 3

File details

Details for the file rpa_pdf-1.1.16.tar.gz.

File metadata

  • Download URL: rpa_pdf-1.1.16.tar.gz
  • Upload date:
  • Size: 95.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for rpa_pdf-1.1.16.tar.gz
Algorithm Hash digest
SHA256 8437bfd7f3640b5451398f6b96a9830e7f974c8383a9db69bd9c1696e1f48e5a
MD5 4c7f4c5e666ff01c0454da96841188fb
BLAKE2b-256 0c4d37f1f8fd7bb81ff00c7c1782f07445036f43e5c1af778d5702a22c14f277

See more details on using hashes here.

File details

Details for the file rpa_pdf-1.1.16-py3-none-any.whl.

File metadata

  • Download URL: rpa_pdf-1.1.16-py3-none-any.whl
  • Upload date:
  • Size: 96.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for rpa_pdf-1.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 eac9be8778f05d2243ac4a0287ec4dc4e3063b7719492b0328e4e9a577562c9c
MD5 c382b21f0e231470de9fda3d29af2e08
BLAKE2b-256 4341722b4add42447ff09e97848362485727f018d07ae92a36314b439e9c27d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page