You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per Nyfelt edited this page Apr 11, 2024
·
9 revisions
Paging
When using named page directives, the layout gets distorted due to some issue in flying saucer. You can fix this by adjusting the body as follows (adjust depending on margin/padding settings in the page definition) :
@page defaultPage {size: letter portrait;/* give some space for the header and footer, margin right must be 1px or it will be outside of the page (even for non-named pages)*/margin:20px1px20px0;padding:0;}body{/* For a5 portrait margin-top: 0; margin-right: 149.5px; *//* for a4 portrait margin-top: 0; margin-right: -85px; *//* for letter portrait */margin-top:0;margin-right:-107.4px;}/* for letter landscape margin-top: 0; margin-right: -347px; *//* for a4 landscape margin-top: 0; margin-right: -414px; *//* for a5 landscape margin-top: 0; margin-right: -86px; */