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.1.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.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for tutorial-text2pdf-style-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e9ee97dafb9a28694b34f1e9528419ccebb1757bc86d4a499c959792a8b91fb7
MD5 0f65f19d2dcbb9a2c7ccd553308f95a7
BLAKE2b-256 492f7d973d892d72844e17e08149cf4b5c354f377b1ab42e898baf8cb46d558d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tutorial_text2pdf_style-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e8b20099fb9eb0a3e07679f63d699a6bc8c760f066a9a6562e09f0097b77a2f9
MD5 6aaebc5597ebf3f7ca36eeb3cda4f648
BLAKE2b-256 80f7fe43dd3f52ac05f37b306cb353064e9da2b5a4d1c57c3b36c308c2b6bce7

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