Creates professional Microsoft-branded PDF documents with cover pages, 4-color palette, tables, charts, headers/footers, and executive formatting using Python and reportlab. USE FOR: create PDF, generate pdf, build PDF report, Microsoft branded PDF, PDF proposal, PDF whitepaper, executive PDF, PDF with charts, PDF with tables. DO NOT USE FOR: Word documents (use docx-creator), presentations (use pptx-creator), Excel (use xlsx-creator), diagrams (use figjam-diagrams).
Instalación
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Creates professional Microsoft-branded PDF documents with cover pages, 4-color palette, tables, charts, headers/footers, and executive formatting using Python and reportlab. USE FOR: create PDF, generate pdf, build PDF report, Microsoft branded PDF, PDF proposal, PDF whitepaper, executive PDF, PDF with charts, PDF with tables. DO NOT USE FOR: Word documents (use docx-creator), presentations (use pptx-creator), Excel (use xlsx-creator), diagrams (use figjam-diagrams).
PDF Creator
Create professional Microsoft-branded PDF documents (.pdf) using Python and reportlab with enterprise-grade formatting, cover pages, tables, charts, headers/footers, and the Microsoft 4-color palette.
Technology
All PDF files are generated using Python 3 + reportlab. The agent writes a Python script, executes it, and delivers the .pdf file.
Required Package
pip install reportlab
If not installed, the agent installs it automatically before generating.
Branding Defaults
Color Palette (Microsoft Brand)
Element
Hex
reportlab Color
Use For
Primary Blue
#0078D4
HexColor('#0078D4')
Headers, title bars, section dividers
Red
#F25022
HexColor('#F25022')
Alerts, risks, critical items
Green
#7FBA00
HexColor('#7FBA00')
Success, positive metrics, completed
Blue
#00A4EF
HexColor('#00A4EF')
Info, links, secondary elements
Yellow
#FFB900
HexColor('#FFB900')
Warnings, in-progress, highlights
Dark Green
#107C10
HexColor('#107C10')
Confirmed, healthy status
Red Alert
#E81123
HexColor('#E81123')
Security, blocked, critical
Teal
#008272
HexColor('#008272')
Infrastructure, monitoring
Purple
#5C2D91
HexColor('#5C2D91')
AI, modernization
Orange
#D83B01
HexColor('#D83B01')
Manual actions, human steps
Text Primary
#323130
HexColor('#323130')
Body text
Text Secondary
#605E5C
HexColor('#605E5C')
Captions, metadata, footers
Background Light
#F3F2F1
HexColor('#F3F2F1')
Alternating table rows
Background White
#FFFFFF
colors.white
Page background
Border Gray
#D2D0CE
HexColor('#D2D0CE')
Table borders
4-Color Bar
Every PDF includes the Microsoft 4-color gradient bar on the cover page and as a thin line in the header:
from reportlab.lib.colors import HexColor
defdraw_4color_bar(canvas, x, y, width, height=4):
"""Draw the Microsoft 4-color bar."""
segment = width / 4
bar_colors = [
HexColor('#F25022'), # Red
HexColor('#7FBA00'), # Green
HexColor('#00A4EF'), # Blue
HexColor('#FFB900'), # Yellow
]
for i, color inenumerate(bar_colors):
canvas.setFillColor(color)
canvas.rect(x + i * segment, y, segment, height, fill=1, stroke=0)
Fonts
reportlab includes Helvetica by default. For Microsoft branding, register Segoe UI if available:
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
import os
# Try to register Segoe UI (available on Windows/macOS with Office installed)
segoe_paths = [
'/Library/Fonts/Segoe UI.ttf',
'/System/Library/Fonts/SegoeUI.ttf',
'C:/Windows/Fonts/segoeui.ttf',
]
FONT_NAME = 'Helvetica'# Fallbackfor path in segoe_paths:
if os.path.exists(path):
pdfmetrics.registerFont(TTFont('SegoeUI', path))
FONT_NAME = 'SegoeUI'break