Convert cleanly formatted .txt documentation into color-styled PDF files.
Project description
A stylish and minimal Python script that converts cleanly formatted .txt documentation into beautifully styled PDFs — ideal for sharing protocols, tutorials, coding steps, or structured instructions.
🧭 Table of Contents
🖋️ Features
- 🪄 Converts step-based text into structured colored PDFs
- 🎨 Syntax-highlighted script blocks
- ✍️ Instruction + code separation with visual hierarchy
- 📦 Automatically wraps long lines inside script blocks
- 📜 Supports project titles and contributor metadata from the
.txt - 📤 Outputs PDF in the same directory as input
📝 Input Format Example
Title: GitHub Push Workflow from PyCharm (Styled Script Format)
[Prepared by AdhikariPB with ChatGPT]
Step 1: Create a Proper PyCharm Project
- Structure cleanly (e.g., ~/PyCharmProjects/my_project)
- Include a README.md and .gitignore if needed.
"""
$ git init
"""
🚀 How to Use
1. Clone the Repository
git clone https://github.com/adhikaripb/coding-scripting-tutorial-pdf-generator.git
cd coding-scripting-tutorial-pdf-generator
2. [Optional] Install Required Package
The script auto-checks and installs prerequisite modules. However, if you'd like to do it manuyally,
pip install fpdf
3. Run the Script
Once installed (or after setup locally), you can run it from anywhere using:
tutorial-txt2pdf-style
- You'll be prompted to provide a path to a
.txtfile. - A color-styled PDF will be generated in the same folder.
📷 Sample Output
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 tutorial-text2pdf-style-0.1.1.tar.gz.
File metadata
- Download URL: tutorial-text2pdf-style-0.1.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9ee97dafb9a28694b34f1e9528419ccebb1757bc86d4a499c959792a8b91fb7
|
|
| MD5 |
0f65f19d2dcbb9a2c7ccd553308f95a7
|
|
| BLAKE2b-256 |
492f7d973d892d72844e17e08149cf4b5c354f377b1ab42e898baf8cb46d558d
|
File details
Details for the file tutorial_text2pdf_style-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tutorial_text2pdf_style-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8b20099fb9eb0a3e07679f63d699a6bc8c760f066a9a6562e09f0097b77a2f9
|
|
| MD5 |
6aaebc5597ebf3f7ca36eeb3cda4f648
|
|
| BLAKE2b-256 |
80f7fe43dd3f52ac05f37b306cb353064e9da2b5a4d1c57c3b36c308c2b6bce7
|