
import sys
sys.path.insert(0, '/workspace/.local/lib/python3.11/site-packages')
try:
    from reportlab.pdfgen import canvas
    print("reportlab: OK")
except ImportError as e:
    print("reportlab: MISSING -", e)

import os
font_path = '/workspace/skills/pdf-exporter/fonts/wqy-microhei.ttc'
if os.path.exists(font_path):
    size = os.path.getsize(font_path)
    print(f"font: OK ({size/1024/1024:.1f}MB)")
else:
    print("font: MISSING")

skill_md = '/workspace/skills/pdf-exporter/SKILL.md'
print("SKILL.md:", "OK" if os.path.exists(skill_md) else "MISSING")

script = '/workspace/skills/pdf-exporter/scripts/export_pdf.py'
print("export_pdf.py:", "OK" if os.path.exists(script) else "MISSING")
