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

R

Ricardo Pog

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?
 
A

Austin Ziegler

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top