Forum How do I...?

paper size/target sheet

Alastair
How do I set a target (page) size.
mikeday
Add this to your style sheet:
@page { size: A4 }

Where the size can be A4, Letter, landscape, A4 landscape, and so on.
Alastair
I did that. However the resulting pdf still seemed to be Letter size.
mikeday
Can you verify that the CSS is being used, eg. by adding some other rule to turn text red or something like that? Perhaps the style sheet is not being applied for some reason.
Alastair
It is being used, because the css contains the header and footer definitions. These appear correctly.
mikeday
That is strange. Can you post or email me (mikeday@yeslogic.com) a sample document that demonstrates the problem?
Alastair
mikeday wrote:
That is strange. Can you post or email me (mikeday@yeslogic.com) a sample document that demonstrates the problem?

Sorry, mike, I've been away for a few days.

I'll just run a retest, double-checking that the css is the one being used, then I'll email you the docs.
mikeday
For the record, Acrobat can choose a different page size for printing than the intrinsic size used in the actual PDF file. Page scaling can be disabled in Acrobat by using this CSS rule in Prince:
@prince-pdf { prince-pdf-page-scaling: none }

Ultimately however you cannot print A4 size unless you have A4 paper in your printer.