Embedding PNGs in PDFs

Hello,

is there a Ruby library for embedding PNGs and other images in existing
PDF files?

I’ve found Haru (http://libharu.sourceforge.net/) which seems to be
supported on many platforms, but I’d prefer to go with plain Ruby.

Greetings
Ralph

is there a Ruby library for embedding PNGs and other images in existing
PDF files?

Yes, PDF Writer supports this:
http://ruby-pdf.rubyforge.org/pdf-writer/doc/classes/PDF/Writer/Graphics.html#M000153

Project homepage:
http://ruby-pdf.rubyforge.org/pdf-writer/releases.html

Uma G. wrote:

Yes, PDF Writer supports this:
http://ruby-pdf.rubyforge.org/pdf-writer/doc/classes/PDF/Writer/Graphics.html#M000153

Project homepage:
http://ruby-pdf.rubyforge.org/pdf-writer/releases.html

Does PDF Writer actually support manipulating existing PDFs? If I recall
correctly, it can only generate new ones.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs