DocRaptor Home
PDF Styling & Reference > Styling Basics

Margins & Bleed

By default, PDFs are created with a margin of .75in.

You can set the following adjust attributes within the @page CSS selector: margin, border, padding and background. A margin of 0 will generate a full-bleed page.

@page {
  margin: 0;
  padding: 2in;
  background: #cccccc;

Ready to get started? Try DocRaptor for free with unlimited test documents.