离线 · 无上传 · 浏览器本地完成Offline · no uploads · runs in the browser
WebP 转 PDF——一页一图,按像素定页面WebP to PDF offline — one page, exact pixel size
把一张 WebP 交成 PDF,通常是为了进打印流程或塞进只收 PDF 的系统。这条路径先解码图片,铺白底(PDF 页面没有透明概念),非 JPEG 源统一编码成 PNG,再由 jsPDF 以图片自身比例建页:宽高按 96 DPI 换算成点(×0.75),横图用横向页面、竖图用纵向页面,图像铺满整页、不留页边距。单张转换时 PDF 里只有这一张图,没有文字层;勾选「合并为一份 PDF」时整批各占一页,顺序与文件列表一致。Handing a WebP over as a PDF usually means a print pipeline or a system that only accepts PDFs. This route decodes the image, fills white (a PDF page has no transparency), encodes non-JPEG sources as PNG, and has jsPDF create a page at the image’s own aspect: width and height are converted from 96 DPI to points (×0.75), landscape for wide images and portrait for tall ones, with the image filling the page and no margins. A single conversion holds that one image and no text layer; tick “Merge into one PDF” and the batch takes one page each, in list order.
这条链路怎么走How the route runs
WebPWebP PDFPDF
共 1 步,由扩展的路径搜索自动选出,中间产物不落盘。1 step, chosen by the extension's own path search; intermediate results never touch the disk.
会保留什么What carries over
- 页面比例与图片一致:宽高由像素按 96 DPI 换算成点,横竖方向自动选择The page matches the image: width and height are converted from pixels at 96 DPI to points, with orientation chosen automatically
- 透明区域以白底落地,不会变成黑色或杂色Transparent areas land on white rather than black or noise
- 大图先按 8192 px 单边上限等比缩小,再写进 PDFOversized images are scaled to the 8192 px per-side ceiling first
- 图像铺满整页、不留页边距;默认每张图产出一份 PDF,勾选「合并为一份 PDF」后整批写成一份(每张一页,最多 200 页)The image fills the page with no margins; each input produces its own PDF by default, or the whole batch becomes one document with “Merge into one PDF” ticked (one page per image, up to 200 pages)
如实说明的限制What it does not do
- 没有文字层:这是图像 PDF,文字不可搜索、不可选中、不可复制No text layer: this is an image PDF, so text cannot be searched, selected or copied
- 默认一个输入对应一份 PDF;勾选「合并为一份 PDF」后才把整批合成一份,任一张失败则整批不产出One input gives one PDF by default; ticking “Merge into one PDF” turns the whole batch into one document, and one bad image fails the entire group
- 动图 WebP 只取第一帧,而且多帧检测只覆盖 GIF,动图 WebP 不会单独提示Animated WebP contributes its first frame only, and multi-frame detection covers GIF alone, so an animated WebP gets no separate notice
- 透明被白底取代;EXIF 与 ICC 等元数据不会写进 PDFTransparency is replaced by white; metadata such as EXIF and ICC does not enter the PDF
- 页面尺寸是像素按 96 DPI 的名义尺寸,打印机可能再按“适合纸张”缩放一次The page is the nominal size of the pixels at 96 DPI, so a printer may scale it again to fit paper
实操提示Working with it
- 要可搜索的文字,请从有文字层的源(HTML / Word / Markdown)转 PDF;图片转 PDF 天生只有像素For searchable text, start from a source that has a text layer (HTML, Word, Markdown); an image-to-PDF route is pixels by nature
- 要把一组 WebP 交成一份文档,勾选「合并为一份 PDF」即可;同一张 WebP 还能转 PNG(保留透明)或 JPEG(白底、有损),输出参数里的质量与体积不作用于 PDFTo hand over a set of WebP files as one document, tick “Merge into one PDF”; the same WebP can also go to PNG (transparency kept) or JPEG (white background, lossy), and the quality and target-size settings do not act on PDF
常见问题Questions people actually ask
PDF 里的文字能搜索吗?Can text in the PDF be searched?
不能。这份 PDF 是一张完整的图片铺在页面上,不包含文字层。需要可搜索的文字,请从 HTML、Word 或 Markdown 出发。No. The PDF is one complete image laid on the page and carries no text layer. For searchable text, start from HTML, Word or Markdown.
页面尺寸是怎么定的?How is the page size determined?
按图片像素以 96 DPI 换算成点:宽高各乘 0.75,横图用横向、竖图用纵向,图像铺满整页。它不是 A4 或 Letter,打印机可能会再缩放一次。From the image’s pixels at 96 DPI: width and height are multiplied by 0.75, wide images get a landscape page and tall ones portrait, and the image fills the page. It is not A4 or Letter, and a printer may scale it again.
透明背景会怎样?What happens to a transparent background?
变成白色。PDF 页面没有透明通道,编码前画布会先铺白底;半透明像素与白色混合。It becomes white. A PDF page has no alpha channel, so the canvas is filled white before encoding and semi-transparent pixels blend with it.
不需要账号,也不需要联网:装好扩展后点图标,在新标签页里打开工作台,文件从磁盘直接选。No account and no network: install the extension, click its icon, and the workbench opens in a new tab reading straight off your disk.
从 Chrome 应用商店安装Install from the Chrome Web Store 安装步骤Install steps GitHub 源码Source on GitHub