Title
Description Making Documents:- pdf = PDF::Writer.new pdf.select_font"Times-Roman" pdf.text "Hello, Ruby.", :font_size => 72, :justification => :center pdf.image "../images/chunkybacon.png", :justification => :center, :resize => 0.75 File.open("hello.pdf", "wb") { \f\ f.write pdf.render } Font Families:- Courier|Courier |Courier-Bold |Courier-Oblique |Courier-BoldOblique Helvetica |Helvetica |Helvetica-Bold |Helvetica-Oblique |Helvetica-BoldOblique Symbol |Symbol Times-Roman |Times-Roman |Times-Bold |Times-Italic |Times-BoldItalic ZapfDingbats|ZapfDingbats pdf.select_font("Helvetica", { :encoding => "WinAnsiEncoding"}) Document Prepress:- default paper size is A4 PDF::Writer.new(:paper => "A4", :orientation => :landscape, :left_margin =>36) attribute | options orientation |:portrait |:landscape -- :left_margin | int :right_margin| int :top_margin | int :bottom_margin| int
Please answer the following question Bread, ham or milk: which is something to drink?
Don't know the answer? New question