前言介紹
- 這款 WordPress 外掛「PDF Generator Crowd API」是 2016-09-11 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2017-04-13,距離現在已有 2941 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.5.1 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
acf | pdf | create | generate | generator |
內容簡介
這個外掛非常容易在網頁上即時建立PDF,只需使用一個短代碼,就可以在用戶訪問某個頁面或文章時依據當前頁面/文章/ACF字段,或是特定的url創建X個PDF。外掛支援瑞典語和英語,但可以輕鬆地翻譯為任何語言。
PDF生成是通過連接到PDF Crowd API進行管理的,因此您需要在那裡創建一個帳戶才能使用此外掛。每次外掛連接到API時,會產生令牌。API有一個免費版本,但令牌數量有限。自從此外掛的1.18版本起,可以在任何頁面或文章中的數據變更時才連接到API,這對於使用的令牌數量有巨大的差異。每次連接獲取的令牌數量取決於所生成的PDF文件的大小以及其他一些參數。此外掛還支援使用頁面/文章模板和ACF(Advanced Custom Fields)中的數據。
PDF Crowd API服務的價格(以及評估該服務的選項)在此頁面中顯示:http://pdfcrowd.com/pricing/(選擇“HTML to PDF API”並進行選擇)。PDF Crowd API服務不是由插件作者創建的,所以如果您有關於PDF的實際生成的問題,請記住這一點。由於它是最好的PDF生成軟件,所以此外掛使用了這個服務。
PDF Crowd聲明:
“每次API調用都會向我們的服務器發送一個POST請求。我們不會披露或保存提交的數據和生成的文件。它們只在必要的時間內保留以有效處理轉換請求,然後永久刪除。”
如果您喜歡這個外掛,請考慮捐贈。
使用示例:
在文章/頁面中的短代碼
[pdfcrowd_generate debug_mode =“no” create_downloadlink =“yes” out_files =“pdfcrowd; wibergsweb” overwrite_pdf =“no” convert_urls =“http://pdfcrowd.com/; http://wibergsweb.se/” link_titles =“PDF Crowd PDF Site; Wibergs Web site” html_class =“pdfdownloadlink”]
在使用ACF(Advanced Custom Fields)的情況下
convert_urls =“{100}”表示從id為100的頁面/文章中抓取url。在下面的情況下,它可以是一個頁面模板(具有id 100)
[pdfcrowd_generate last_shortcode =“no” debug_mode =“no” autosum_fields =“yes” targetblank =“yes” create_downloadlink =“yes” out_files =“in
原文外掛簡介
This plugin makes it very easy to create PDF’s on the fly. With a single shortcode it could create X amount of PDF’s “on the fly” / in realtime when
a user visits a specific page or post. It’s possible to create PDF’s from current page/post/acf-field(s) or from a specific given url. The plugin is available in swedish and english but could easily be translated into whatever language.
The generation itself is managed by connecting to PDF Crowd API so you will need to have an account
there to use this plugin. Every time the plugin is making a connection to the API a token is drawn. There is a free version of the API that has limited number
of tokens. From version 1.18 of this plugin it’s possible to connect to the API only when data changes in any page or post which makes a huge difference in number of tokens that are used.
Number of tokens drawn for each connection depends of the size of generated PDF(s) amongst some other parameters. It’s possible to use a page/post-template and
fetch data from ACF (Advanced Custom Fields) with this plugin.
Pricing for the PDF Crowd API service (and option to evalue the service) is shown here: http://pdfcrowd.com/pricing/ (Select option “HTML to PDF API” and make your choice). The PDF Crowd API service
is not created by the author so please have that in mind if you ask questions regarding the actual generation(s) of the PDF(s). The service is used by the
plugin because it was simply the best PDF generation software that was found (by the plugin author).
PDF Crowd states:
“Each API call makes a POST request to our servers. We do not disclose or keep copies of submitted data and generated files. They are kept only for the time necessary to efficiently process conversion requests and then permanently deleted.”
If you like the plugin, please consider donating.
Example of usage
shortcodes in post(s)/page(s)
[pdfcrowd_generate debug_mode=”no” create_downloadlink=”yes” out_files=”pdfcrowd;wibergsweb” overwrite_pdf=”no” convert_urls=”http://pdfcrowd.com/;http://wibergsweb.se/” link_titles=”PDF Crowd PDF Site;Wibergs Web site” html_class=”pdfdownloadlink”]
[pdfcrowd_generate debug_mode=”no” out_files=”pdfcrowd;wibergsweb” overwrite_pdf=”yes” convert_urls=”http://pdfcrowd.com/;http://wibergsweb.se/” link_titles=”PDF Crowd PDF Site;Wibergs Web site” html_class=”pdfdownloadlink”]
[pdfcrowd_generate debug_mode=”yes” use_ssl=”yes” out_files=”pdfcrowd;wibergsweb” convert_urls=”http://pdfcrowd.com/;http://wibergsweb.se/” link_titles=”PDF Crowd PDF Site;Wibergs Web site” html_class=”pdfdownloadlink”]
[pdfcrowd_generate debug_mode=”yes” create_downloadlink=”yes” out_files=”invoice” overwrite_pdf=”datachange” data_fields=”acf_surname;acf_lastname” data_acfkeys=”field_5859b22623ca5;field_5859b260bb104″ link_titles=”PDFmaster” convert_urls=”{681}” data_postid=”all” pagebreak_afterpost=”yes” last_shortcode=”no”]
If using ACF (Advanced Custom Fields)
convert_urls=”{100}” means grab url from page/post with id 100. In cases below it could be a page template (with id 100):
[pdfcrowd_generate last_shortcode=”no” debug_mode=”no” autosum_fields=”yes” targetblank=”yes” create_downloadlink=”yes” out_files=”invoice” overwrite_pdf=”datachange” convert_urls=”{100}” data_postid=”all” data_cpt=”customer” data_fields=”acf_customer_phone;acf_customer_name;acf_customer_trailers” data_acfkeys=”field_285b0870afcf6;field_285b064d43bec;field_585b0b3288d6e” link_titles=”Invoices”]
[pdfcrowd_generate last_shortcode=”no” debug_mode=”no” autosum_fields=”yes” targetblank=”yes” create_downloadlink=”yes” out_files=”invoice” overwrite_pdf=”datachange” convert_urls=”{100}” data_postid=”all” data_cpt=”customer” data_fields=”acf_customer_phone;acf_customer_name;acf_customer_trailers” data_acfkeys=”field_285b0870afcf6;field_285b064d43bec;field_585b0b3288d6e” link_titles=”Invoices” add_related_fields=”1;Model of car;acf_customer_cars_reg;acf_cars_model”]
[pdfcrowd_generate last_shortcode=”no” debug_mode=”no” autosum_fields=”yes” targetblank=”yes” create_downloadlink=”yes” out_files=”invoice” overwrite_pdf=”datachange” convert_urls=”{100}” data_postid=”55″ data_cpt=”customer” data_fields=”acf_customer_phone;acf_customer_name;acf_customer_trailers” data_acfkeys=”field_285b0870afcf6;field_285b064d43bec;field_585b0b3288d6e” link_titles=”Invoices” add_related_fields=”1;Model of car;acf_customer_cars_reg;acf_cars_model”]
Page template could look something like this
Invoice
[title]
Phonenumber:: [acf_customer_phone]
Cars
[acf_customer_cars]
Net:
[crowdpdf-total=field_585b0b3288d2e]
Vat:
[crowdpdf-totalvat=field_585b0b3288d2e]
Gross:
[crowdpdf-totalaftervat=field_585b0b3288d2e]
Explanation of the shortcode
[pdfcrowd_generate last_shortcode=”yes” debug_mode=”no” autosum_fields=”yes” targetblank=”yes” create_downloadlink=”yes” out_files=”invoice” overwrite_pdf=”datachange” convert_urls=”{100}” data_postid=”55″ data_cpt=”customer” data_fields=”acf_customer_phone;acf_customer_name;acf_customer_trailers” data_acfkeys=”field_285b0870afcf6;field_285b064d43bec;field_585b0b3288d6e” link_titles=”Invoice” add_related_fields=”1;Model of car;acf_customer_cars_reg;acf_cars_model”]
It’s only one shortcode on the page, so it’s the last
No debugmode
Tell plugin to autosum specific fields
Create downloadable link
Open newly created download pdf in new tab/window
Create a file called invoice
Only generate new pdf/connect to PDF Crowd server when data has been changed
Use page with id 100 as a template page
Grab data from post type customer
Grab data from customer with id 55
Use datafields called acf_customer_phone (with key field_285b0870afcf6), acf_customer_name (with keyfield_285b064d43bec) and acf_customer_cars (acf_customer_cars is a repeater-field with keyfield field_585b0b3288d6e)
Use Invoice as title on the download link
acf_customer_cars is a repeater field with these subfields (Name, color)
A new column is added in the repeater field in the PDF (but not in the admin) with the titlte “Model of car” at the second position in the index (1) and fetches the actual carmodel from related model of the car
[title] – shows the actual
field_585b0b3288d2e is the keyfield of the ACF that is being autosummarized (in the repeater field)
Start with setting debug_mode to yes when creating your attributes. It might be more helpful than you think! Happy generating! 🙂
Example css
.pdfdownloadlink {display:block;background:#0000FF;}
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「PDF Generator Crowd API」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 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...。