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.0.tar.gz (5.3 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.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tutorial-text2pdf-style-0.1.0.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

Hashes for tutorial-text2pdf-style-0.1.0.tar.gz
Algorithm Hash digest
SHA256 245784099774cd612c6d31e4a9e104ba37d8bc49e1850f5039decd0b616d16f2
MD5 424b41ba76b30aae3d5ed3e808bb6c82
BLAKE2b-256 ca2459bfe97a753cae06a9f1f5df37f622b8926e4097203629af55764956d71d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tutorial_text2pdf_style-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e16c6530358237414c9e700bc4c215cfea2e36b557f06a39d800f6420f2ad51
MD5 3b1c97b8afae61da25bd0cd7fc50f780
BLAKE2b-256 432fe2c7e84e137bdb2a959c91618a7cb2db71343a25208df5f26d07cf4dfb45

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