Forum Documentation

Perfect pixel of the letter

ralphbrabante
Hi,

Quick question.

I would like to set a perfect background on my documents, A4 and Letter Sizes.

Can I ask if anyone knows the perfect width and size so that I can maximize the page in pixels?

I am avoiding to have page 2 and the page will have sections with static heights in px.
markbrown
Letter is 816px wide and 1056px tall, including the page margins. I don't know the size of A4 in pixels (the size in mm is here), but Prince does support vw/vh units, in which the page body is always 100vw x 100vh irrespective of the paper size. Perhaps these units may be of use to you?