EnConvert DOCX to PDF

外掛說明

Let visitors upload a Word document (.doc or .docx) and download a PDF. The plugin renders a native form on your site and sends the file directly to the EnConvert API for conversion. No iframe, no extra tracking — just a clean form on your page.

How it works:

  1. Create a free EnConvert account.
  2. Generate a public API key (pk_*) on your EnConvert API keys page.
  3. Add your WordPress site’s domain to the key’s allowed-domains list.
  4. Paste the key into the plugin settings.
  5. Drop [enconvert_docx_to_pdf] into any page, post, or shortcode block.

New to EnConvert? Visit the EnConvert homepage, or try this conversion online at enconvert.com/convert/doc-to-pdf.

Free tier available — 100 monthly conversions, no credit card. Paid tiers raise the limit and increase the max file size.

Third-Party Service

This plugin sends visitor-uploaded files directly from the visitor’s browser to the EnConvert API:

  • https://api.enconvert.com — receives the uploaded file and returns a presigned URL for the PDF download.

The visitor’s browser sends an X-API-Key header containing the public API key configured in plugin settings. The API validates the key and the requesting domain (the page’s origin) before accepting the conversion. Your WordPress server is not involved in the conversion request.

By using this plugin, you and your visitors agree to EnConvert’s Terms of Service and Privacy Policy.

螢幕擷圖

安裝方式

  1. Upload the enconvert-docx-to-pdf folder to /wp-content/plugins/, or install via the Plugins menu.
  2. Activate the plugin.
  3. In your EnConvert dashboard, create a public API key (pk_*) and add this site’s domain to its allowed-domains list (wildcards like *.example.com work).
  4. In WordPress, go to Settings EnConvert DOCX to PDF and paste the public key.
  5. Insert [enconvert_docx_to_pdf] in any page, post, or Shortcode block.

常見問題集

Where do I get a public API key?

Sign in at enconvert.com and go to Dashboard API Keys. Create a key of type “Public” (pk_*). Public keys are designed for browser use and are restricted to the domains you list.

Why a public key instead of a secret key?

Secret keys (sk_*) cannot be used from a browser — the API rejects them with a 403 error. Public keys (pk_*) are safe to use in front-end code because they are restricted to a list of domains you control. If someone copies your key, it will not work on their site.

Does this plugin send files through my WordPress server?

No. The uploaded file goes directly from the visitor’s browser to api.enconvert.com. Your WordPress server never touches the file or the converted output.

My conversion fails with “Domain not authorized”. What now?

The domain serving the WordPress page is not in the API key’s allowed-domains list. Open your EnConvert dashboard, edit the key, and add your site’s domain. Wildcards like *.example.com cover all subdomains.

Does it work in the block editor?

Yes. WordPress includes a built-in Shortcode block. Add it and paste [enconvert_docx_to_pdf]. The form renders both inside the editor preview and on the published page.

What are the conversion limits?

The free tier includes 100 conversions per month and a 5 MB max file size. Paid tiers raise both limits; see enconvert.com/pricing.

Does it work with multisite?

Yes, but each site needs to activate the plugin and configure its own API key. The plugin has not been tested as a network-activated plugin.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈EnConvert DOCX to PDF〉的開發相關工作。

參與者

將〈EnConvert DOCX to PDF〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release. Native form, public-key authentication, direct API calls.