#26 new
Phoebe Sun

pdf.header problem

Reported by Phoebe Sun | November 13th, 2009 @ 06:01 AM

Hi Prawn team:

  1. I found pdf header always be covered by contents.

but when i changed document.rb -> row 235:

 @y = @bounding_box.absolute_top change to @y = @bounding_box.absolute_top - 40

then this problem gone.

  1. There are 3 pages in my test code, but if i use 'pdf.number_pages "/", [doc.pdf.margin_box.right, 0]' then the third page's content will cover the second page's content.

  2. And another problem, I don't know how to fix, I tried many way but this problem still there,
    so I think may it's a bug. Please check the PDF file in Attachment, you can see there are half page white space in the second page, I tried to remove it and let the content on third page move the second page, but failed. If I remove the big table, the big white space gone. You can find my source code in attachment. please help to fix it.

my ruby env

ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
Rails 2.2.2

prawn (0.6.1)
prawn-core (0.6.1)
prawn-format (0.2.2)
prawn-layout (0.3.1)

prawn-security (0.1.1)

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Attachments

Pages