-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c35ee55
commit d6a883e
Showing
29 changed files
with
53 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# fileName: Configs/dm.py | ||
# copyright ©️ 2021 nabilanavab | ||
# copyright ©️ 2021 InHame Dev | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,172 +1 @@ | ||
|
||
<img src="https://telegra.ph/file/ec0047cc76e7080f818ff.png"> | ||
|
||
<small><i>About:</i></small> | ||
|
||
```py | ||
_ _ ___ ___ _____ ™ | ||
| | | | _____ _____ | _ \| \| __| | ||
| | | |__/ _ \ V / -_) | _/| |) | _| | ||
|_| |___,\___/\_/\___| |_| |___/|_| | ||
[Nabil A Navab] | ||
Email: nabilanavab@gmail.com | ||
Telegram: @nabilanavab | ||
``` | ||
|
||
<div align="center"> | ||
|
||
## Enjoy the API | ||
|
||
<i>ilovePDF is an, easy-to-use open-source Telegram PDF bot fully written in python language 🐍</i> | ||
<br><br> | ||
<b>Released Under Apache License.</b><br> | ||
it was specially developed for creating PDF's from images.. And Now, Bot Supports many other features for PDF manipulation 🦾 | ||
</div> | ||
<a href="https://telegram.dog/ilovepdf_bot">Demo Bot</a> | ||
|
||
<div align="center"> | ||
<h1><i>features:</i></h1> | ||
<h3>Image to PDF</h3> | ||
</div> | ||
|
||
◍ 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 | ||
|
||
<h3 align="center">PDF to images</h3> | ||
|
||
◍ 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) | ||
<em align="center">This bot is using a different protocol for uploading | ||
the extracted PDF-images..</em> | ||
|
||
<h3 align="center">Files to PDF</h3> | ||
|
||
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..✌️ | ||
|
||
<h3 align="center">Pdf to text</h3> | ||
|
||
◍ Convert pdf to text, .txt file | ||
◍ It also supports html(to view pdfs on browsers), json files | ||
|
||
<h3 align="center">Split pdf</h3> | ||
|
||
◍ Now you can Split your pdf in to smaller Ones | ||
◍ /extract start:end | ||
◍ supports single pages too.. | ||
|
||
<h3 align="center">Encrypt pdf</h3> | ||
|
||
◍ Pdf Encryption Supported | ||
◍ /encrypt pdf | ||
|
||
<h3 align="center">Commands:</h3> | ||
|
||
/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 | ||
|
||
<h3 align="center">Source code:</h3> | ||
|
||
Developed by: @nabilanavab, Kerala | ||
|
||
<h3 align="center">Privacy & Security:</h3> | ||
|
||
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:<br> | ||
## Quick start for developers | ||
|
||
<i>Being a python library; To run this code, python must be installed on your machine</i> | ||
|
||
### 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: <i>The API keys are personal & must be kept secret </i> | ||
|
||
## Config Var: | ||
|
||
<a href="https://my.telegram.org">Get API\_ID, API\_HASH</a><br> | ||
<a href="https://telegram.dog/botfather">Get API_TOKEN</a><br> | ||
<a href="https://www.convertapi.com/a/signup">Get CONVERT_API</a> | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# !/USR/BIN/PYTHON | ||
# -*- COADING: UTF-8 -*- | ||
# COPYRIGHT ©️ 2021 NABILANAVAB | ||
# copyright ©️ 2021 InHame Dev | ||
|
||
|
||
''' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# fileName : plugins/dm/callBack/blaBla.py | ||
# copyright ©️ 2021 nabilanavab | ||
# copyright ©️ 2021 InHame Dev | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# fileName : plugins/dm/callKembali/split.py | ||
# copyright ©️ 2021 nabilanavab | ||
# copyright ©️ 2021 InHame Dev | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# fileName : plugins/dm/callKembali/stamp.py | ||
# copyright ©️ 2021 nabilanavab | ||
# copyright ©️ 2021 InHame Dev | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.