I'm exporting a table using wicked pdf
here is the controller that use wicked
def print_invoice
respond_to do |format|
format.pdf{
send_data render(
####### WICKED CODE ######
:pdf => "invoices",
:margin => {:top=> 0,:bottom => 0,:left=> 0,:right => 0},
:orientation => "Landscape",
:print_media_type => true,:disable_smart_shrinking => true)
)
####### END WICKED CODE ######
}
end
end
Here is the print view
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<table border="1" align="left">
</table>
</body>
</html>
Here is the pdf that I'm getting
I want this on the left side but is not working
I tried and nothing:
:margin => {:top=> 0,:bottom => 0,:left=> -10,:right => 0},
Please somebody can help me?