HTML to PDF, JPG, PNG, and TXT Now Accept a File or a URL
The HTML to PDF, HTML to JPG, HTML to PNG, and HTML to TXT converters now each accept either an uploaded HTML file or a live web page URL, exactly one of the two per request. Point one at a website and the page renders from its origin with all assets intact. The matching Web to PDF, JPG, PNG, and TXT converters are folded into them; existing web/to/* API calls keep working.
Highlights
- Convert an HTML
Fileor a web pageUrlthrough a single converter for PDF, JPG, PNG, and TXT output. - Website URLs render from their origin with full assets, fixing broken output when a URL was pasted into the HTML converters.
- The standalone Web to PDF, JPG, PNG, and TXT converters are retired from the catalog, but their endpoints still serve existing integrations.
- HTML to PNG now honors its
TransparentBackgroundparameter.
Parameters
File(file) - an HTML file to convert. Provide either this orUrl.Url(string) - a web page address to convert. Provide either this orFile.
Try it out
- HTML to PDF - API sandbox: html-to-pdf
- HTML to JPG - API sandbox: html-to-jpg
- HTML to PNG - API sandbox: html-to-png
- HTML to TXT - API sandbox: html-to-txt