This is render50, with which you can render source code as PDFs.
Project description
render_pdf
render_pdf is python script based on weasyprint that converts any source code to pdf file.
Features
This script has the following features.
- syntax highlighting for any source code using pygments.
- line number for the source code.
- rendering any online materials or source code by downloading it.
Installation
You can install this package from the pypi index using the following commands.
For Linux
pip install render_pdf
For windows
python -m pip install render_pdf
Usage
This script can be used in variety of ways.
- rendering single source code from local directory
render ./setup.py -o setup.pdf
- rendering multiple source codes from local directory
render ./setup.py ./render.py -o render.pdf
rendering two source codes side by side for comparison.
render -y ./setup.py ./render.py -o render.pdf
rendering source code by downloading from the internet.
To render the setup.py file from this repository by downloading it from github server. P
render https://raw.githubusercontent.com/endalk200/render_pdf/main/setup.py -o setup.pdf
Source Code
You can see the source code by cloning the repository as follows.
git clone https://github.com/endalk200/render_pdf.git
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
render_pdf-0.1.8.tar.gz
(7.9 kB
view details)
Built Distribution
File details
Details for the file render_pdf-0.1.8.tar.gz
.
File metadata
- Download URL: render_pdf-0.1.8.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7d049d89a38a188bd6aefd3581c10e04dc8916e2c5f728de09a497df7ccd962 |
|
MD5 | 0527ea68bf3bea730dd6bf6abbbdc53d |
|
BLAKE2b-256 | 5cb623cdedc7dc2fadd0052de1b15bcd6a76fc5df08c55f3bba96a90db853b92 |
File details
Details for the file render_pdf-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: render_pdf-0.1.8-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f462fdd0eb276bb7ae3a52d0d783ce545aad92cdf9350802b8444b85e10d72f |
|
MD5 | c8a66e63489af74968c73690593b51a9 |
|
BLAKE2b-256 | 18156dc6e9874eb3a8c5ab18ca5294e9660c6dd1a52ebae907873168160895de |