该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Save Page to PDF

描述

WordPress Plugin Code for Api2Pdf REST API

Api2Pdf.com is a REST API for instantly generating PDF documents from HTML, URLs, Microsoft Office Documents (Word, Excel, PPT), and images. The API also supports merge / concatenation of two or more PDFs. Api2Pdf is a wrapper for popular libraries such as wkhtmltopdf, Headless Chrome, and LibreOffice.

This plugin adds a Save to PDF functionality to WordPress. It will take the HTML contents of your page, convert it to PDF, and request the web browser to download it.

The plugin will add the shortcode savepagetopdf and also the javascript function window.SavePageToPdf()

安装

This section describes how to install the plugin and get it working.

e.g.

  1. Upload the plugin files to the /wp-content/plugins/savePageToPdf directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->PDF Settings to configure the plugin
  4. You will need a valid Api2Pdf.com API Key. You can create a key here: api2pdf.com

常见问题

How do I include a link or button to generate a PDF?

You can use the shortcode [savepagetopdf], this will generate a link that will generate a PDF of the current page. You can style this link by modifying the CSS class *savePageToPdf***

What if I wish to include PDF Generation via my Theme, for example via a header widget?

You can set the onclick event of any HTML elevent, for example Make me a PDF

评价

2019 年 4 月 13 日
I just started using this plugin to generate highly customized PDFs and it worked perfectly. I have some very specific needs and the plugin developers helped me quickly and solved my problems successfully. Very happy and highly recommended for advanced PDF needs. Their API service has a lot of helpful features that I would love to see implemented in this plugin when time permits. 😉
阅读所有2条评价

贡献者及开发者

「Save Page to PDF」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Save Page to PDF」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

1.1

  • Fix naming convention