[WordPress] 外掛分享: Embedwell PDF Embed Viewer

首頁 › 外掛目錄 › Embedwell PDF Embed Viewer
WordPress 外掛 Embedwell PDF Embed Viewer 的封面圖片
全新外掛
安裝啟用
—
尚無評分
12 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.3.0 上架:2026-11-07

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Embedwell PDF Embed Viewer」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Embedwell drops a PDF straight into your content so readers can scroll through it without leaving the page. Pick a file from your Media Library (or paste a URL), choose a height, and you are done.
It uses the browser’s own PDF viewer, so there is no heavy library to load and nothing is sent to an outside service. Your files stay on your own site.
What you get

An “Embedwell” block for the editor, with a live preview while you set it up.
An [ew-pdf-embed] shortcode for the classic editor, widgets, or anywhere shortcodes run.
Control over the viewer height and the built-in toolbar.
Fits the page to the viewer width and hides the thumbnail sidebar for a clean, full-width read.
Responsive by default, so it fits phones as well as wide desktop layouts.
Translation ready, properly escaped output, and no settings page to wade through.

How to use
Embed a PDF with the block

Edit a post or page.
Click the + (block inserter) and search for Embedwell.
Add the block, then click Upload or Media Library and pick your PDF.
In the block sidebar, set the viewer height, show or hide the toolbar, and type an accessible title if you like.
Use the toolbar’s Replace PDF button any time you want to swap the file.
Publish. The PDF shows up inline, fitted to the width of your content.

Tip: to run the viewer edge to edge, select the block and choose Wide width or Full width from the block toolbar.
Embed a PDF with the shortcode
Use the shortcode when you are in the classic editor, a widget, or a template file.
Embed a file from your Media Library by its attachment ID:
[ew-pdf-embed id="123"]

Embed any PDF by its URL, taller and with the toolbar hidden:
[ew-pdf-embed url="https://example.com/files/report.pdf" height="800" toolbar="0"]

Call it from a template with do_shortcode():

Finding a PDF’s attachment ID
Open Media → Library, click the PDF, and read the item= number in the URL, or copy the file URL and use it with the url attribute instead.
Shortcode attributes

id — Media Library attachment ID of the PDF.
url — Direct URL to a PDF (used if no id is given).
height — Viewer height in pixels. Default 600.
toolbar — 1 to show the viewer toolbar, 0 to hide it. Default 1.
title — Accessible title for the viewer (read by screen readers).

The [embedwell], [pp-pdf-embed], [paperpane], [docuforge], [pdf-embed-forge] and [pdf-forge] shortcodes also work as aliases, so anything you built before keeps running.

延伸相關外掛

文章
Filter
Mastodon