[WordPress] 外掛分享: HTML to PDF Converter

前言介紹

  • 這款 WordPress 外掛「HTML to PDF Converter」是 2023-09-21 上架。
  • 目前有 80 個安裝啟用數。
  • 上一次更新是 2024-12-24,距離現在已有 131 天。
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

html2pdfapp |

外掛標籤

pdf | html2pdf | page to pdf | save to pdf | convert to pdf |

內容簡介

總結:
- "HTML to PDF Converter" WordPress 外掛由 html2pdf.app 開發,提供了一種簡單的方式將任何 WordPress 網頁或文章轉換為 PDF 檔案。
- 只需安裝外掛,設定 API 金鑰和轉換設定,然後使用短代碼 [html2pdf text="儲存為 PDF"] 將 PDF 轉換連結新增至網站上的任何頁面或文章。

問題與答案:
問:如何設定「HTML to PDF Converter」外掛?
答:前往「設定 -> HTML to PDF」頁面,輸入你的 html2pdf.app API 金鑰。你可以在 https://dash.html2pdf.app/registration 註冊帳號以取得 API 金鑰。

問:我可以自訂 PDF 轉換設定嗎?
答:是的,你可以自訂 PDF 轉換設定,包括格式、方向(豎式或橫式)、邊界和自訂頁面大小。

問:如何使用短代碼來顯示 PDF 轉換連結?
答:只需在任何頁面或文章中新增以下短代碼:[html2pdf text="儲存為 PDF"]

原文外掛簡介

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;
}
}

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「HTML to PDF Converter」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.0.8 | trunk |

延伸相關外掛(你可能也想知道)

  • Save as PDF Button 》這個外掛讓您的訪客可以輕鬆地將任何頁面存成PDF。您可以使用短碼以顯示PDF下載按鈕,並從後端選擇不同的圖標和文本作為您的下載按鈕。, = 免費功能, , 基於...。

文章
Filter
Apply Filters
Mastodon