Skip to content

Commit bb5dfda

Browse files
authored
Merge pull request Python-World#332 from Devanshh/master
Adding the detailed description file for Converting JPG into PDF
2 parents ff50736 + 3f61467 commit bb5dfda

1 file changed

Lines changed: 27 additions & 7 deletions

File tree

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
1-
## convert a image to pdf
1+
2+
# Convert an Image to PDF
3+
<!--Remove the below lines and add yours -->
4+
The Python script enables the user to convert Images into PDF files. However, you must note that the script can only work well for JPG file formats. You can use the converter for revamping JPG images into PDF format.
25

3-
### usage
4-
(This script only handles jpg type images.)
6+
### Requirements
7+
<!--Remove the below lines and add yours -->
8+
**img2pdf module**
59

6-
single image(.jpg):
7-
python convert_image_to_pdf.py image_name(eg: test.jpg)
10+
The `img2pdf` is an external Python module which enables you to convert a JPG image into a PDF.
811

9-
multiple images:
10-
python convert_image_to_pdf.py image_dir(eg: test)
12+
pip install img2pdf
13+
14+
### How to run the script
15+
<!--Remove the below lines and add yours -->
16+
### Using Terminal
17+
18+
- Add the image in the JPG format with name as 'input' in this folder.
19+
- Run converter_terminal.py script
20+
- Output PDF file will be generated in this folder
21+
22+
23+
### Screenshot/GIF showing the sample use of the script
24+
<!--Remove the below lines and add yours -->
25+
26+
[JPG to PDF Converter](https://drive.google.com/file/d/1_86AVHC3DkrOCcVsEbTXWejsXtnJOVqq/view?usp=sharing)
27+
28+
## *Author Name*
29+
<!--Remove the below lines and add yours -->
30+
Devansh Agarwal

0 commit comments

Comments
 (0)