New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

Convert2PDF

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Convert2PDF - pypi Package Compare versions

Comparing version
0.2
to
0.3
+9
-9
Convert2PDF.egg-info/PKG-INFO
Metadata-Version: 2.1
Name: Convert2PDF
Version: 0.2
Version: 0.3
Summary: Convert from different file formats to PDF format.

@@ -9,3 +9,3 @@ Home-page: https://github.com/ashfaque/Convert2PDF

License: GNU GPLv3
Download-URL: https://github.com/ashfaque/Convert2PDF/archive/refs/tags/v_02.tar.gz
Download-URL: https://github.com/ashfaque/Convert2PDF/archive/refs/tags/v_03.tar.gz
Description: [![License: GNU GPLv3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/ashfaque/Convert2PDF/blob/main/LICENSE)

@@ -19,3 +19,3 @@

## How to import
```sh
```python3
from Convert2PDF.ConvertToPDF import docx2pdfConvert, pptx2pdfConvert, img2pdfConvert, bmp2pdfConvert, txt2pdfConvert, mergePdfs

@@ -38,3 +38,3 @@ ```

### Convert from doc or docx to pdf format.
```sh
```python3
docx = docx2pdfConvert(f'{os.getcwd()}/file name.docx', f'{os.getcwd()}/output_dir/')

@@ -46,3 +46,3 @@ doc = docx2pdfConvert(f'{os.getcwd()}/file name.doc', f'{os.getcwd()}/output_dir/')

### Convert from ppt or pptx to pdf format
```sh
```python3
pptx = pptx2pdfConvert(f'{os.getcwd()}/file name.pptx', f'{os.getcwd()}/output/')

@@ -54,3 +54,3 @@ ppt = pptx2pdfConvert(f'{os.getcwd()}/file name.ppt', f'{os.getcwd()}/output/')

### Convert from jpeg, jpg or png ot pdf format.
```sh
```python3
jpeg = img2pdfConvert(f'{os.getcwd()}/file name.jpeg', f'{os.getcwd()}/output/file name.pdf')

@@ -63,3 +63,3 @@ jpg = img2pdfConvert(f'{os.getcwd()}/file name.jpg', f'{os.getcwd()}/output/file name.pdf')

### Convert from bmp to pdf format.
```sh
```python3
bmp = bmp2pdfConvert(f'{os.getcwd()}/file name.bmp', f'{os.getcwd()}/output/file name.pdf')

@@ -70,3 +70,3 @@ ```

### Convert from txt to pdf format.
```sh
```python3
txt = txt2pdfConvert(f'{os.getcwd()}/file name.txt', f'{os.getcwd()}/output/file name.pdf')

@@ -77,3 +77,3 @@ ```

### Merge all pdf files to one pdf file.
```sh
```python3
all_pdfs_path_tuple = (

@@ -80,0 +80,0 @@ f'{os.getcwd()}/file 1.pdf'

@@ -14,3 +14,3 @@ def subprocess_run(args : list) -> bool:

# ? docx / doc to pdf
def docx2pdfConvert(doc_file_path, output_pdf_folder_path):
def docx2pdfConvert(doc_file_path : str, output_pdf_folder_path : str) -> bool:
''' HOW TO USE :-

@@ -43,3 +43,3 @@ docx = docx2pdfConvert(f'{os.getcwd()}/file name.docx', f'{os.getcwd()}/output_dir/')

# ? pptx / ppt to pdf
def pptx2pdfConvert(ppt_file_path, output_pdf_folder_path):
def pptx2pdfConvert(ppt_file_path : str, output_pdf_folder_path : str) -> bool:
''' HOW TO USE :-

@@ -73,3 +73,3 @@ pptx = pptx2pdfConvert(f'{os.getcwd()}/file name.pptx', f'{os.getcwd()}/output/')

# ? jpeg to pdf
def img2pdfConvert(jpeg_file_path, output_pdf_file_path):
def img2pdfConvert(jpeg_file_path : str, output_pdf_file_path : str) -> bool:
'''

@@ -96,3 +96,3 @@ jpeg = img2pdfConvert(f'{os.getcwd()}/file name.jpeg', f'{os.getcwd()}/output/file name.pdf')

# ? bmp to pdf
def bmp2pdfConvert(bmp_file_path, output_pdf_file_path):
def bmp2pdfConvert(bmp_file_path : str, output_pdf_file_path : str) -> bool:
'''

@@ -116,3 +116,3 @@ bmp = bmp2pdfConvert(f'{os.getcwd()}/file name.bmp', f'{os.getcwd()}/output/file name.pdf')

# ? txt to pdf
def txt2pdfConvert(txt_file_path, output_pdf_file_path):
def txt2pdfConvert(txt_file_path : str, output_pdf_file_path : str) -> bool:
'''

@@ -173,3 +173,3 @@ https://stackoverflow.com/a/64877141/16377463

# ? Merge all pdf file to one pdf file
def mergePdfs(*pdf_paths : tuple, output_pdf_file_path):
def mergePdfs(*pdf_paths : tuple, output_pdf_file_path : str) -> bool:
'''

@@ -188,4 +188,5 @@ all_pdfs_path_tuple = (

try:
from PyPDF2 import PdfFileMerger, PdfMerger
from PyPDF2 import PdfFileMerger
merger = PdfFileMerger()
# from PyPDF2 import PdfMerger
# merger = PdfMerger()

@@ -192,0 +193,0 @@ [merger.append(pdf) for pdf in pdf_paths]

Metadata-Version: 2.1
Name: Convert2PDF
Version: 0.2
Version: 0.3
Summary: Convert from different file formats to PDF format.

@@ -9,3 +9,3 @@ Home-page: https://github.com/ashfaque/Convert2PDF

License: GNU GPLv3
Download-URL: https://github.com/ashfaque/Convert2PDF/archive/refs/tags/v_02.tar.gz
Download-URL: https://github.com/ashfaque/Convert2PDF/archive/refs/tags/v_03.tar.gz
Description: [![License: GNU GPLv3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/ashfaque/Convert2PDF/blob/main/LICENSE)

@@ -19,3 +19,3 @@

## How to import
```sh
```python3
from Convert2PDF.ConvertToPDF import docx2pdfConvert, pptx2pdfConvert, img2pdfConvert, bmp2pdfConvert, txt2pdfConvert, mergePdfs

@@ -38,3 +38,3 @@ ```

### Convert from doc or docx to pdf format.
```sh
```python3
docx = docx2pdfConvert(f'{os.getcwd()}/file name.docx', f'{os.getcwd()}/output_dir/')

@@ -46,3 +46,3 @@ doc = docx2pdfConvert(f'{os.getcwd()}/file name.doc', f'{os.getcwd()}/output_dir/')

### Convert from ppt or pptx to pdf format
```sh
```python3
pptx = pptx2pdfConvert(f'{os.getcwd()}/file name.pptx', f'{os.getcwd()}/output/')

@@ -54,3 +54,3 @@ ppt = pptx2pdfConvert(f'{os.getcwd()}/file name.ppt', f'{os.getcwd()}/output/')

### Convert from jpeg, jpg or png ot pdf format.
```sh
```python3
jpeg = img2pdfConvert(f'{os.getcwd()}/file name.jpeg', f'{os.getcwd()}/output/file name.pdf')

@@ -63,3 +63,3 @@ jpg = img2pdfConvert(f'{os.getcwd()}/file name.jpg', f'{os.getcwd()}/output/file name.pdf')

### Convert from bmp to pdf format.
```sh
```python3
bmp = bmp2pdfConvert(f'{os.getcwd()}/file name.bmp', f'{os.getcwd()}/output/file name.pdf')

@@ -70,3 +70,3 @@ ```

### Convert from txt to pdf format.
```sh
```python3
txt = txt2pdfConvert(f'{os.getcwd()}/file name.txt', f'{os.getcwd()}/output/file name.pdf')

@@ -77,3 +77,3 @@ ```

### Merge all pdf files to one pdf file.
```sh
```python3
all_pdfs_path_tuple = (

@@ -80,0 +80,0 @@ f'{os.getcwd()}/file 1.pdf'

@@ -9,3 +9,3 @@ [![License: GNU GPLv3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/ashfaque/Convert2PDF/blob/main/LICENSE)

## How to import
```sh
```python3
from Convert2PDF.ConvertToPDF import docx2pdfConvert, pptx2pdfConvert, img2pdfConvert, bmp2pdfConvert, txt2pdfConvert, mergePdfs

@@ -28,3 +28,3 @@ ```

### Convert from doc or docx to pdf format.
```sh
```python3
docx = docx2pdfConvert(f'{os.getcwd()}/file name.docx', f'{os.getcwd()}/output_dir/')

@@ -36,3 +36,3 @@ doc = docx2pdfConvert(f'{os.getcwd()}/file name.doc', f'{os.getcwd()}/output_dir/')

### Convert from ppt or pptx to pdf format
```sh
```python3
pptx = pptx2pdfConvert(f'{os.getcwd()}/file name.pptx', f'{os.getcwd()}/output/')

@@ -44,3 +44,3 @@ ppt = pptx2pdfConvert(f'{os.getcwd()}/file name.ppt', f'{os.getcwd()}/output/')

### Convert from jpeg, jpg or png ot pdf format.
```sh
```python3
jpeg = img2pdfConvert(f'{os.getcwd()}/file name.jpeg', f'{os.getcwd()}/output/file name.pdf')

@@ -53,3 +53,3 @@ jpg = img2pdfConvert(f'{os.getcwd()}/file name.jpg', f'{os.getcwd()}/output/file name.pdf')

### Convert from bmp to pdf format.
```sh
```python3
bmp = bmp2pdfConvert(f'{os.getcwd()}/file name.bmp', f'{os.getcwd()}/output/file name.pdf')

@@ -60,3 +60,3 @@ ```

### Convert from txt to pdf format.
```sh
```python3
txt = txt2pdfConvert(f'{os.getcwd()}/file name.txt', f'{os.getcwd()}/output/file name.pdf')

@@ -67,3 +67,3 @@ ```

### Merge all pdf files to one pdf file.
```sh
```python3
all_pdfs_path_tuple = (

@@ -70,0 +70,0 @@ f'{os.getcwd()}/file 1.pdf'

@@ -20,4 +20,4 @@ # Change version & download_url in setup.py

packages = ['Convert2PDF'], # Chose the same as "name"
version = '0.2', # Start with a small number and increase it with every change you make
download_url = 'https://github.com/ashfaque/Convert2PDF/archive/refs/tags/v_02.tar.gz', # Link of your source code
version = '0.3', # Start with a small number and increase it with every change you make
download_url = 'https://github.com/ashfaque/Convert2PDF/archive/refs/tags/v_03.tar.gz', # Link of your source code
license='GNU GPLv3', # Chose a license from here: https://help.github.com/articles/licensing-a-repository or, https://choosealicense.com/

@@ -24,0 +24,0 @@ description = 'Convert from different file formats to PDF format.', # Give a short description about your library