However any resources not inlined in the HTML must be referenced using an absolute URL in order to be rendered by GrabzIt. For instance a CSS file should be referenced in the HTML code using
http://www.example.com/mystyle.css rather than
As you can see in the demo above, using the HTML to PDF API or HTML to Image API allows developers to create anything they can imagine. Then have it accurately transformed into an image or PDF by our converter.
GrabzIt can easily enable your app to convert HTML to PDF by using our easy to use API, which is available in eight different programming languages. Just choose your required programming language below and then follow the relevant instructions.
If you have HTM or HTML files and are using a server-side language such as PHP, then these documents can also be used to generate PDF. Just use the appropriate FileToPDF method for the language you are using instead.
When creating PDF files it is often necessary to specify where you want page breaks to appear in a PDF to stop related content splitting across two pages. To do this you need to specify the special page break HTML syntax as explained in this tutorial.
GrabzIt also enables your application to convert HTML to Images. In one of the following file formats: JPG, PNG, BMP, WEBP or TIFF. Using one of eight different programming languages. Just choose the programming language you want to use below, and then follow the associated instructions.