|
| 1 | +<h1 align = "center"> Img to PDF Converter</h1> |
| 2 | + |
| 3 | +<div align = center> |
| 4 | + |
| 5 | +  |
| 6 | + |
| 7 | +</div> |
| 8 | + |
| 9 | +<p align="center"><b>This is a simple Python program that can convert a collection of image files into a single PDF file.</b></p> |
| 10 | + |
| 11 | +<h2>Requirements</h2> |
| 12 | + |
| 13 | +<ul> |
| 14 | + <li>Python</li> |
| 15 | + <li>img2pdf library</li> |
| 16 | +</ul> |
| 17 | + |
| 18 | +<h2>Installation</h2> |
| 19 | + |
| 20 | +<li>Install the img2pdf library using pip. Open a terminal or command prompt and enter the following command:</li> |
| 21 | +</ol> |
| 22 | +<pre><code>pip install img2pdf</code></pre> |
| 23 | + |
| 24 | +<h2>Usage</h2> |
| 25 | +<ol> |
| 26 | + <li>Put all the image files you want to convert into a single folder.</li> |
| 27 | + <li>Open a terminal or command prompt and navigate to the folder where the Python script is saved.</li> |
| 28 | + <li>Run the following command to convert the image files to a PDF:</li> |
| 29 | +</ol> |
| 30 | +<pre><code>python img2pdf.py</code></pre> |
| 31 | +<p>The PDF file will be saved as <code>Output.pdf</code> in the same folder as the script.</p> |
| 32 | +<h3>Note</h3> |
| 33 | +<ul> |
| 34 | + <li>The allowed file types for image files are <code>.jpg</code>, <code>.jpeg</code>, <code>.png</code>, and <code>.gif</code>.</li> |
| 35 | + <li>The image file names should be in alphabetical order or numerically ascending order to ensure that they are arranged in the correct order in the output PDF.</li> |
| 36 | +</ul> |
0 commit comments