By default both DOCX and PDF documents use the A4 page size, while other standard pages sizes such as a A3 and B4 are also supported. However GrabzIt also allows developers to use completely customized page sizes as well. To create a custom page size just specify the size of the page width and height in millimetres (mm), with a minimum page size of 15 mm.
PDF Custom Page Size
The examples below show how to create a custom PDF page size of 150mm by 150mm for every programming language we currently support.
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.4.8/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.spacex.com",
{"format": "pdf", "download": 1, "height": 150, "width": 150}).Create();
</script>
DOCX Custom Page Size
Custom page sizes for DOCX can be generated in a similar way as for PDF in the above examples. Again a custom page size of 150mm by 150mm has been used.
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.4.8/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.spacex.com",
{"format": "docx", "download": 1, "height": 150, "width": 150}).Create();
</script>