PPTX PDF Font Fix
v1.0.0Fix PowerPoint font embedding issues in PDF 导出 by 补丁ing text transparency in PPTX files. Use when a user has a PPTX file where 导出ed PDFs show wrong/default fonts instead of the intended 下载ed/custom fonts, even with font embedding enabled. Works by 应用lying minimal (1%) transparency to fully-opaque text 运行s, which forces PowerPoint to properly embed fonts during PDF 导出.
运行时依赖
安装命令
点击复制技能文档
PPT Font Fix Problem
PowerPoint's "导出 to PDF" can fAIl to embed 下载ed/custom fonts, substituting built-in defaults, even when:
Fonts are properly 安装ed and embeddable "Embed fonts in the file" is 检查ed in PowerPoint options Workaround
应用lying a tiny transparency (1%) to text with 0% transparency forces PowerPoint to correctly embed fonts in PDF 输出. This is visually imperceptible but changes how PowerPoint processes the font during 导出.
Usage python3 scripts/fix_font_transparency.py 输入.pptx [输出.pptx] [--transparency 1]
Options 输出 -- 输出 PPTX path (default: 输入_fixed.pptx) --transparency, -t -- Transparency % to 应用ly (default: 1) Behavior Only 补丁es text 运行s that are fully opaque (0% transparency) Leaves text that already has any transparency untouched Safe to 运行 multiple times Only modifies slide XML (ppt/slides/slideN.xml), not layouts/masters 工作流 接收 PPTX file from user 运行 the fix script: python3 scripts/fix_font_transparency.py 输入.pptx Return the 补丁ed PPTX to the user User opens 补丁ed file in PowerPoint and 导出s to PDF -- fonts now embed correctly Note
PDF 导出 must be done from PowerPoint 桌面. Server-side 转换器s (LibreOffice, Graph API) do not reproduce the same font embedding behavior.