diff --git a/Configs/dm.py b/Configs/dm.py index ef85326..ae824e3 100644 --- a/Configs/dm.py +++ b/Configs/dm.py @@ -1,5 +1,5 @@ # fileName: Configs/dm.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev diff --git a/README.md b/README.md index 70cf6bf..cad0055 100644 --- a/README.md +++ b/README.md @@ -1,172 +1 @@ - - - -About: - -```py - _ _ ___ ___ _____ ™ - | | | | _____ _____ | _ \| \| __| - | | | |__/ _ \ V / -_) | _/| |) | _| - |_| |___,\___/\_/\___| |_| |___/|_| - [Nabil A Navab] - Email: nabilanavab@gmail.com - Telegram: @nabilanavab -``` - -
- -## Enjoy the API - -ilovePDF is an, easy-to-use open-source Telegram PDF bot fully written in python language 🐍 -

-Released Under Apache License.
-it was specially developed for creating PDF's from images.. And Now, Bot Supports many other features for PDF manipulation 🦾 -
-Demo Bot - -
-

features:

-

Image to PDF

-
- - ◍ This bot will helps you to convert multiple - images to pdf - ◍ .jpg, .jpeg, .png files Supported - ◍ Zero additional Compression - ◍ For Better quality pdf, send media without - Compression - ◍ Image sequence will be considered - ◍ /cancel - deletes the current queue - ◍ you can Rename your pdf at the time of /generate - - /generate name {pdf with your name} - - /generate {pdf with your id} - - /generate FileName {pdf with file name} - ◍ /id to get your id - -

PDF to images

- - ◍ Unlike other bots, this bot extract images - from your pdf files without converting the entire - pdf to pages..So always shows 100% speed 😉 - ◍ You can also fetch a single image or a list - of images from any part of your pdf - ◍ Sequence will be considered - ◍ For better quality images, bot support sending - images as documents (files) - -This bot is using a different protocol for uploading -the extracted PDF-images.. - -

Files to PDF

- - In addition, - ◍ About 40+ popular file formats can also be - convert to pdf using ilovepdf bot - ◍ By default, bot support with ASCII char. support - [EPUB, FB2(e-book), XPS, openXPS, CBZ, CBR] - ◍ All other files are converted using ConvertAPI - [csv, doc, docx, ppt, pptx, dot, dotx, log, mpp, - mpt, odt, pot, potx, pps, ppsx, pub, rtf, txt, vdx, - vsd, vsdx, vst, vstx, wpd, wps, wri, xls, xlsb, - xlsx, xlt, xltx, xml] - & supports Unicode Char(utf-8) - - No need to specify file formats..✌️ - -

Pdf to text

- - ◍ Convert pdf to text, .txt file - ◍ It also supports html(to view pdfs on browsers), json files - -

Split pdf

- - ◍ Now you can Split your pdf in to smaller Ones - ◍ /extract start:end - ◍ supports single pages too.. - -

Encrypt pdf

- - ◍ Pdf Encryption Supported - ◍ /encrypt pdf - -

Commands:

- - /start - Check wheather bot alive. - /help - for more help - /id - Get Ur Id (default pdf name) - /cancel - Delete's old queue - /generate - long tap to set a pdf name - /extract - to get images from pdf - /encrypt - pdf Encryption - /text - converts pdf to text, .txt, html, json files - -

Source code:

- - Developed by: @nabilanavab, Kerala - -

Privacy & Security:

- - Ones the necessary task is completed, - all your images including the pdf file - will be removed from the server. - - for more information: - please check the Source code😌 - -# how to Create your Own pDf bot:
-## Quick start for developers - -Being a python library; To run this code, python must be installed on your machine - -### Packages/Library Installation - - ╭─────Local Host──〄 - │ - ├───pip install PyPDF2 - ├───pip install pillow - ├───pip install pymupdf - ├───pip install tgcrypt - ├───pip install pyrogram - ├───pip install convertapi - │ - ├─────Heroku──〄 - ├─────Qovery──〄 - ╰────Railways──〄 - -### deploy on heroku: -[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/nabilanavab/ilovepdf) - -## Project setUp: - - API key 🔑 - - This bot only requires your Telegram Bot Token - as (API_TOKEN) for doing 95% tasks - - For a Better experience U can add convertAPI - secret key as (CONVERT_API) - - NB: The API keys are personal & must be kept secret - -## Config Var: - -Get API\_ID, API\_HASH
-Get API_TOKEN
-Get CONVERT_API - - API_ID, API_HASH, API_TOKEN - CONVERT_API, UPDATE_CHANNEL - MAX_FILE_SIZE - -## About LICENSE: - - Apache License 2.0 - Copyright 2021 nabilanavab - - You can use and integrate ilovePDF - into your own code..And If you are - Redistributing your code, with - modifications, please try to mention - the changes : ) - -![elpablo_agadhgiaanlc4gk](https://user-images.githubusercontent.com/53673312/129444963-ac9d4fe6-1be3-4b89-979b-f442e46234ab.png) +//Under Development \ No newline at end of file diff --git a/pdf.py b/pdf.py index 6192def..0ea916e 100644 --- a/pdf.py +++ b/pdf.py @@ -1,6 +1,6 @@ # !/USR/BIN/PYTHON # -*- COADING: UTF-8 -*- -# COPYRIGHT ©️ 2021 NABILANAVAB +# copyright ©️ 2021 InHame Dev ''' diff --git a/plugins/checkPdf.py b/plugins/checkPdf.py index 5919458..0a720b6 100644 --- a/plugins/checkPdf.py +++ b/plugins/checkPdf.py @@ -1,5 +1,5 @@ # fileName : plugins/checkPdf.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -101,4 +101,4 @@ async def checkPdf(file_path, callbackQuery): return "notPdf" -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/buat.py b/plugins/dm/buat.py index 0a7b5ee..0c328a9 100644 --- a/plugins/dm/buat.py +++ b/plugins/dm/buat.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/buat.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -138,4 +138,4 @@ async def buat(bot, message): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/callBack/asImgOrDoc.py b/plugins/dm/callBack/asImgOrDoc.py index ed5c3b0..86090c2 100644 --- a/plugins/dm/callBack/asImgOrDoc.py +++ b/plugins/dm/callBack/asImgOrDoc.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/callKembali/asImgOrDoc.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -439,4 +439,4 @@ async def _KBTPM(bot, callbackQuery): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/callBack/blaBla.py b/plugins/dm/callBack/blaBla.py index ea70fe0..047038a 100644 --- a/plugins/dm/callBack/blaBla.py +++ b/plugins/dm/callBack/blaBla.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/callBack/blaBla.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev diff --git a/plugins/dm/callBack/compress.py b/plugins/dm/callBack/compress.py index 451d228..8bfde77 100644 --- a/plugins/dm/callBack/compress.py +++ b/plugins/dm/callBack/compress.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/callBack/compress.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -130,4 +130,4 @@ async def _compress(bot, callbackQuery): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/callBack/decrypt.py b/plugins/dm/callBack/decrypt.py index 909c9ea..bdf3698 100644 --- a/plugins/dm/callBack/decrypt.py +++ b/plugins/dm/callBack/decrypt.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/callBack/decrypt.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -138,4 +138,4 @@ async def _decrypt(bot, callbackQuery): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/callBack/encrypt.py b/plugins/dm/callBack/encrypt.py index 24b12c1..868acac 100644 --- a/plugins/dm/callBack/encrypt.py +++ b/plugins/dm/callBack/encrypt.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/callBack/encrypt.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -181,4 +181,4 @@ async def _encrypt(bot, callbackQuery): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/callBack/merge.py b/plugins/dm/callBack/merge.py index 13419c5..ac05293 100644 --- a/plugins/dm/callBack/merge.py +++ b/plugins/dm/callBack/merge.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/callBack/merge.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -197,4 +197,4 @@ async def _merge(bot, callbackQuery): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/callBack/pdfMetaData.py b/plugins/dm/callBack/pdfMetaData.py index f956d8e..dd79016 100644 --- a/plugins/dm/callBack/pdfMetaData.py +++ b/plugins/dm/callBack/pdfMetaData.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/Callback/pdfMetaData.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -225,4 +225,4 @@ async def _KpdfInfo(bot, callbackQuery): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/callBack/rename.py b/plugins/dm/callBack/rename.py index bc72d75..4669836 100644 --- a/plugins/dm/callBack/rename.py +++ b/plugins/dm/callBack/rename.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/callBack/rename.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -114,4 +114,4 @@ async def _encrypt(bot, callbackQuery): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/callBack/rotate.py b/plugins/dm/callBack/rotate.py index 5e30c23..fa84f62 100644 --- a/plugins/dm/callBack/rotate.py +++ b/plugins/dm/callBack/rotate.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/callKembali/rotate.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -230,4 +230,4 @@ async def _rot360(bot, callbackQuery): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/callBack/split.py b/plugins/dm/callBack/split.py index ce73e4c..79ef7db 100644 --- a/plugins/dm/callBack/split.py +++ b/plugins/dm/callBack/split.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/callKembali/split.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev diff --git a/plugins/dm/callBack/stamp.py b/plugins/dm/callBack/stamp.py index 377bcba..2a40601 100644 --- a/plugins/dm/callBack/stamp.py +++ b/plugins/dm/callBack/stamp.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/callKembali/stamp.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev diff --git a/plugins/dm/callBack/text.py b/plugins/dm/callBack/text.py index 341264e..b6a4043 100644 --- a/plugins/dm/callBack/text.py +++ b/plugins/dm/callBack/text.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/callBack/text.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -431,4 +431,4 @@ async def _J(bot, callbackQuery): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/callBack/toImages.py b/plugins/dm/callBack/toImages.py index 4ba209e..ff47701 100644 --- a/plugins/dm/callBack/toImages.py +++ b/plugins/dm/callBack/toImages.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/callBack/toImage.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -1200,4 +1200,4 @@ async def _KEXTRACT(bot, callbackQuery): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/cancel.py b/plugins/dm/cancel.py index 486e0f7..4c5216b 100644 --- a/plugins/dm/cancel.py +++ b/plugins/dm/cancel.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/cancel.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -70,4 +70,4 @@ async def cancelP2I(bot, message): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/document.py b/plugins/dm/document.py index ce8326c..359c95c 100644 --- a/plugins/dm/document.py +++ b/plugins/dm/document.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/document.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -435,4 +435,4 @@ async def documents(bot, message): print("plugins/dm/document : ", e) -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/feedback.py b/plugins/dm/feedback.py index 5582d94..667d917 100644 --- a/plugins/dm/feedback.py +++ b/plugins/dm/feedback.py @@ -1,5 +1,5 @@ # fileName : Plugins/dm/feedback.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -72,4 +72,4 @@ async def feedback(bot, message): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/id.py b/plugins/dm/id.py index 6abfc65..8bef4a9 100644 --- a/plugins/dm/id.py +++ b/plugins/dm/id.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/id.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -65,4 +65,4 @@ async def userId(bot, message): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/menu.py b/plugins/dm/menu.py index f0fb46b..c641e6b 100644 --- a/plugins/dm/menu.py +++ b/plugins/dm/menu.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/id.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -92,4 +92,4 @@ async def userId(bot, message): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/photo.py b/plugins/dm/photo.py index 98289b6..b78e2ce 100644 --- a/plugins/dm/photo.py +++ b/plugins/dm/photo.py @@ -1,5 +1,5 @@ # fileName : Plugins/dm/photo.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -47,7 +47,7 @@ """ gmbrAlrt = """`*⏱️pesan akan terhapus dalam 8s - Note : Jika ingin menambahkan foto lainnya dalam satu pdf silahkan kirim foto sebelum melakukan /buat` +Note : Jika ingin menambahkan foto lainnya dalam satu pdf silahkan kirim foto sebelum melakukan /buat` /buat [Nama Filemu Bebas] - untuk membuat nama pdf /hapus - untuk menghapus semua halaman @@ -146,4 +146,4 @@ async def images(bot, message): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/start.py b/plugins/dm/start.py index 2f5ba1e..758c7f8 100644 --- a/plugins/dm/start.py +++ b/plugins/dm/start.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/start.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -296,4 +296,4 @@ async def _close(bot, callbackQuery): print(e) -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/dm/waste.py b/plugins/dm/waste.py index 69d751a..5d7b66d 100644 --- a/plugins/dm/waste.py +++ b/plugins/dm/waste.py @@ -1,5 +1,5 @@ # fileName : plugins/dm/waste.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -65,4 +65,4 @@ async def spam(bot, message): pass -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/fileSize.py b/plugins/fileSize.py index 12104e2..b9e6e55 100644 --- a/plugins/fileSize.py +++ b/plugins/fileSize.py @@ -1,5 +1,5 @@ # fileName : plugins/fileSize.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -28,4 +28,4 @@ async def get_size_format( """ -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/progress.py b/plugins/progress.py index 8b21dbf..c76d241 100644 --- a/plugins/progress.py +++ b/plugins/progress.py @@ -1,5 +1,5 @@ # fileName : plugins/progress.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -71,4 +71,4 @@ def TimeFormatter(milliseconds: int) -> str: return tmp[:-2] -# Telegram: @nabilanavab +# Copyright InHame Dev diff --git a/plugins/toKnown.py b/plugins/toKnown.py index fc9a0fe..5274508 100644 --- a/plugins/toKnown.py +++ b/plugins/toKnown.py @@ -1,5 +1,5 @@ # fileName : plugins/toKnown.py -# copyright ©️ 2021 nabilanavab +# copyright ©️ 2021 InHame Dev @@ -101,4 +101,4 @@ async def toKnown(callbackQuery, number_of_pages): print(f"plugins/toKnown: {e}") -# Telegram: @nabilanavab +# Copyright InHame Dev