Skip to content

Commit 4dd7667

Browse files
committed
Add Image to PDF Tutorial
1 parent 9570cd0 commit 4dd7667

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# 🖼️ Image to PDF
2+
3+
## Description
4+
5+
img2pdf is an open source Python package to convert images to pdf format. It includes another module Pillow which can also be used to enhance image (Brightness, contrast and other things)
6+
7+
---
8+
9+
## Installation
10+
11+
You will need `img2pdf` package installed, you can install it by running the following command
12+
13+
```bash
14+
pip install img2pdf
15+
```
16+
17+
---
18+
19+
## Steps To Execution
20+
21+
- Fork this repo and navigate to `IMAGES & PHOTO SCRIPTS` folder
22+
- (optional) Add images to same directory with this img2pdf.py.
23+
- Modify the names in `img2pdf.py`
24+
- Run this img2pdf.py `$ python img2pdf.py`
25+
- The output directory will now include a brand-new PDF file.
26+
27+
---
28+
29+
## Output
30+
31+
```bash
32+
Image contains an alpha channel. Computing a separate soft mask (/SMask) image to store transparency in PDF.
33+
Successfully made pdf file
34+
```
35+
36+
---
37+
38+
---

0 commit comments

Comments
 (0)