I tried to make an image with this size:
W: 595.28/72 inch
H: 841.89/72 inch
but the image is too big and it leaks of the document, I tried to use
the scale parameter
prawnto :prawn => {
:background => "#{RAILS_ROOT}/public/#{tmp_img[0]}",
:scale => 0.1,
:left_margin => 0,
:right_margin => 0,
:top_margin => 0,
:bottom_margin => 0,
:page_size => 'A4' }
but it does not have any effect. Thank you for your help!
On 18 Ott, 07:53, Mattia <
mattia.lipr...@gmail.com> wrote:
> Thank you i noticed that but how can i convert it in pixel? i tried to
> put an image as background with this size 595x842px, in this case
> image fit correctly the PDF document but the image quality is not so
> good. thanks
>
> Mattia
>
> Il giorno 18/ott/2009, alle ore 03.12, Gregory Brown <
gregory.t.br...@gmail.com
> > ha scritto:
>
>
>
>
>
> > On Sat, Oct 17, 2009 at 7:32 PM, Bryce Mecum <
petrid...@gmail.com>
> > wrote:
>
> >> Document::PageGeometry should help you.
> >>
http://prawn.majesticseacreature.com/docs/prawn-core/classes/Prawn/Do...