內容簡介
存成圖片外掛
這個「存成圖片」外掛很容易使用,只要安裝並啟用即可。外掛會在網頁上放置一個「存成圖片」按鈕,讓使用者可以在點擊按鈕後輕易地存取當前網頁,或只存取部分網頁內容,甚至是指定的頁面內容。
此外掛內部採用了 Pdfcrowd API 網路服務,這是一個專業解決方案,可供將網頁和HTML文件轉換為PDF和各種影像格式使用。
此外掛高度自訂化,您可以:
- 自訂按鈕樣式,文字和圖示
- 選擇「螢幕顯示」或「列印版面配置」(CSS @media)
- 轉換受密碼保護的頁面
- 轉換內含表單資料的頁面
- 創建互動式PDF表單
- 自訂影像格式、影像大小、比例因子、執行自訂JavaScript等等…
使用者可以在設定頁面上進行客製化調整。
短代碼
[save_as_image_pdfcrowd] 短代碼可在網頁上加入一個按鈕。點擊按鈕即可下載該頁面內容作為圖片。
[ block_save_as_image_pdfcrowd ] 短代碼則是只下載該區塊的內容作為圖片。欲自訂區塊樣式,可在方格短代碼內加入CSS樣式。
這些短代碼可以通過覆寫外掛設定頁面上的設定來客製化按鈕樣式和轉換輸出。
例如,若要將頁面設定為Letter頁面大小並建立一個紅色按鈕,請使用以下代碼:
[save_as_image_pdfcrowd page_size='letter' button_background_color='red']
使用PHP創建按鈕
您可以直接在您的PHP代碼中使用 create_save_as_image_pdfcrowd_button($options = array()) 函數來建立轉換按鈕。
例如:
按鈕CSS自訂
也可以透過設置 save-as-image-pdfcrowd-button-wrap 或 save-as-image-pdfcrowd-button 類的CSS屬性來自訂按鈕樣式。
例如:
.save-as-image-pdfcrowd-button {
font-family: Georgia;
}
輸出
輸出的影像可以直接下載或在瀏覽器中開啟。這可以透過「按鈕點擊操作」選項進行設置。
預設情況下,輸出文件名稱是自動生成的,也可以在自訂選項中指定,例如:
[save_as_image_pdfcrowd output_name='my-page.png' button_background_color='red']
支援和許可證
如需任何幫助,請聯繫[email protected]。
我們建議您查看 常見問題。其中包含許多常見問題的答案。
Pdfcrowd API Playground 可以幫助您設定外掛,創建短代碼或函數呼叫。
此外掛預設在Demo模式下運行。雖然功能完善,但會在內容上放上 Pdfcrowd 品牌標誌和水印。如果您需要去除此顯示的話,可購買 Pdfcrowd API許可證。要啟用許可證,請在基本選項卡中輸入您的Pdfcrowd用戶名和API密鑰。
Pdfcrowd API許可證可以在多個WordPress平台下使用。
外掛標籤
開發者團隊
② 後台搜尋「Save as Image Plugin by PDFCrowd」→ 直接安裝(推薦)
原文外掛簡介
The “Save as Image” plugin lets you add a full-featured screenshot button to your WordPress site in minutes, without custom code or server-side screenshot software. Visitors can save a page or post as an image with one click.
You can install and test the plugin right away in fully functional demo mode. No registration is needed. When you are ready, activate a paid PDFCrowd license for production use.
Useful links:
WordPress plugin guide: setup, first test, and common workflows.
WordPress FAQ: common issues, examples, licensing, and troubleshooting.
Option reference: exact plugin settings.
Contact PDFCrowd support: help with setup or output issues.
Features
Easy setup: Install from WordPress admin, activate the plugin, and test the button in demo mode.
One-click screenshot button: Let visitors save pages or posts as images.
Modern page rendering: Supports current HTML, CSS, images, and JavaScript.
Flexible button placement: Show the button automatically or place it manually where needed.
Customizable button appearance: Configure button text, icon, layout, and style.
Flexible output settings: Adjust screenshot width, image format, and other output options from WordPress admin.
Selected-content capture: Capture the full page or a selected part of the page.
No screenshot software to install on your server: Image generation runs through PDFCrowd.
