I want to do a list of reports, so each report should be in a different pdf page. How can I make that I want to finishing writing in the current page and I want the rest of the pdf in another page, but in the same document? -- 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 -~----------~----~----~----~------~----~------~--~---
Try: pdf.start_new_page (details at http://ruby-pdf.rubyforge.org/pdf-writer/) On Jan 28, 8:17 am, John Smith <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I want to do a list of reports, so each report should be in a different > pdf page. How can I make that I want to finishing writing in the current > page and I want the rest of the pdf in another page, but in the same > document? > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
John Smith wrote:> I want to do a list of reports, so each report should be in a different > pdf page. How can I make that I want to finishing writing in the current > page and I want the rest of the pdf in another page, but in the same > document?start_new_page(force = false) Starts a new page or column. If you pass it ''true'' it will always start a new page, even in multi-column situations. The following code will produce ''hello'' on one page, and ''world'' on the next: require "pdf/writer" pdf = PDF::Writer.new pdf.text "hello" pdf.start_new_page pdf.text "world" pdf.save_as("hello.pdf") -- 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 -~----------~----~----~----~------~----~------~--~---