前言介紹
- 這款 WordPress 外掛「Simple PDF Exporter」是 2016-03-05 上架。
- 目前有 400 個安裝啟用數。
- 上一次更新是 2023-01-13,距離現在已有 841 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 有 4 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
pdf | DOMPDF | export | exporter | custom post types |
內容簡介
將所有貼文或自訂文章型別匯出到單一 PDF。
您還可以將單獨貼文或所需的正確數量匯出。
重要提示:此外掛需要至少 512MB 可用的空閒 RAM,否則會超時 / 返回錯誤。
此外掛不建議給無技術知識的人使用。
PDF 的版面設計非常基礎,需要懂 HTML、CSS 與 PHP 方面的技術知識以自訂版面:
更多資訊請參閱下方內容。
基本資訊
此外掛會檢查是否已有日期 (ddMonyear) 相同的 PDF,如果有,會傳回現有的 PDF,否則會建立一個新的 PDF。由於 PDF 生成會吃掉許多資源,此功能會避免此外掛運行過多次數而導致伺服器崩潰:
請參考下方範例或 FAQ 來強制生成 PDF。
若貼文數量過多,可能需要幾秒至數分鐘來生成新的 PDF。
若 PDF 未生成,可能是您的伺服器資源不足。這是無法修正的,因為 PDF 函式庫很費資源:
請向您的主機提供商詢問您運行此外掛所需的資源數量,以及您是否能夠在主機限制範圍內採取任何措施,確保此外掛有足夠的 RAM/PHP 設定。
若您不使用自訂網址,因此未向網址添加 post_type 參數,預設匯出的貼文類型將始終為 WP 預設的 post。
PDF 範本
目前,匯出的 PDF 範本和設計非常基礎 (且貼文以表格渲染,因為浮動會與 DOMPDF 函式庫不相容)。
您可以從當前主題中復制外掛的基本結構:wp-content/plugins/simple-pdf-exporter/assets/pdf_layout.php 並進行編輯。
您的版面必須以 PHP 回傳,例如: echo '
您可以從當前主題中復制外掛的基本樣式表:wp-content/plugins/simple-pdf-exporter/assets/pdf_export.css 並進行編輯。
請勿直接編輯外掛的文件 pdf_layout.php 和 pdf_export.css 避免下次更新時被覆寫。
問題?
在論壇發問新主題之前,請參閱 FAQ!
如需定制外掛版本,需支付費用,請聯繫我 (電子郵件位址在shambix.com 上)。
函式庫和授權
DOMPDF
FPDF
FPDI
FPDI ADDON
原文外掛簡介
Export a single PDF with all posts, or custom post types.
You can also export a single post, or the exact number you need.
IMPORTANT This plugin requires at least 512MB of free RAM available, or it will timeout / return an error.
This plugin is NOT recommended for people with no tech knowledge.
The PDF layout/design is VERY basic and will require html/css/php technical knowledge to customize.
Read more about this below.
The Basics
The plugin checks if a pdf already exists with the same date (ddMonyear), if yes, the existing pdf will be served, otherwise a new will be generated. Since the PDF generation uses up a lot of resources, this will prevent too many runs of the plugin and the crashing of your server.
Check the example below or the FAQ for ways to force the PDF generation anyway.
Depending on how many posts you have, it might take from a few seconds to several minutes for a new PDF to be generated.
If no PDF is generated you probably don’t have enough server resources. This can’t be fixed, as PDF libraries are very resource-hungry.
Ask your hosting to check how many resources you would need to run the plugin and if there is anything you can do, within your hosting limits, to make sure the plugin has enough or appropriate RAM/PHP settings.
If you don’t use a custom url, hence you don’t add the post_type parameter to the url, the default post type exported will always be WP default post.
The PDF Template
Currently, the template and design for the exported pdf, is very basic (and posts are rendered as a table, since floating doesn’t play nicely with the DOMPDF library).
You can copy the plugin’s basic structure from wp-content/plugins/simple-pdf-exporter/assets/pdf_layout.php inside your current theme and edit it.
Your layout must be echoed in php, eg. echo '
'; or it won’t show up in the PDF.
You can copy the plugin’s basic CSS from wp-content/plugins/simple-pdf-exporter/assets/pdf_export.css inside your current theme and edit it.
Do not edit directly the plugin’s files pdf_layout.php and pdf_export.css, they will be overwritten with the next update.
Questions?
Check the FAQ before opening new threads in the forum!
Contact me if you want a custom version of the plugin, for a fee (email on shambix.com).
Libraries & Credits
DOMPDF
FPDF
FPDI
FPDI ADDON
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Simple PDF Exporter」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
PDF Invoices & Packing Slips for WooCommerce 》這個 WooCommerce 外掛可以自動為您的客戶在訂單確認電子郵件中添加 PDF 發票。包括一個基本模板(額外的模板可從 WP Overnight 購買),以及修改/建立自己的...。
PDF Embedder 》這款外掛程式可以上傳 PDF 檔案,並將它們直接嵌入到您網站的文章和頁面中。添加圖像一樣簡單!您的 PDF 檔案會自動調整到其自然大小和形狀。您還可以指定寬...。
PDF Viewer for Elementor 》此外掛可協助您快速且簡易地在 Elementor 中嵌入 PDF 文件。, 我們支援的 Elementor 版本為 v3+ 🙂。
Gravity PDF 》Gravity PDF 是使用 Gravity Forms 和 WordPress 創建動態數字 PDF 文件的最佳自助式解決方案。, 高度自定義的 PDF, 開箱即用的版本提供了四種高度自定義的 P...。
Google Doc Embedder 》Google Doc Embedder 允許您使用免費的 Google Docs Viewer 在您的 WordPress 頁面中嵌入多種文件類型,並允許行內檢視(並可選擇下載)各種流行的文件類型,...。
Print, PDF, Email by PrintFriendly 》GDPR(一般性資料保護條例), PrintFriendly Pro符合GDPR。 隱私政策。我們正在努力使免費版本符合GDPR,但目前因為嚴格的Cookie同意要求而不能符合。如果您...。
PDF.js Viewer 》透過 Gutenberg 區塊或簡單的縮略語,將 Mozilla 的 PDF.js Viewer 整合到您的網頁或文章中。PDF.js 是一個用於在瀏覽器中顯示 PDF 頁面的 JavaScript 函式庫...。
PDF Poster – PDF Embedder Plugin 》這個外掛可在文章、頁面、小工具區、頁面塊和主題模板中嵌入 PDF 檔案。非常易於使用、使用者友好且非常輕量的外掛。Gutenberg PDF Viewer 塊可用, 查看實況...。
Embed PDF Viewer 》透過oEmbed或以區塊的方式,將來自媒體庫或其他地方的PDF嵌入至object標籤或Google Doc Viewer當作備用選項。URL只需要是可以讓全球使用的連結即可。, 靈感來...。
WP Photo Album Plus 》此外掛不僅僅是一個相簿外掛,更是一個完整且高度自訂的多媒體內容管理和展示系統。, 特色包括:, , 任意數量的相簿,包含任意類型的多媒體檔案,以及子相簿,...。
Send PDF for Contact Form 7 》此外掛可在[Contact Form 7]中添加條件邏輯。, 使用此「透過聯絡表單發送 PDF 擴充套件」,您可以透過表單恢復資料,並將其插入您自行建立和準備的 PDF 中。,...。
PDF viewer for Elementor & Gutenberg 》「PDFjs Viewer for Elementor」外掛是一個強大的工具,可輕鬆將 PDF 檔案嵌入到您的 Elementor 頁面建構器頁面中。它專為 Elementor 設計,因此您可以輕鬆在...。
PDF Viewer Block for Gutenberg 》一個簡單、具有響應式設計且完全免費使用的古騰堡區塊,可以在您的網站上顯示 PDF 閱讀器。, 您可以輕鬆地即時配置該閱讀器的寬度、高度和對齊方式。, 相容性...。
PDF Viewer 》PDF Viewer 是一個 WordPress 外掛,允許您在網站上嵌入 PDF 文件,無需使用 Flash 外掛程式,僅依賴 JavaScript 來運作。這將使您的網站符合 HTML5 標準。此...。
PDF Image Generator 》這個外掛可以透過上傳 PDF 附件,將封面轉換為 JPEG,並作為文章縮略圖檔案附加。它還允許顯示縮略圖標誌和插入 PDF 鏈接與封面圖像到編輯器。, , 僅支援 Wor...。