Описание
Let visitors upload an HTML file and download a CSS-faithful PDF, right from any WordPress page. 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:
- Generate a public API key (
pk_*) at enconvert.com/dashboard. - Add your WordPress site’s domain to the key’s allowed-domains list.
- Paste the key into the plugin settings.
- Drop
[enconvert_html_to_pdf]into any page, post, or shortcode block.
What the API does behind the scenes:
- Accepts
.htmland.htmfiles - Renders via WeasyPrint, respecting your CSS
@pagerules, named page sizes, margins, headers, and footers - Returns a downloadable PDF in seconds
- Supports paginated output with named sizes (A0–A6, B0–B5, Letter, Legal, Tabloid, Ledger) or custom dimensions
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 HTML 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.
- Service: Enconvert — https://enconvert.com
- Terms of Service: https://enconvert.com/terms
- Privacy Policy: https://enconvert.com/privacy
By using this plugin, you and your visitors agree to Enconvert’s Terms of Service and Privacy Policy.
Скриншоты
Установка
- Upload the
enconvert-html-to-pdffolder to/wp-content/plugins/, or install via the Plugins menu. - Activate the plugin.
- In your Enconvert dashboard, create a public API key (
pk_*) and add this site’s domain to its allowed-domains list (wildcards like*.example.comwork). - In WordPress, go to Settings Enconvert HTML to PDF and paste the public key.
- Insert
[enconvert_html_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. -
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.comcover all subdomains. -
Will images and stylesheets in my HTML resolve?
-
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.
-
Does it work in the block editor?
-
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. -
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 HTML to PDF» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
УчастникиПеревести «Enconvert HTML to PDF» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.
Журнал изменений
1.0.0
- Initial release. Native form, public-key authentication, direct API calls.



