How can i change the font size from a specific row in a table using prawn/prawnto?
I am using prawn to generate a pdf form and I need to change the font size for the labels of the fields OR change the headers font size. ...
I am using prawn to generate a pdf form and I need to change the font size for the labels of the fields OR change the headers font size. ...
def index @forms = Form.all respond_to do |format| format.html end end def submit respond_to do |format| format.pdf {render } end end submit.pdf.prawn file pdf.text "successfully submitted" ...
I have used the following syntax to generate a pdf file: Prawn::Document.generate("#{RAILS_ROOT}/public/pdf/generate.pdf") do pdf.text "hello" end But when I look for the file within the /public/pdf/ folder, I dont find any file. Well my controller code for this is def generate ...
HI I dont have an idea of using margin options with Prawn::Document.generate command. And to use margins for the pdf with header and footer outside the margins. THis is my Prawn pdf code Prawn::Document.generate("public/test.pdf") do page_count.times do |i| go_to_page(i+1) ask = "public/ashok.jpg" ima...
I have my controller to generate report using rails Prawn. The problem that i face is, i could only use the argument that is passed while calling the Prawn::Document.generate(a,b,c,d). But i cannot use any instance variable in Prawn pdf program, while that instant variable is in controller class. HOw to use the the instance variable in ...
This is my prwan code table1 = [["Time duration selected", "Driving Time", "Stop Time", "Productivity", "Stop Count", "Max Speed (km/h)", "Average Speed (km/h)", "Distance Travelled (km)"]] table(table1) This code creates a row.. But i need to specify column width here... so how to set the column width? ...
Hello! I'm making a little script with ruby which produces a week schedule PDF file, using Prawn as a PDF library and I'm struggling with styling the table. I'd like to set a static width for all the columns in the table so that the widths wouldn't depend on the contents of the cells. I've read the documentation (lots of room for improv...
I want to draw borders for all the pages in my PDF. But while using stroke_bounds, I can only draw single dark lined borders alone. I couldn't customize anything? Does anybody have any idea on how to change the style of my stroke_bounds borders? ...
I am using the Rails Prawn to generate pdf files. Now that i am able to generate pdf with all necessary things that i need(eg. table, header, footer, logo, borders etc...). Now I need to use the common things(header, foooter, borders) in a method inside separate module and call this method from my original program? My original program:...
I am using prawn to generate pdfs and I am having problems when settnig the table height, I set the height but nothing happens. I am using like this: mensagem_tabela = msg_nfe + "\n" + msg_numero + "\n" + msg_serie tabela = Prawn::Table tabela = [[Prawn::Table::Cell.new(:text => mensagem_tabela, :height => 5.cm)]] @data = [[Prawn::Table...