GrabzIt provides multiple ways of converting web pages into PDF by using either our API or Online Tool. Letting you produce great PDF files quickly and easily with all the basic features provided for free. Just sign up to get started.
To see the API in action please enter the URL of a web page you wish to convert into a PDF document. The completed PDF will then be automatically download when our service has finished converting the webpage.
Using our global network of servers. We have reduced the network latency when generating a PDF from web pages located in different parts of the world.
Embed GrabzIt's Webpage to PDF functionality directly into your app by using our API and one of nine supported programming languages. To get started converting pages just select the appropriate language from the below options to see some example code snippets and instructions.
The following code snippet illustrates how easy it is to convert a URL into a PDF using ASP.NET. To start creating PDF screenshots just download the ASP.NET Library, get your key and secret and then use the demo contained within. Finally check out the API documentation for ASP.NET to find out all the ways you can use GrabzIt's API.
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); grabzIt.URLToPDF("https://www.tesla.com"); grabzIt.SaveTo("documents/result.pdf");
The following code snippet illustrates how easy it is to convert a URL into a PDF using Java. To start creating PDF screenshots just download the Java Library, get your key and secret and then use the demo contained within. Finally check out the API documentation for Java to find out all the ways you can use GrabzIt's API.
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); grabzIt.URLToPDF("https://www.tesla.com"); grabzIt.SaveTo("documents/result.pdf");
The following code snippet illustrates how easy it is to convert a webpage to PDF using JavaScript. To start creating PDF screenshots download GrabzIt's JavaScript Library. Then get your key and secret, add the domain you want to use the JavaScript on and then check out the API documentation for JavaScript to find out all the ways you can use GrabzIt's API.
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("https://www.tesla.com",
{"format":"pdf"}).Create();
</script>
The following code snippet illustrates how easy it is to convert a URL into a PDF using Node.js. To start creating PDF screenshots just download the Node.js Package, get your key and secret and then use the demo contained within. Finally check out the API documentation for Node.js to find out all the ways you can use GrabzIt's API.
var grabzit = require('grabzit'); var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret"); client.url_to_pdf("https://www.tesla.com"); client.save_to("documents/result.pdf", function (error, id){ if (error != null){ throw error; } });
The following code snippet illustrates how easy it is to convert a URL into a PDF using Perl. To start creating PDF screenshots just download the Perl Library, get your key and secret and then use the demo contained within. Finally check out the API documentation for Perl to find out all the ways you can use GrabzIt's API.
#!/usr/bin/perl use GrabzItClient; $grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret"); $grabzIt->URLToPDF("https://www.tesla.com"); $grabzIt->SaveTo("documents/result.pdf");
The following is an example of a PHP to PDF converter script showing how to convert an HTML page into PDF using PHP. To start creating PDF screenshots just download the PHP Library, get your key and secret and then use the demo contained within. Finally check out the API documentation for PHP to find out all the ways you can use GrabzIt's API.
include("GrabzItClient.php"); $grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); $grabzIt->URLToPDF("https://www.tesla.com"); $grabzIt->SaveTo("documents/result.pdf");
The following code snippet illustrates how easy it is to convert a URL into a PDF using Python. To start creating PDF screenshots just download the Python Library, get your key and secret and then use the demo contained within. Finally check out the API documentation for Python to find out all the ways you can use GrabzIt's API.
from GrabzIt import GrabzItClient grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret") grabzIt.URLToPDF("https://www.tesla.com") grabzIt.SaveTo("documents/result.pdf")
The following code snippet illustrates how easy it is to convert a URL into a PDF using GrabzIt's RESTful API. The API documentation contains even more ways you can customize your captures.
https://api.grabz.it/services/convert?key=Sign in to view your Application Key&format=pdf&url=https%3A%2F%2Fwww.tesla.com%2F
The following code snippet illustrates how easy it is to convert a URL into a PDF using Ruby. To start creating PDF screenshots just download the Ruby Gem, get your key and secret and then use the demo contained within. Finally check out the API documentation for Ruby to find out all the ways you can use GrabzIt's API.
require 'grabzit' grabzItClient = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret") grabzItClient.url_to_pdf("https://www.tesla.com") grabzItClient.save_to("documents/result.pdf")
You can further customize your PDF files using templates. These allow you to create highly flexible headers and footers for any of the PDF documents you generate.
If you own a website, CMS or blog and want to enable your users to save the webpage they are currently viewing as a PDF. Or if you want your users to be able to save a specified URL as a PDF when a link or button is clicked. Then add the Save As PDF Plugin to your website. This plugin is compatible with all browsers including Google Chrome and Internet Explorer.
Rather than just convert one webpage to PDF at a time, an entire website can be converted to PDF by using this special web scraper template. This template will instruct the web scraper to follow all the links on the entire website. Every link followed is then converted to PDF.
If you don't want to convert URLs but want to convert HTML or convert a saved webpage to PDF. Then you can also use our API to convert HTML directly into PDF documents.