Skip to main content

Convert cleanly formatted .txt documentation into color-styled PDF files.

Project description

Use this template

Repo Banner

# 📄 Text-to-Colored-PDF Converter

Python License Status Stars Last Commit

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 .txt file.
  • A color-styled PDF will be generated in the same folder.

📷 Sample Output

Sample Output Preview

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tutorial-text2pdf-style-0.1.2.tar.gz (63.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tutorial_text2pdf_style-0.1.2-py3-none-any.whl (62.0 kB view details)

Uploaded Python 3

File details

Details for the file tutorial-text2pdf-style-0.1.2.tar.gz.

File metadata

  • Download URL: tutorial-text2pdf-style-0.1.2.tar.gz
  • Upload date:
  • Size: 63.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for tutorial-text2pdf-style-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8b19408e4b531f378a7daca8e7c0117ea97109cb4b2a420c840fb96eb134f7b8
MD5 7b6a7673b6d174dd209b32b753c10e42
BLAKE2b-256 0296af8eb283b7aa891a52316c6cd2aa21f0c5b8d70df364cec52b33bf3a8946

See more details on using hashes here.

File details

Details for the file tutorial_text2pdf_style-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for tutorial_text2pdf_style-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2c455ac0442a9e38e77d442d26bec9e7d541b8d72fc447af458c0373c79c6107
MD5 32df21de4acec3e9d391956d1fe15f6c
BLAKE2b-256 27520c55502406a7e175a7a39d66166f2112783d4a614791d9fe60b1c3ac95f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page