ruby on rails - wicked pdf side issue -


i'm exporting table using wicked pdf

here controller use wicked

def print_invoice    respond_to |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 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 pdf i'm getting

enter image description here

i want on left side not working

enter image description here

i tried , nothing:

 :margin => {:top=> 0,:bottom => 0,:left=> -10,:right => 0}, 

please can me?

yes tha'ts position margin left, try code:

:margin => {:top=> 0,:bottom => 0,:left=> 0.1,:right => 0}, 

as arieljuod said must that.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -