chernojagne

PPTX PDF Font Fix

办公效率v1.0.0
作者:chernojagne更新于 2026-05-11pptx-pdf-font-fix@clawhub_chernojagne/pptx-pdf-font-fix
文档处理PDF 处理#PDF

据 AlphaMoat 统计,截至 2026-09,PPTX PDF Font Fix 累计下载 4,348 次、获 2 个星标,在全部 5,078 个 AI 技能中排名第 2,260 位,在「办公效率」分类(435 个)中排名第 191 位。

累计安装
861
累计下载
4,348
星标
2
全站排名
#2,260
全站前 45% · 「办公效率」前 44%
平台累计安装累计下载星标评论
ClawHub ↗692,183--
SkillHub ↗8614,3482—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

给完全透明(0%)的文本加上极小的透明度,促使 PowerPoint 在导出 PDF 时正确嵌入字体,解决导出件显示成默认字体的问题。它只改幻灯片 XML 里的文本段,且要求字体本身可嵌入、PowerPoint 选项里已勾选嵌入字体。

资料发布于 2026-10-27

可以用来做什么

  • 修复导出 PDF 后字体被替换的演示文稿
  • 在交付前统一处理整份 PPTX 的字体嵌入

什么时候用

  • 导出的 PDF 字体与源文件不一致时
  • 对方收到的 PDF 显示成默认字体时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

这个 PPTX 导出的 PDF 字体不对,帮我修一下
批量处理这个文件,让导出时能嵌入字体

月度数据趋势

累计下载4,348
1,5633,0594,5542026-03 · 累计下载 2,0902026-05 · 累计下载 2,9132026-06 · 累计下载 1,7692026-07 · 累计下载 3,2362026-08 · 累计下载 3,4922026-09 · 累计下载 4,34826-0326-09
星标2
0122026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。

月份累计下载环比星标
2026-094,348—2
2026-083,492+7.9%2
2026-073,236+82.9%2
2026-061,769-39.3%-
2026-052,913—-
2026-032,090—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

1.8 KB · ClawHub v1.0.0
---
name: pptx-pdf-font-fix
description: 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.
---

# PPT Font Fix

## Problem

PowerPoint's "Export to PDF" can fail to embed downloaded/custom fonts, substituting built-in defaults, even when:
展开全部(共 46 行)
- Fonts are properly installed and embeddable
- "Embed fonts in the file" is checked in PowerPoint options

## Workaround

Applying 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.

## Usage

```bash
python3 scripts/fix_font_transparency.py input.pptx [output.pptx] [--transparency 1]
```

### Options

- `output` -- Output PPTX path (default: `input_fixed.pptx`)
- `--transparency, -t` -- Transparency % to apply (default: 1)

## Behavior

- Only patches text runs that are fully opaque (0% transparency)
- Leaves text that already has any transparency untouched
- Safe to run multiple times
- Only modifies slide XML (`ppt/slides/slideN.xml`), not layouts/masters

## Workflow

1. Receive PPTX file from user
2. Run the fix script: `python3 scripts/fix_font_transparency.py input.pptx`
3. Return the patched PPTX to the user
4. User opens patched file in PowerPoint and exports to PDF -- fonts now embed correctly

## Note

PDF export must be done from PowerPoint desktop. Server-side converters (LibreOffice, Graph API) do not reproduce the same font embedding behavior.

「办公效率」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。