DEV Community

zeshuaro
zeshuaro

Posted on

Telegram PDF Bot

My Final Project

I created a PDF utility bot on Telegram that can:

  • Crop, decrypt, encrypt, merge, preview, rename, rotate, scale and split a PDF file
  • Compare text differences of two PDF files
  • Create a PDF file from text messages
  • Add watermark to a PDF file
  • Add a text layer to a PDF file to make it searchable
  • Extract text from a PDF file
  • Extract images in a PDF file and convert a PDF file into images
  • Beautify and convert photos into a PDF file
  • Convert a web page into a PDF file

Demo Link

https://t.me/pdfbot

Link to Code

GitHub logo zeshuaro / telegram-pdf-bot

A PDF utility bot on Telegram

Telegram PDF Bot

Telegram Bot Telegram Channel MIT License

Build Status Codacy Badge Crowdin

A PDF utility bot on Telegram that can:

  • Crop, decrypt, encrypt, merge, preview, rename, rotate, scale and split a PDF file
  • Compare text differences of two PDF files
  • Create a PDF file from text messages
  • Add watermark to a PDF file
  • Add a text layer to a PDF file to make it searchable
  • Extract text from a PDF file
  • Extract images in a PDF file and convert a PDF file into images
  • Beautify and convert photos into PDF format
  • Convert a web page into a PDF file

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes

Setup Database

The bot uses Datastore on Google Cloud Platform (GCP). Create a new project on GCP and enabble Datastore in the project. Install the gcloud CLI and run gcloud init to initialise it with your…

How I built it

I built it with Python along with some Python packages for manipulating PDF files. I also used Docker and Travis CI to deploy and host the bot on Heroku. And lastly, I used Datastore on Google Cloud Platform to store the bot usage statistics.

Additional Thoughts / Feelings / Stories

This was an interesting project as I have been receiving feedback from users to either fix bugs or implement new features. The bot has over 10,000 users and has processed over 65,000 tasks. Last year, one of the users also offered to help translate the bot into Italian. With the help of the users, the bot now supports 11 languages.

Top comments (0)