RPA Framework PDF Library (`rpaframework-pdf`) is a Python library for managing PDF documents. It provides functionalities such as extracting text, adding watermarks, encrypting/decrypting documents, and merging/splitting PDFs. It is part of the broader RPA Framework, an actively maintained collection of open-source libraries for Robotic Process Automation (RPA), designed for both Robot Framework and Python. The current version is 10.0.3, released on March 6, 2026.
pip install rpaframework-pdfVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `rpaframework-pdf` to extract text from a PDF. It first creates a simple PDF file using `fpdf2` (which needs to be installed separately) and then uses `RPA.PDF`'s `get_text_from_pdf` keyword to read its content. The extracted text is then printed and saved to a text file. Finally, it cleans up the created files.
Ensure PDFs are text-based or utilize `RPA.DocumentAI` for image-based PDFs.
Upgrade to the latest version of `rpaframework-pdf`. For extremely large PDFs, consider processing strategies that minimize full document parsing where possible.
Ensure you are using the latest `rpaframework-pdf` and `rpaframework` versions, which generally have broader compatibility. If maintaining an older setup, constrain `robotframework` to `~=5.0.0` or use a dedicated virtual environment.
Install the library using pip: `pip install rpaframework-pdf`
Upgrade rpaframework-pdf to ensure all its dependencies are updated to compatible versions: `pip install --upgrade rpaframework-pdf`
Provide the correct password when opening the PDF, for example: `PDF().open_pdf("encrypted_doc.pdf", password="your_password")`Verify the file path is correct, the file exists at the specified location, and the program has read access to it. Ensure the path is absolute or relative to the current working directory.