| 开发者 | enconvert |
|---|---|
| 更新时间 | 2026年5月20日 22:20 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
pk_*) at enconvert.com/dashboard.[enconvert_html_to_pdf] into any page, post, or shortcode block..html and .htm files@page rules, named page sizes, margins, headers, and footersenconvert-html-to-pdf folder to /wp-content/plugins/, or install via the Plugins menu.pk_*) and add this site's domain to its allowed-domains list (wildcards like *.example.com work).[enconvert_html_to_pdf] in any page, post, or Shortcode block.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.
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.
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.
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.
External resources referenced by URL inside the uploaded HTML may not load, because conversion runs in a sandboxed environment. For consistent results, inline your CSS and base64-encode your images, or ensure all referenced URLs are publicly accessible.
Yes. WordPress includes a built-in Shortcode block. Add it and paste [enconvert_html_to_pdf]. The form renders both inside the editor preview and on the published page.
The free tier includes 100 conversions per month and a 5 MB max file size. Paid tiers raise both limits; see enconvert.com/pricing.
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.