Forum Documentation

Exact Page Margin Definition

jamespaden
What is the page margin default that Prince uses internally?

A default of 54pt is stated here: https://www.princexml.com/doc/paged/ (see "The initial values for CSS properties are defined internally" code block)

But perhaps a default of 20mm is suggested here: https://www.princexml.com/doc/command-line/#css-options

Do these defaults change based on page size, DPI, or other variables? We're considering overriding the command line default to workaround the media query definition issue and want to make sure we get it right.


Try DocRaptor - PrinceXML web service and official PrinceXML partner

mikeday
The default page margin is 54pt (0.75in, 19.05mm), this should not be dependent on other variables.
jamespaden
Thanks, Mike!

Try DocRaptor - PrinceXML web service and official PrinceXML partner