{"skill":{"slug":"pptx-pdf-font-fix","displayName":"PPTX PDF Font Fix","summary":"Fix PowerPoint font embedding issues in PDF export by patching text transparency in PPTX files. Use when a user has a PPTX file where exported PDFs show wrong/default fonts instead of the intended downloaded/custom fonts, even with font embedding enabled. Works by applying minimal (1%) transparency to fully-opaque text runs, which forces PowerPoint to properly embed fonts during PDF export.","description":"---\nname: pptx-pdf-font-fix\ndescription: Fix PowerPoint font embedding issues in PDF export by patching text transparency in PPTX files. Use when a user has a PPTX file where exported PDFs show wrong/default fonts instead of the intended downloaded/custom fonts, even with font embedding enabled. Works by applying minimal (1%) transparency to fully-opaque text runs, which forces PowerPoint to properly embed fonts during PDF export.\n---\n\n# PPT Font Fix\n\n## Problem\n\nPowerPoint's \"Export to PDF\" can fail to embed downloaded/custom fonts, substituting built-in defaults, even when:\n- Fonts are properly installed and embeddable\n- \"Embed fonts in the file\" is checked in PowerPoint options\n\n## Workaround\n\nApplying a tiny transparency (1%) to text with 0% transparency forces PowerPoint to correctly embed fonts in PDF output. This is visually imperceptible but changes how PowerPoint processes the font during export.\n\n## Usage\n\n```bash\npython3 scripts/fix_font_transparency.py input.pptx [output.pptx] [--transparency 1]\n```\n\n### Options\n\n- `output` -- Output PPTX path (default: `input_fixed.pptx`)\n- `--transparency, -t` -- Transparency % to apply (default: 1)\n\n## Behavior\n\n- Only patches text runs that are fully opaque (0% transparency)\n- Leaves text that already has any transparency untouched\n- Safe to run multiple times\n- Only modifies slide XML (`ppt/slides/slideN.xml`), not layouts/masters\n\n## Workflow\n\n1. Receive PPTX file from user\n2. Run the fix script: `python3 scripts/fix_font_transparency.py input.pptx`\n3. Return the patched PPTX to the user\n4. User opens patched file in PowerPoint and exports to PDF -- fonts now embed correctly\n\n## Note\n\nPDF export must be done from PowerPoint desktop. Server-side converters (LibreOffice, Graph API) do not reproduce the same font embedding behavior.\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":1730,"installsAllTime":7,"installsCurrent":7,"stars":0,"versions":1},"createdAt":1770698291162,"updatedAt":1778486278647},"latestVersion":{"version":"1.0.0","createdAt":1770698291162,"changelog":"Initial release: fixes PowerPoint font embedding in PDF export by patching text transparency","license":null},"metadata":null,"owner":{"handle":"chernojagne","userId":"s17d57qn20rebbhzb832011vvn84sh9d","displayName":"chernojagne","image":"https://avatars.githubusercontent.com/u/48069284?v=4"},"moderation":null}