@ai-ecoverse/wasm-poppler

中文文档
26.10.0-9发布于 2026/11/03GPL-2.0-only OR GPL-3.0-only零依赖构建来源已验证近 30 天下载 3165

Poppler's PDF tools: pdftotext, pdftoppm, pdfinfo, pdfimages and more.

原始使用文档

@ai-ecoverse/wasm-poppler

poppler 26.10.0 utilities for slicc's wasm realm, all in one multi-call wasm: pdftotext, pdftoppm, pdfinfo, pdfimages, pdffonts, pdfseparate, pdfunite, pdfdetach, pdfattach, pdftops and pdftohtml.

pnpm add -g @ai-ecoverse/wasm-poppler
pdftotext doc.pdf -               # text to stdout
pdftotext -layout doc.pdf out.txt
pdftoppm -png -r 150 doc.pdf page # page-1.png, page-2.png, …
pdftoppm -png -f 2 -l 3 doc.pdf p
pdfinfo doc.pdf
pdftotext -upw secret locked.pdf -

Rendering uses the Splash backend. Cairo is not built, so pdftocairo is an alias of pdftoppm, as it was in slicc 6: -png/-jpeg work, but -svg, -pdf, -ps and -eps do not; it says so and exits 99 (use pdftops for PostScript).

There is no fontconfig. The 14 standard PDF fonts (Helvetica, Times, Courier, Symbol, ZapfDingbats) are the URW Type1 fonts from gsfonts (GPL with a font exception, see share/fonts/COPYING), found through POPPLER_FONTSDIR. Embedded fonts render as they are, and other non-embedded fonts fall back to the closest standard font. CJK text needs poppler-data, which is not included.

版本与发布记录

@ai-ecoverse/wasm-poppler 共发布 10 个版本,首次发布于 2026/10/10;过去 12 个月发布了 10 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
26.10.0-9latest2026/11/035 天前
26.10.0-82026/11/035 天前
26.10.0-72026/10/2217 天前
26.10.0-62026/10/1919 天前
26.10.0-52026/10/1920 天前
26.10.0-42026/10/1721 天前

关于 @ai-ecoverse/wasm-poppler 的常见问题

@ai-ecoverse/wasm-poppler 是什么?

Poppler's PDF tools: pdftotext, pdftoppm, pdfinfo, pdfimages and more.

如何安装 @ai-ecoverse/wasm-poppler?

在项目目录运行 npm install @ai-ecoverse/wasm-poppler,或使用 pnpm add / yarn add / bun add。

@ai-ecoverse/wasm-poppler 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ai-ecoverse__wasm-poppler 是否存在。

@ai-ecoverse/wasm-poppler 可以商用吗?

@ai-ecoverse/wasm-poppler 使用 GPL-2.0-only OR GPL-3.0-only 许可。可在 GPL-2.0、GPL-3.0 中任选其一遵守。以上为概括,不构成法律意见,请以许可原文为准。

@ai-ecoverse/wasm-poppler 的下载量有多少?

根据 npm 官方下载统计,@ai-ecoverse/wasm-poppler 在 2026/10/05 – 2026/11/03 这 30 天内被下载 3,165 次,日均约 106 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ai-ecoverse/wasm-poppler 还在维护吗?

最新版本 26.10.0-9 发布于 2026/11/03(5 天前);至今共发布 10 个版本,其中过去 12 个月发布了 10 个;首次发布于 2026/10/10。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。