Skip to content
Agentmart
Submit a tool

pdf-builder

Generar PDFs profesionales a partir de Markdown, HTML o plantillas con Pandoc, WeasyPrint o Puppeteer.

Skill by garri333

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/garri333-pdf-builder

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Generar PDFs profesionales a partir de Markdown, HTML o plantillas con Pandoc, WeasyPrint o Puppeteer. Usa cuando necesites crear reportes, facturas, documentación o cualquier documento en PDF.

Use cases: documents, frontend, backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pdf-builder

What's inside

Skill name
pdf-builder
Description
Generar PDFs profesionales a partir de Markdown, HTML o plantillas con Pandoc, WeasyPrint o Puppeteer. Usa cuando necesites crear reportes, facturas, documentación o cualquier documento en PDF.
License
MIT
Instructions
338 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# PDF Builder Skill

## Cuándo usar esta skill
- Generar un reporte, factura, o documento en PDF
- Convertir Markdown a PDF con formato profesional
- Crear PDFs desde plantillas HTML
- Generar PDFs desde páginas web existentes

## Opciones disponibles

| Herramienta | Input | Ideal para | Requiere |
|-------------|-------|-----------|---------|
| Pandoc + LaTeX | Markdown | Documentación técnica, papers | pandoc + LaTeX |
| WeasyPrint | HTML/CSS | Facturas, reportes con CSS | Python |
| Puppeteer/Playwright | HTML/URL | Screenshots, documentos web | Node.js |
| reportlab | Python | PDFs programáticos | Python |
| fpdf2 | Python | PDFs simples | Python |

## Opción 1: Pandoc (Markdown → PDF)

```bash
# Instalar pandoc
# https://pandoc.org/installing.html
# + LaTeX: tlmgr install collection-latex

# Conversión básica
pandoc documento.md -o documento.pdf

# Con tema y opciones
pandoc documento.md \
  --pdf-engine=xelatex \
  -V geometry:margin=2cm \
  -V fontsize=12pt \
  -V lang=es \
  -o documento.pdf

# Con template personalizado
pandoc documento.md \
  --template=mi-template.tex \
  --variables-file=variables.yaml \
  -o documento.pdf

# Con tabla de contenidos
pandoc documento.md --toc --toc-depth=3 -o documento.pdf
```

## Opción 2: WeasyPrint (HTML/CSS → PDF)

```bash
pip install weasyprint
```

```python
from weasyprint import HTML, CSS
from pathlib import Path

def markdown_to_pdf(markdown_text: str, output_path: str, title: str = "Documento"):
    """Convertir Markdown a PDF via HTML con WeasyPrint"""
    import markdown
    
    # Convertir Markdown a HTML
    md = markdown.Markdown(extensions=['tables', 'fenced_code', 'toc'])
    html_body = md.convert(markdown_text)
    
    # Template HTML completo con estilos
    html_content = f"""<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>{title}</title>
<style>
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
  
  @page {{
    margin: 2.5cm;
    @bottom-center {{
      content: counter(page) " / " counter(pages);
      font-size: 10pt;
      color: #666;
    }}
  }}
  
  body {{
    font-family: 'Inter', sans-serif;
    font-size: 11pt;
    line-height: 1.6;
    color: #333;
  }}
  
  h1 {{ font-size: 24pt; color: #1a1a1a; border-bottom: 2px solid #2B5CE6; padding-bottom: 8px; }}
  h2 {{ font-size: 16pt; color: #1a1a1a; margin-top: 24px; }}
  h3 {{ font-size: 13pt; color: #333; margin-top: 16px; }}
  
  code {{
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 10pt;
  }}
  
  pre {{
    background: #f5f5f5;
    padding: 16px;
    border-radius: 8px;
    overflow: hidden;
    border-left: 4px solid #2B5CE6;
  }}
  
  pre code {{
    background: none;
    padding: 0;
  }}
  
  table {{
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
  }}

From garri333/Skills, MIT.

More from garri333/Skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Feb 18, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from garri333

Cite this page

pdf-builder skill. Agent Mart. https://agentmart.dev/skills/garri333-pdf-builder (last updated 2026-10-24)