f



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

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/.

0
3/26/2008 5:23:20 PM
comp.lang.ruby 48886 articles. 0 followers. Post Follow

1 Replies
1307 Views

Similar Articles

[PageSpeed] 9

On Wed, Mar 26, 2008 at 1:23 PM, Ricardo Pog <ricardo85x@gmail.com> 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 * halostatue@gmail.com * http://www.halostatue.ca/
 * austin@halostatue.ca * http://www.halostatue.ca/feed/
 * austin@zieglers.ca

0
halostatue (1713)
3/26/2008 8:24:05 PM
Reply: