wicked pdf を使用してテーブルをエクスポートしています
これが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
印刷画面はこちら
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<table border="1" align="left">
</table>
</body>
</html>
これが私が取得しているpdfです
左側にこれが欲しいのですが、機能していません
私は試してみましたが、何もありません:
:margin => {:top=> 0,:bottom => 0,:left=> -10,:right => 0},
誰か助けてください。