Created
January 25, 2009 23:28
-
-
Save zhhz/52613 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# price_letter.pdf.erb | |
<%= | |
require "prawn/measurement_extensions" | |
require "prawn/table" | |
pdf = Prawn::Document.new( | |
:page_size => "A4", | |
:left_margin => 2.cm, | |
:right_margin => 2.cm, | |
:top_margin => 2.cm, | |
:bottom_margin => 1.5.cm | |
) | |
# logo | |
logo = image_dir + 'logo.jpg' | |
pdf.image logo, :position => :center | |
pdf.font "Times-Roman" | |
... | |
pdf.render | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment