PDF::Writer, create pdf and insert in other pdf file.

Discussion in 'Ruby' started by Ricardo Pog, Mar 26, 2008.

  1. Ricardo Pog

    Ricardo Pog Guest

    Hi folks(wharever it mean my english is so bad...)


    the following code create a PDF:

    #!/usr/bin/ruby

    require 'pdf/writer'

    pdf = PDF::Writer.new

    pdf.text "Hello Matz", :font_size => 22

    pdf.save_as "novo.pdf"


    ########################################


    now I wanna save this pdf as a last page of a existing pdf.


    any tips?
    --
    Posted via http://www.ruby-forum.com/.
     
    Ricardo Pog, Mar 26, 2008
    #1
    1. Advertising

  2. On Wed, Mar 26, 2008 at 1:23 PM, Ricardo Pog <> wrote:
    > Hi folks(wharever it mean my english is so bad...)
    >
    >
    > the following code create a PDF:
    >
    > #!/usr/bin/ruby
    > require 'pdf/writer'
    > pdf = PDF::Writer.new
    > pdf.text "Hello Matz", :font_size => 22
    > pdf.save_as "novo.pdf"
    > ########################################


    > now I wanna save this pdf as a last page of a existing pdf.
    > any tips?


    Can't be done with PDF::Writer or straight Ruby. You might be able to
    do it with Cairo's PDF support.

    -austin
    --
    Austin Ziegler * * http://www.halostatue.ca/
    * * http://www.halostatue.ca/feed/
    *
     
    Austin Ziegler, Mar 26, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DaVinci
    Replies:
    1
    Views:
    598
    Piotr Kobzda
    Oct 5, 2006
  2. Henri
    Replies:
    1
    Views:
    412
    Henri
    Jul 13, 2004
  3. vasudevram
    Replies:
    0
    Views:
    256
    vasudevram
    Jul 25, 2006
  4. Brandon Sislow

    PDF::Reader streamed into PDF::Writer

    Brandon Sislow, Mar 27, 2008, in forum: Ruby
    Replies:
    1
    Views:
    162
    Austin Ziegler
    Mar 28, 2008
  5. Sean Nakasone
    Replies:
    1
    Views:
    428
    Farrel Lifson
    Apr 14, 2008
Loading...

Share This Page