Sandbox Host sandbox.pdfbucket.io
You can test the PDF generation without consuming your available conversions, keep in mind that a watermark will be added using the sandbox.
Test API
GET /api/convert usage
1. Go to the Test API menu and click on GET /api/convert.

2. Enter all the mandatory information:

• URL: It converts the website you enter.
• Margin (Pixels): An integer value in pixels to set the margin of the top, bottom, left and right of the pdf file.
• Zoom (0.0 to 1.0): A decimal value to apply a Zoom in the website.
• Orientation: The orientation of the page can be horizontal(landscape) or vertical(portrait).
• Page Size: The size of the page can be A4 or Letter.
• Expires (Seconds): It's the time in seconds you want the document expires.
POST /api/convert usage
1. Go to the Test API menu and click on POST /api/convert.

2. Enter all the mandatory information:

• Content (html): You also have the option to convert HTML to a PDF file. By default there is a simple HTML example to convert.
• Margin (Pixels): An integer value in pixels to set the margin of the top, bottom, left and right of the pdf file.
• Zoom (0.0 to 1.0): A decimal value to apply a Zoom in the website.
• Orientation: The orientation of the page can be horizontal(landscape) or vertical(portrait).
• Page Size: The size of the page can be A4 or Letter.
• Expires (Seconds): It's the time in seconds you want the document expires.
For GET and POST /api/convert
In both cases you have the option to set a pagination:
Note: When adding pdf pagination it automatically creates a margin of 1cm at top or bottom of the page.

• Pagination: Select Yes if you want the pagination number in your PDF file.
• Position: Can be Header or Footer.
• Alignment: Can be Left, Center or Right.