You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PDF TOOL BOT is an asynchronous document engineering system built natively for Telegram. Powered by Python 3.11, Kurigram (asynchronous Pyrogram framework), PyMuPDF (fitz), Tesseract 5 OCR, Ghostscript, and Motor (async MongoDB), it delivers 44 production-grade document transformations with sub-second execution speeds and zero quality degradation.
Send any PDF file to the bot. An interactive inline keyboard generates dynamically. Select an operation, and the result is delivered back instantly.
Important
Production Requirements: Telegram Bot Token from @BotFather, API ID and API Hash from my.telegram.org, an active MongoDB instance, and Ghostscript on the host system.
Features & Capabilities
Core PDF Surgery & Manipulation
Multi-File Merge: Send multiple PDF files into the active session queue and merge them into a single ordered master document.
Precision Splitter: Slice documents by arbitrary page ranges (e.g. 1-10, 15,22,30) or split on demand.
Selective Page Extractor: Isolate specific pages or chapters into a brand-new standalone PDF without quality loss.
Page Deleter: Remove unwanted blank sheets, copyright disclaimers, or cover pages by index.
Multi-Tier Compression: Ghostscript backend engine with calculated size savings feedback:
Low (Best Quality): Uses /printer profile for high-res print outputs.
Medium (Balanced): Uses /ebook profile for crystal-clear digital reading.
High (Smallest Size): Uses /screen profile for compact email attachments.
Tri-Modal Watermark Studio:
Text Watermark: Custom text overlay with 10% to 100% opacity tuning and Top, Middle, or Bottom alignment.
Image Watermark: Stamp your personal logo or brand PNG directly across all pages.
PDF Watermark: Merge a transparent background template PDF under each page.
Official Stamp Presets: 14 bureaucratic stamps (Approved, Confidential, Top Secret, Draft, Expired, Final, Sold, For Public Release...) across 6 colors (Red, Blue, Green, Yellow, Pink, Black).
Dark Mode Inverter: Inverts color schemes for comfortable reading in dark environments.
Black & White Grayscale: Converts documents into pure monochrome for ink-saving printing.
Artistic Sketch Filter: Transforms pages into stylized hand-drawn pencil sketches.
Header & Footer Injector: Injects custom text banners at top or bottom page margins.
Universal Converters & N-Up Imposition
PDF to Microsoft Word (DOCX): Converts documents into fully editable Word files with intact paragraphs and formatting.
PDF to Microsoft Excel (XLSX): Detects tabular layouts and extracts raw data directly into structured spreadsheets.
PDF to PowerPoint (PPTX): Transforms document presentation slides into editable PowerPoint decks.
PDF to High-DPI Images: Renders every page into PNG or JPEG image files. Export as single images, document formats, or compressed .ZIP / .TAR packages.
Images to Single PDF: Send multiple pictures (JPG, PNG) in chat and click generate to create an aggregated PDF document.
Text to Formatted PDF: Paste raw text directly into the bot to produce an elegant PDF with custom fonts and font sizes.
Structured Text Extraction: Exports embedded text as plain text (.TXT), web-ready markup (.HTML), or machine-readable .JSON.
N-Up Sheet Imposition (Study Handouts):
1 x 2 & 2 x 1: Two pages per sheet (Horizontal / Vertical).
1 x 3 & 3 x 1: Three pages per sheet (Horizontal / Vertical).
2 x 2: Four pages per sheet in a compact 4-quadrant grid.
OCR, Academic Research & Security
Tesseract 5 OCR Engine: Converts scanned, photographed, or unselectable PDFs into copyable, searchable text layers without distortion.
Library Genesis (LibGen) Research Hub: Search academic research papers, journals, and books directly from Telegram with mirror selection and Cloudflare bypass.
Web URL to PDF Ingest: Send direct download links or document URLs; the bot fetches and converts them into Telegram documents automatically.
Telegram Message to PDF: Render formatted Telegram messages into clean PDF documents.
Cryptographic AES Encryption: Lock documents with user and owner passwords via military-grade AES-256 encryption.
Instant Password Decryption: Remove password restrictions from your owned protected files.
Irreversible Redaction: Permanently black out confidential data, names, figures, and sensitive sections before public distribution.
Digital Signature: Insert verified signature blocks and embed dynamic scannable QR codes anywhere on your pages.
QR Code Stamping: Synthesizes and stamps a custom QR code onto pages.
Unified AIO (All-in-One) Pipeline: Handles password-protected files and applies continuous chains of operations (decrypt, compress, watermark, rename) in a single session.
Deep Linking & Shareable URLs: Generate secure Telegram deep links allowing others to open specific processed files right inside the bot.
44+ Operations Catalog
Every operation implemented directly in the source code (dispatch/reactor/ops/):
Click to expand the complete 44+ Operations Catalog
1. Document Architecture & Assembly
File
Operation
Description
pdf_merge.py
Merge
Concatenates multiple PDF files into one ordered master file
pdf_split.py
Split
Slices PDF documents by custom page range or specific pages
pdf_extract.py
Extract
Pulls out designated pages into a new standalone PDF
pdf_combine.py
Combine
Interleaves and combines disparate page batches
pdf_deletepage.py
Delete Page
Removes unwanted single pages or ranges by index
pdf_compress.py
Compress
Ghostscript compression: Low (/printer), Medium (/ebook), High (/screen)
🎯 All-in-one PDF assistant: • Convert images to PDF • Compress & optimize • Split, merge & extract • Add watermarks & stamps • Lock or unlock files • Search a vast book catalog Drop a document or use a com