Frameworks
React Native
Flutter
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 platform-specific conversion API also supports HTML to PDF conversion, either with the +convertOfficeToPDF:paperSize:completion:
method for .html
files or the +convertHTMLStringToPDF:baseURL:paperSize:completion:
for raw HTML text.
The following code shows how to convert an HTML string to PDF:
where baseURL
is the URL to use as the page's base URL for resolving relative links in the document.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales