Forum How do I...?

No margin

rasmus
Hi,

I'm trying to create a document with "no" top margin at all. On my pdf viewer the document is without any margin, but when I print it I get an 1.5 cm margin.

My test code:

<style>
@page { size: A4 }
@page { margin: 0mm; }
@page { padding: 0mm; }
@page { prince-pdf-print-scaling: none }
@page { prince-shrink-to-fit: none }
</style>

Hello world
mikeday
Perhaps the content has a margin?

You can try putting a border on the @page to clarify exactly where the edge of the page is.

Also, which program are you using to print the PDF?