GitPedia

Ptxt

Fast Text-to-PDF Converter

From dongyx·Updated September 27, 2025·View on GitHub·

- fast - low memory consumption - stream converting, line by line - light weight The project is written primarily in C, distributed under the BSD 3-Clause "New" or "Revised" License license, first published in 2023. Key topics include: pdf, pdf-converter, pdf-generation, plain-text, plaintext.

Latest release: v0.1.0
January 2, 2023View Changelog →

PTXT

PTXT is a text-to-PDF converter aiming to:

  • fast
  • low memory consumption
  • stream converting, line by line
  • light weight

To reach these goals, PTXT uses an ad-hoc solution instead of depending on a full-feature PDF library or rendering engine.

Installation

$ make
$ sudo make install

Usage

  • ptxt file

    Convert file to PDF.
    The result is printed to the standard output.
    If file is omitted, the standard input is used.

  • ptxt --help

    Print the usage.

  • ptxt --version

    Print version information.

Output Style

Outputs are in the style of line printers:

  • 66 lines per page
  • 80 columns
  • Courier font
  • A4 page size
  • proper margins

Credits

PTXT was created by DONG Yuxuan in 2023.

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from dongyx/ptxt via the GitHub API.Last fetched: 6/28/2026