A CLI tool to convert project files to PDF
Project description
proj2pdf
A command-line tool to convert your project files into a single PDF document. It supports various file types including:
- Python files (.py)
- Jupyter notebooks (.ipynb)
- Markdown files (.md)
- Various code files (.js, .ts, .java, .cpp, .c, .go, .rs, .rb, .php, .cs, .scala, .kt, .swift, .r, .sql, .sh)
- Existing PDF files
Installation
You can install proj2pdf using pip:
pip install proj2pdf
Usage
After installation, you can use the proj2pdf command from anywhere in your terminal:
# Convert files in current directory
proj2pdf
# Specify a different directory
proj2pdf -d /path/to/your/project
# Specify output file name
proj2pdf -o output.pdf
# Get help
proj2pdf --help
Features
- Converts various file types to PDF with syntax highlighting
- Maintains original formatting and structure
- Supports recursive directory scanning
- Merges multiple PDFs into a single document
- Preserves code syntax highlighting
- Handles Jupyter notebooks with output cells
- Supports markdown rendering
Requirements
- Python 3.7 or higher
- Required dependencies will be automatically installed
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file proj2pdf-0.1.0.tar.gz.
File metadata
- Download URL: proj2pdf-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b24756c721061d04539ca34427610ece916ed9bbef6ad5d5506758a71a101ea
|
|
| MD5 |
1ddce8f5c5673f571272a6601bad2a5a
|
|
| BLAKE2b-256 |
fc12d44b1251711d2f38de5bf3c6a3c3af9e272c7364ab9f2ebe6b94a7707224
|
File details
Details for the file proj2pdf-0.1.0-py3-none-any.whl.
File metadata
- Download URL: proj2pdf-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a595254abfd23b101443e949b613d89724770e743452a94941ee8c62da5301f
|
|
| MD5 |
75481dd0df39a79deb3162c82f13c049
|
|
| BLAKE2b-256 |
842f969461a92de586cfc6325c910c7935685a5ad208f8bd21452ae47cd16153
|