Groups
Groups
Sign in
Groups
Groups
dompdf
Conversations
Labels
About
Send feedback
Help
Margins on right and left of paper edge
336 views
Skip to first unread message
Simplewhite
unread,
Sep 8, 2010, 7:57:06 AM
9/8/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dompdf
Hello,
Is it possible to add margins to left and right to paper edges? Right
now the text is too close to edge and it cut when I print PDF.
Is there any solution?
Fabien Ménager
unread,
Sep 8, 2010, 9:51:27 AM
9/8/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dompdf
Hello, you can do so by adding some CSS to your stylesheet :
@page {
margin-left: 2cm;
margin-right: 2cm;
}
http://www.w3.org/TR/CSS2/page.html#page-margins
BrianS
unread,
Sep 8, 2010, 8:15:28 PM
9/8/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dompdf
I believe you could also apply margin/padding to the HTML body: body
{ margin: 2cm; }
Reply all
Reply to author
Forward
0 new messages