Frameworks
React Native
Flutter
Package samples
Cookbook
Version 11
Version 10
Version 9
Version 8
Version 7
Version 6
Version 5
Internet connection is not required when converting local HTML files. However, it is required for converting HTTP/HTTPS links.
The HTML to PDF conversion API accepts different sources, such as HTTP/HTTPS URLs, HTML strings, and everything that can be loaded in a WebView.
To convert a link URL to PDF, simply:
To convert an HTML string to PDF, simply:
where myBaseUrl
is the URL to use as the page's base URL. If null defaults to about:blank
and myHtmlData
is a String of data in the UTF-8
encoding. Click here for more info.
If none of the above fit your needs, you can also pass in a WebView
directly for conversion:
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales