HTML to PDF, JPG, PNG, and TXT Now Accept a File or a URL

T
Tomas
ConvertAPI

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 File or a web page Url through 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 TransparentBackground parameter.

Parameters

  • File (file) - an HTML file to convert. Provide either this or Url.
  • Url (string) - a web page address to convert. Provide either this or File.

Try it out