CSV TO PDF CONVERTER ( .csv ➜ .pdf )
A Python module that allows you to convert CSV FILES to PDF FILES easily!
Installation
pip install csv2pdf
Examples 📋
# Quick conversion
>>> from csv2pdf import convert
>>> convert("source.csv", "destination.pdf")
# Change Orientation of the PDF File
>>> from csv2pdf import convert
>>> convert("source.csv", "destination.pdf", orientation="L")
# Specify Delimiter for the CSV File
>>> from csv2pdf import convert
>>> convert("source.csv", "destination.pdf", delimiter="&")
# Change Alignment of the cells
>>> from csv2pdf import convert
>>> convert("source.csv", "destination.pdf", align="L")
>>> from csv2pdf import convert
>>> convert("source.csv", "destination.pdf", align="R")
# Change Size & Header-Size
>>> from csv2pdf import convert
>>> convert("source.csv", "destination.pdf", size=5)
>>> from csv2pdf import convert
>>> convert("source.csv", "destination.pdf", headersize=7)
# Using custom fonts
>>> from csv2pdf import convert
>>> convert("source.csv", "destination.pdf",
font=r"Fonts\custom-font.tff", headerfont=r"Fonts\custom-header-font.tff")
Use .tff files for specifying font files. Fonts can be downloaded from Google Fonts.
Release files for csv2pdf 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| csv2pdf-0.1.4.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| csv2pdf-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / csv2pdf-0.1.4.tar.gz
| Download URL | csv2pdf-0.1.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ceb760e12108492d15008e05af4dd1bba539b736e6c89ccbfe1322a506766654
|
|
BLAKE2b-256 checksum How to use checksums |
363b4a2692bc9b8e687d88b909b99f3dd3ee9ceb14b10eb2780f898ce8dd8911
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / csv2pdf-0.1.4-py3-none-any.whl
| Download URL | csv2pdf-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
928e35b437b3901b194f14cfbfe008d9a2b25ab0d4fd913cad1ffdfaf4e90ff4
|
|
BLAKE2b-256 checksum How to use checksums |
446c5bf066e3738f2c21bd7efe8eb48bb8ab1e2b1d38e80218724ade9c64f4e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|