Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (15 loc) · 538 Bytes

README.md

File metadata and controls

28 lines (15 loc) · 538 Bytes

Markdown to PDF

This is a very simple command-line program written in PHP that converts a Markdown to PDF.

Installing

Clone the project and run Composer to install the dependencies:

$ composer install

Running

You can run the program using I/O redirection:

$ ./md2pdf < file.md > file.pdf

Or using command-line options:

$ ./md2pdf -i file.md -o file.pdf

Command-line syntax

md2pdf [-i path] [-o path] [input]

Options

  • i - the input file path (Markdown).
  • o - the output file path (PDF).