pandic-officeConverts Markdown files to PDF files using the pandoc command-line utility. Use when a user asks to convert a .md or markdown file to a .pdf file.
Install via ClawdBot CLI:
clawdbot install PiyushDuggal-source/pandic-officeThis skill uses the pandoc command-line utility to convert documents between numerous markup formats.
The fundamental structure of a pandoc command is:
pandoc [options] [input-file]…
To convert a Markdown file to HTML:
pandoc -o output.html input.md
While pandoc can infer formats from file extensions, you can be explicit with the -f (from) and -t (to) flags.
# Convert HTML to Markdown
pandoc -f html -t markdown input.html
To create a complete document with a proper header and footer (e.g., a full HTML file), use the -s or --standalone flag.
pandoc -s -o output.html input.md
The following examples are extracted from the official Pandoc User's Guide.
To create a PDF, pandoc typically uses a LaTeX engine. Ensure one is installed.
# Basic PDF creation
pandoc input.md -o output.pdf
# Control PDF engine and style via variables
pandoc input.md -o output.pdf --pdf-engine=xelatex -V geometry:margin=1in -V fontsize=12pt
Pandoc can automatically generate a table of contents and use document metadata.
# Create a document with a Table of Contents (up to level 3 headings)
pandoc --toc --toc-depth=3 -o output.docx input.md
# Set metadata fields from the command line
pandoc -M title:"My Report" -M author:"Galactus" -o output.pdf input.md
You can control the final output's structure and style with templates and other options.
# Use a custom template for HTML output
pandoc -s --template=my-template.html -o output.html input.md
# For HTML output, link to a custom CSS file
pandoc -s --css=styles.css -o output.html input.md
# For DOCX output, use a reference document for styling
pandoc --reference-doc=reference.docx -o output.docx input.md
Pandoc can directly fetch and convert content from a URL.
pandoc -f html -t markdown https://www.fsf.org
# Preserve tabs instead of converting them to spaces
pandoc --preserve-tabs ...
# Control line wrapping in the output source code
pandoc --wrap=none ...
# Shift heading levels (e.g., make all H1s into H2s, H2s into H3s)
pandoc --shift-heading-level-by=1 ...
This enhanced documentation provides a more robust foundation for using pandoc.
Generated Mar 1, 2026
Researchers and students can convert Markdown drafts into PDFs for journal submissions or theses, using LaTeX engines for professional formatting. This skill automates document preparation, ensuring consistency with academic standards and metadata like titles and authors.
Software development teams use this skill to transform Markdown files from repositories into PDFs or DOCX for user manuals and reports. It supports templates and styling for brand consistency, streamlining documentation workflows in agile environments.
Marketing professionals convert web content fetched from URLs into Markdown for editing, then to PDF for distribution. This enables quick repurposing of online articles into printable materials, enhancing content strategy and outreach efforts.
Law firms utilize this skill to convert Markdown notes into PDFs with precise formatting, such as margins and fonts, for contracts and briefs. It ensures document integrity and compliance with legal formatting requirements through customizable templates.
Offer basic Markdown-to-PDF conversion for free, with premium features like advanced templates, batch processing, and API access for a subscription fee. This attracts individual users and small businesses, generating recurring revenue from upgrades.
Sell this skill as part of a larger document management suite for corporations, integrating with existing systems like CMS or version control. Revenue comes from licensing fees and custom development services for tailored workflows.
Provide discounted or bundled access to universities and schools for academic use, including training and support. This model builds long-term relationships and generates revenue through institutional contracts and volume sales.
💬 Integration Tip
Ensure pandoc and LaTeX engines are installed on the system; use environment variables for path configurations to avoid command-line errors.
Edit PDFs with natural-language instructions using the nano-pdf CLI.
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.
用 MinerU API 解析 PDF/Word/PPT/图片为 Markdown,支持公式、表格、OCR。适用于论文解析、文档提取。
Generate hand-drawn style diagrams, flowcharts, and architecture diagrams as PNG images from Excalidraw JSON
The awesome PPT format generation tool provided by baidu.