AI SKILLS / DOCUMENTS · TMG PICK
PDF processing skills
Comprehensive PDF processing solution supporting merging, splitting, extracting text and tables, OCR text recognition, encryption and decryption, adding watermarks, and more. Provides Python and command-line tools to automate document processing.
The skill supports reading and extracting PDF text/tables, merging/splitting PDFs, rotating pages, adding watermarks, creating new PDFs, filling forms, encrypting/decrypting, extracting images, and OCR text recognition for scanned PDFs.
You can use Python's pypdf library or the command-line tool qpdf. Python example: create a PdfWriter object, iterate through each PDF file's pages and add them to the writer, then save the merged file.
You need to use OCR technology. The recommended approach is to convert the PDF to images using pdf2image, then perform text recognition with pytesseract. Install dependencies with: