receipt update
This commit is contained in:
18
app/pdf/order_item_pdf.rb
Normal file
18
app/pdf/order_item_pdf.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
class OrderItemPdf < Prawn::Document
|
||||
|
||||
def initialize(order_item, print_settings)
|
||||
super(:margin => [10, 5, 30, 5], :page_size => [200,400])
|
||||
|
||||
# font "public/fonts/#{font_name}".to_s + ".ttf".to_s
|
||||
# font "public/fonts/Zawgyi-One.ttf"
|
||||
# font "public/fonts/padauk.ttf"
|
||||
|
||||
|
||||
font_size 9
|
||||
text "#{"table_name"}", :size => 15
|
||||
stroke_horizontal_rule
|
||||
move_down 5
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user