mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2024-12-27 05:48:20 +01:00
28 lines
683 B
Markdown
28 lines
683 B
Markdown
---
|
|
title: Markdown to PDF Converter Example
|
|
...
|
|
|
|
Markdown to PDF Converter Example
|
|
=================================
|
|
|
|
The `md2pdf` example program reads a markdown file and formats the content onto
|
|
pages in a PDF file. It demonstrates how to:
|
|
|
|
- Embed base and TrueType fonts,
|
|
- Format text,
|
|
- Embed JPEG and PNG images,
|
|
- Add headers and footers, and
|
|
- (Future) Add hyperlinks.
|
|
|
|
|
|
Source Files
|
|
------------
|
|
|
|
The `md2pdf` program is organized into three source files: `md2pdf.c` which
|
|
contains the code to format the markdown content and `mmd.h` and `mmd.c` (from
|
|
the [Miniature Markdown Library][MMD] project) which load the markdown content.
|
|
|
|
[MMD]: https://www.msweet.org/mmd/
|
|
|
|
|