ruby on rails 3 - Using whole space of pdf file -


i using prawn create pdf file leaves spaces/margins around page. can't use whole space of pdf file not leaving margins around?

thanks !!!

are referring page bounds ?

the general space consumed on page can shown example code:

require 'prawn/core' require 'prawn/layout'  prawn::document.generate('padded_box.pdf')   stroke_bounds   text "margin box"   padded_box(25)     stroke_bounds     text "bounding box padded 25 on sides margins"     padded_box(50)       stroke_bounds       text "bounding box padded 50 on sides parent bounds"     end   end end 

this draw bounds of page showing margin. there gap, margins typically defined printing area


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -