More info. Looks like the size problem arises when the document is generated by calling pdf.render and sending the output directly to the browser instead of writing an intermediate file using save_as. I'd really hate to have to deal with temp files. I suppose it might be a bug. I guess I may just have to work around it for now. Matt
on 2005-11-27 08:21
on 2005-11-28 07:11
For what it's worth, if you didn't already know, 11.69x8.27 inches is the exact size of an A4 page. Have you checked your printer settings to see if it defaults to A4 paper? Maybe PDF:Writer is picking up its settings from a printer, for some reason... I'm probably going to start using PDF::Writer myself in the next day or so. Even though I want it to default to A4 page size, I'm curious about what you're seeing. Regards Dave M.
on 2005-11-28 15:20
On 11/28/05, David M. <email@example.com> wrote: > For what it's worth, if you didn't already know, 11.69x8.27 inches is > the exact size of an A4 page. > > Have you checked your printer settings to see if it defaults to A4 > paper? Maybe PDF:Writer is picking up its settings from a printer, > for some reason... No, it won't be doing that. PDF::Writer is written entirely in Ruby. My suspicion is that there's something in Matt's code which is creating the document with an A4 size, e.g.: pdf = PDF::Writer.new(:paper => "A4") PDF::Writer creates its pages from the exact number of *points* (about 1/72 of an inch) and the named paper sizes are merely for convenience. If PDF::Writer is not given a paper size as above, it will always asssume LETTER (U.S. Letter, 8.5" x 11"). -austin -- Austin Z. * firstname.lastname@example.org * Alternate: email@example.com