Embed PDF Viewer

描述

通过 oEmbed 将来自媒体库或其他地方的 PDF 嵌入或作为块嵌入 object 标签或 Google Doc Viewer 作为后备。 URL 只需是世界可达的链接。

灵感来自 Embed PDFRV Embed PDF

非常感谢 Alex Kirk 使嵌入 PDF 查看器与新的块编辑器兼容。

GitHub 上开发。欢迎针对 develop 分支提出请求。

屏幕截图

  • 嵌入PDF Viewer 区块
  • 选择PDF
  • PDF 区块以及属性

区块

该插件提供了1个区块.

  • PDF

评价

2024年3月12日 1 回复
Works great on web but when I try to access the website via mobile browser, the pdf has no preview available. BTW, I'm using Wordpress 6.4.3. Thank you for your effort with this PDF plugin it is a big help and easy to use.
2023年11月20日
Love how easy it is to embed a PDF using the Block Editor and this plugin. It's perfect.
2023年5月6日
Having tried with a few other PDF embed viewers, this was the one that didn't add a watermark (EmbedPress), require some sort of paid upgrade (3d flipbook), add an unnecessary 'Download'' button (wordpress inbuilt viewer), or involve technical skills using the shortcode feature (PDF Viewer and PDF.js Viewer). Really glad to have found it, and thanks to those who developed it!
2023年1月14日
Simple is what we were looking for. Simple is what we got. Works great. Tku
阅读所有17条评价

贡献者及开发者

“Embed PDF Viewer” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Embed PDF Viewer”插件已被翻译至9种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Embed PDF Viewer”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.3.1 / 2023-09-10

  • update GA
  • 更新测试到

2.3.0 / 2021-07-07

  • 为 WordPress SVN 添加 @10up GitHub Actions 集成

2.2.0 / 2021-03-05

  • 更新Toolbar到 ToolbarGroup 以及 ToolbarButton
  • 添加对块对齐工具栏的有限支持
  • 修复i18n在区块中
  • composer.json 中的 make-pot 中排除 /build,不适用于最小化的 JS

2.1.2 / 2020-09-15

  • 对 oembed 使用相同的块名称
  • 添加额外的依赖到序列

2.1.1 / 2020-07-20

  • 更新区块用于不推荐使用的项目和小错误
  • 仅更新 PDF 的媒体选择器

2.1.0 / 2020-07-20

  • 更新区块构建过程
  • 添加标题和描述属性用于a11y
  • 添加PDF svg 用于区块

2.0.5 / 2020-03-09

  • GitHub 上插件结构的小更新
  • 更新测试到

2.0.4 / 2019-10-05

2.0.3 / 2019-04-25

  • 移动区块注册到它自身的函数和hook
  • WPCS updates

2.0.2 / 2019-02-03

  • 更新WordPress需求

2.0.1 / 2019-01-11

  • 添加 composer.json 以及自动的创建带有composer 更新的POT
  • 添加了对 WP 4.9.x 及以下版本的 register_block_type() 的检查

2.0.0 / 2018-12-20 🎂

  • Alex Kirk 的大力帮助下添加了适当的 PDF 块,非常感谢

1.6.1 / 2018-11-25

  • 正确的初始化load_plugin_textdomain()

1.6.0 / 2018-07-22

  • 添加filter embed_pdf_viewer_pdf_attributes
  • 升级 readme.txt 到包括 Requires PHP 头部
  • 在PDF周围的链接中添加段落标签

1.5.0 / 2016-12-17

  • 添加 CSS 以回退到 iOS 上的 iframe,因为 object 不可滚动:P

1.4.0

  • 切换到使用 object 标签,使用 iframe 作为后备显示方法

1.3.0

  • 插入除了PDF以外的任何Media Library 现在都可以按照预期完成.

1.2.1

  • 修复一些PHP警告

1.2.0

  • 从媒体库插入 PDF 现在只需插入 oEmbed 的 URL
  • 从任何源嵌入一个PDF

1.1.2

  • 简化 instance()只需要多一点点

1.1.1

  • 重新命名实例变量到$instance 并且让其隐私
  • 更新DocBlocks
  • 确保 $atts 是一个数组

1.1

  • 当不是 PDF 时不返回媒体项目的错误修正,坏安迪 🙁

1.0.1

  • 添加到DocBlocks

1.0

  • 重构以将嵌入的代码放入到一个函数中
  • 添加资产

0.1

  • 初始化提交