Merge remote-tracking branch 'origin/master'

This commit is contained in:
Murat Onur Yildirim 2022-10-02 14:23:09 +02:00
commit f57e927816
4 changed files with 26 additions and 4 deletions

View File

@ -88,6 +88,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/Farhan-2222">
<img src="https://avatars.githubusercontent.com/u/87274221?v=4" width="100;" alt="Farhan-2222"/>
<br />
<sub><b>Md Farhan Sajid</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/agnxsh">
<img src="https://avatars.githubusercontent.com/u/80243668?v=4" width="100;" alt="agnxsh"/>
@ -122,15 +129,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br />
<sub><b>Aswin Shailajan</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/noobyysauraj">
<img src="https://avatars.githubusercontent.com/u/81681419?v=4" width="100;" alt="noobyysauraj"/>
<br />
<sub><b>Sauraj</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/srinjoy-26">
<img src="https://avatars.githubusercontent.com/u/91176055?v=4" width="100;" alt="srinjoy-26"/>
@ -165,7 +172,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br />
<sub><b>Null</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/SameerSahu007">
<img src="https://avatars.githubusercontent.com/u/29480670?v=4" width="100;" alt="SameerSahu007"/>

View File

@ -0,0 +1,9 @@
This script consist of python code which converts PNG to PDF.
It has a PNG image to use as example. For different image just write url of different image which you want to use/ replace "image.png" with total url of the image file.
Write the location of the PDF to be saved at/ replace 'document.pdf' with the total url and name of pdf along with pdf extension.
I have used flake8 linting on this as well.
Dependency: Download python and write "pip install Pillow" in cmd.

BIN
scripts/PNG_To_PDF/img.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,5 @@
from PIL import Image
image1 = Image.open(r'png-to-pdf.png')
impdf = image1.convert('RGB')
impdf.save(r'png-to-pdf.pdf') # noqa