Generate PDF

Convert Markdown files to PDF format with professional formatting

luokai0 Updated 10 repo stars

File contents

Generate PDF from Markdown

Purpose

Convert Markdown files to professionally formatted PDF documents using pandoc.

Input

  • Path to the Markdown file you want to convert

Steps

  1. Install pandoc and LaTeX:
apt-get update && apt-get install -y pandoc texlive-latex-base texlive-fonts-recommended texlive-xetex
  1. Convert the Markdown file to PDF with professional formatting:
pandoc "<user's_markdown_path>" \
  --pdf-engine=xelatex \
  --variable geometry:margin=1in \
  --variable fontsize=11pt \
  --variable linkcolor=blue \
  --highlight-style=tango \
  -o "<output_pdf_path>"
  1. Tell the user where the PDF file was saved.

luokai0/ai-agent-skills-by-luo-kai/tree/main/ai-agent-skills/21-external-registries/01-zo-computer-official/zo-generate-pdf commit 88f0c57e8b

Frequently asked questions

npx skillmds@latest add luokai0/generate-pdf