HTML to PDF Converter

説明

The “HTML to PDF Converter” WordPress plugin created by html2pdf.app, provides an easy way to convert any WordPress page or post to a PDF file. Simply install the plugin, configure your API key and conversion settings, and use the shortcode [html2pdf text="Save as PDF"] to add a PDF conversion link to any page or post on your site.

Plugin Settings

To configure the plugin, go to the “Settings -> HTML to PDF” page and enter your html2pdf.app API key. You can get the API key by registering an account on https://dash.html2pdf.app/registration.

You can also customize the PDF conversion settings, including the format, orientation (portrait or landscape), margins, and custom page size.

Usage

To display the PDF conversion link using the shortcode, simply add the following shortcode to any page or post: [html2pdf text="Save as PDF"]

Examples

Use “media” parameter to activate special styles for printing: [html2pdf text="Save as PDF" media="print"].

CSS example to show only relevant part of the web page:

@media print {
  /* Hide everything */
  * {
      visibility: hidden;
      margin: 0;
      padding: 0;
  }

  /* Make only your desired content visible */
  .your-visible-content * {
      visibility: visible;
  }

  /* Optionally hide the conversion link from the PDF */
  .html2pdf_button {
      visibility: hidden!important;
  }
}

インストール

  1. Upload the plugin files to the /wp-content/plugins/html-to-pdf-converter directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the “Plugins” screen in WordPress.
  3. Configure plugin going to the configuration page: “Settings -> HTML to PDF”.
  4. Use the [html2pdf text="Save as PDF"] shortcode to display the PDF conversion link on your site.

評価

2024年6月12日 2 replies
Good try!But!The website is not taken over directly, but probably rebuilt by html2pdf on their server. This means that only static pages can be transferred. But I have a website where a query runs on the posts. These variables are lost and the PDF page second only scrap. Too bad, two hours invested for nothing. Zero Star!
1件のレビューをすべて表示

貢献者と開発者

HTML to PDF Converter はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“HTML to PDF Converter” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.0.8

  • Use page URL instead of persisted one, add settings link in a plugins page

1.0.7

  • Update icon, increase compatibility with the latest wordpress version

1.0.6

  • Update readme file with examples

1.0.5

  • Add possibility to pass media parameter through the shortcode

1.0.4

  • Improve error reporting

1.0.3

  • Icon, author URI and support email added

1.0.2

  • Initial version

Initial release of the plugin.