Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsSet page size and margins in the JSON body of an authenticated POST request to Html2Pdf.app’s generation endpoint, https://api.html2pdf.app/v1/generate. Choose a standard size with format, set orientation separately with landscape, or provide both width and height in pixels for a custom size. Set the four page margins independently with marginTop, marginRight, marginBottom and marginLeft. [Html2Pdf.app documentation]
Send the settings in the generation request
Html2Pdf.app uses an authenticated POST request with JSON. Authentication is supplied in the X-API-Key header. The html field can contain either a publicly reachable URL or raw HTML. The page-size and margin settings are API request options, not steps in a graphical settings panel. [Official documentation] [Official cURL examples]
As an Amazon Associate I earn from qualifying purchases.
Example JSON payload
This illustrative payload requests A4 portrait pages and 24 pixels of whitespace on each side. The margin values are examples, not the service defaults; each margin defaults to zero.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →{
"html": "https://example.com/report",
"format": "A4",
"landscape": false,
"marginTop": 24,
"marginRight": 24,
"marginBottom": 24,
"marginLeft": 24
}
Choose a standard page size or custom dimensions
Use a named format
Set format to a documented standard size when it meets the document’s needs. Supported values are Letter, Legal, Tabloid, Ledger, and A0 through A6. The documented default is A4. Use the value as a string, for example "format": "Letter". [Html2Pdf.app documentation]
#1 Best Overall
- 1 ream (500 sheets) of 8.5 x 11 white copier and printer paper for home or office use
- Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
- Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
- Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
- Virgin copy paper providing professional quality results; acid-free to prevent yellowing
Set orientation independently
Set landscape to true for landscape orientation. Its documented default is false, meaning portrait. This setting is separate from the format choice.
Provide both dimensions for a custom page
For a custom page size, set both width and height as integer pixel values. The documentation specifies them as a pair; one field alone does not define the complete custom size. For example, a request could include "width": 800 and "height": 1100 to specify pixel dimensions. These are example values, not a named paper standard. [Html2Pdf.app documentation]
Rank #2
- HP Papers is sourced from renewable forest resources and has achieved production with 0% deforestation in North America. Each ream is wrapped in a polyurethane coated paper wrapper to protect the cut sheets from moisture damage
- Sheet size – 8.5 x 11; Thickness – 20 pounds; Brightness – 92 bright white
- HP Copy&Print20 20 pounds printer paper is Forest Stewardship Council (FSC) certified and contributes toward satisfying credit MR1 under LEED (Leadership in Energy and Environmental Design)
- All HP Papers provide premium performance on HP equipment, as well as on all other printer and copier equipment; 100% satisfaction guaranteed; ColorLok technology provides more vivid colors, bolder blacks and faster drying
- Superior quality, reliability, and dependability for high-volume printing at home, at school and in the office; HP Copy&Print20 print and copy paper prevents yellowing over time to ensure a long-lasting appearance for added archival quality
Set each margin separately
Margins are whitespace, measured in pixels, between the page edge and the rendered content. Configure each edge independently:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
marginTop— top margin.marginRight— right margin.marginBottom— bottom margin.marginLeft— left margin.
Each field’s documented default is 0. If the layout needs equal margins, assign the same pixel value to all four fields; otherwise, use different values for the edges that need them. [Html2Pdf.app documentation] [Official cURL examples]
Rank #3
- 3 ream case (1,500 sheets) of 8.5 x 11 white copier and printer paper for home or office use
- Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
- Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
- Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
- Virgin copy paper providing professional quality results; acid-free to prevent yellowing
Complete request example with cURL
The following example shows the documented request shape. Replace YOUR_API_KEY with your API key and the example URL with a publicly reachable page or use raw HTML in the JSON body. The documentation describes this request format; this example is not a report of a tested API call.
curl -X POST "https://api.html2pdf.app/v1/generate"
-H "X-API-Key: YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{
"html": "https://example.com/report",
"format": "A4",
"landscape": false,
"marginTop": 24,
"marginRight": 24,
"marginBottom": 24,
"marginLeft": 24
}'
Or skip the browser setup
If your goal is a clean screenshot rather than a PDF, ScreenshotNeo returns an image or PDF from one GET request. For example, this cURL request saves a WebP screenshot:
Rank #4
- 5 ream case (2,500 sheets) of 8.5 x 11 white copier and printer paper for home or office use
- Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
- Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
- Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
- Virgin copy paper providing professional quality results; acid-free to prevent yellowing
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/report -o shot.webp
See the ScreenshotNeo API documentation. It removes cookie and consent banners, newsletter popups and chat widgets before capture; bot checks, blank pages and failed loads are never billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots per month with no card, and paid plans start at $5 for 3,000. Sign up for free.
Recommended Free Tools
Check rendering before production
Html2Pdf.app says conversions run in headless Chromium, supporting modern HTML, CSS and JavaScript. Output can still vary with CSS media mode, available fonts and resources, and JavaScript load timing. Test representative documents before relying on the generated PDFs in production, especially when the page depends on external assets or scripts. [Html2Pdf.app documentation]
Quick Recap
Best Value
- 8 ream case (4,000 sheets) of 8.5 x 11 white copier and printer paper for home or office use
- Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
- Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
- Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
- Virgin copy paper providing professional quality results; acid-free to prevent yellowing
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




