How do I set a target (page) size.
Forum › How do I...?
paper size/target sheet
Add this to your style sheet:
Where the size can be A4, Letter, landscape, A4 landscape, and so on.
@page { size: A4 }
Where the size can be A4, Letter, landscape, A4 landscape, and so on.
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.
It is being used, because the css contains the header and footer definitions. These appear correctly.
That is strange. Can you post or email me (mikeday@yeslogic.com) a sample document that demonstrates the problem?
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.
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:
Ultimately however you cannot print A4 size unless you have A4 paper in your printer.
@prince-pdf { prince-pdf-page-scaling: none }
Ultimately however you cannot print A4 size unless you have A4 paper in your printer.