Insert image in a pdf

Hi Railers,

How to insert an image saved at C:/Rails/asd.jpg into a pdf

I tried

logo = “#C:/Rails/asd.jpg”

pdf.image logo

It is giving me an error: image file is an unrecognised format

may the railers throw some light to help me!!

Premanshu

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