Jodi Showers
2006-Jan-03 20:18 UTC
[Rails] Pdf::Writer ; page numbering, and table wrapping
Hey there, I know this isn''t a pdf::writer list - If there''s a more appropriate place for me to ask these questions I''d appreciate being set straight. I''m having a couple of misunderstandings/isssues first with page numbers and secondly with auto-wrapping of simple_table. First pdf.start_page_numbering(pdf.margin_x_middle, pdf.absolute_bottom_margin, 9, :center, nil, nil) Using the default ''pattern'', is rendering ''x of N+1'' - or specifically it always thinks that <TOTALPAGENUM> is 1 greater than the number of pages in the document. I''ve rendered 1, 2 and 3 page documents, and it responds with "1 of 2", "1 of 3", "1 of 4", etc. Using the pattern string (''<PAGENUM> of <TOTALPAGENUM>'' results in the same output. Secondly, the auto-wrapping of tables, runs directly into both the before mentioned page numbers, and into a header added via add_object(.., :all_pages). Is there a way to configure the auto-wrapping of tables to skip a Y? I''m configuring the other paths, so I do know in advance where wrapping should start, and begin. Thanx for any thoughts. cheers, Jodi -- Posted via http://www.ruby-forum.com/.
Austin Ziegler
2006-Jan-03 21:32 UTC
[Rails] Pdf::Writer ; page numbering, and table wrapping
http://rubyforge.org/mailman/listinfo/ruby-pdf-discuss The page numbering issue is a known bug that I will be fixing. I am not sure what you''re asking on the second item. -austin On 03/01/06, Jodi Showers <jodi@nnovation.ca> wrote:> Hey there, > > I know this isn''t a pdf::writer list - If there''s a more appropriate > place for me to ask these questions I''d appreciate being set straight. > > I''m having a couple of misunderstandings/isssues first with page numbers > and secondly with auto-wrapping of simple_table. > > First > > pdf.start_page_numbering(pdf.margin_x_middle, > pdf.absolute_bottom_margin, 9, :center, nil, nil) > > Using the default ''pattern'', is rendering ''x of N+1'' - or specifically > it always thinks that <TOTALPAGENUM> is 1 greater than the number of > pages in the document. I''ve rendered 1, 2 and 3 page documents, and it > responds with "1 of 2", "1 of 3", "1 of 4", etc. Using the pattern > string (''<PAGENUM> of <TOTALPAGENUM>'' results in the same output. > > Secondly, > > the auto-wrapping of tables, runs directly into both the before > mentioned page numbers, and into a header added via add_object(.., > :all_pages). > > Is there a way to configure the auto-wrapping of tables to skip a Y? I''m > configuring the other paths, so I do know in advance where wrapping > should start, and begin. > > Thanx for any thoughts. > > cheers, > Jodi > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca
Austin Ziegler wrote:> http://rubyforge.org/mailman/listinfo/ruby-pdf-discuss > > The page numbering issue is a known bug that I will be fixing. I am > not sure what you''re asking on the second item. > > -austin > > On 03/01/06, Jodi Showers <jodi-BOB1p6JRLoAV+D8aMU/kSg@public.gmane.org> wrote: >> pdf.start_page_numbering(pdf.margin_x_middle, >> the auto-wrapping of tables, runs directly into both the before >> Jodi >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > -- > Austin Ziegler * halostatue-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > * Alternate: austin-/yODNl0JVVCozMbzO90S/Q@public.gmane.orgTo fix the page numbering issue add the following before your program exits pdf.stop_page_numbering(true) JB -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---