# Background image in pdf ... how?

**URL:** <https://www.ruby-forum.com/t/background-image-in-pdf-how/151089>\
**Category:** Ruby\
**Created:** [October 16, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/background-image-in-pdf-how/151089 "2008-10-16T17:31:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![friofool](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/6de8d8/32.png) [@friofool](https://www.ruby-forum.com/u/friofool)\
**Post date:** [October 16, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/background-image-in-pdf-how/151089/1 "2008-10-16T17:31:44Z")

</div>

Hi all,

I’m looking for a tool to create a pdf file with a background image  
embedded.

I have to make invoice with a specific background and put details orders  
on the top of this background.

Did you know a library to do that ?

I have already used pdf:writer but i didn’t find how to do that.

Thanks for your help !

---

<div class="post-metadata">

**Author:** ![friofool](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/6de8d8/32.png) [@friofool](https://www.ruby-forum.com/u/friofool)\
**Post date:** [October 16, 2008, 5:53pm UTC](https://www.ruby-forum.com/t/background-image-in-pdf-how/151089/2 "2008-10-16T17:53:56Z")

</div>

On Thu, Oct 16, 2008 at 11:31 AM, Frioffol F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I have already used pdf:writer but i didn’t find how to do that.  
> You could do this easily in Prawn (or PDF::Writer) by just calling  
> image on each page.  
> Please try to use Prawn instead of PDF::Writer if possible. It will  
> be the way forward for the Ruby PDF project, and PDF::Writer will  
> eventually be deprecated.

[http://prawn.majesticseacreature.com/](http://prawn.majesticseacreature.com/)

If you have further questions, please join the Prawn list:

[http://groups.google.com/group/prawn-ruby](http://groups.google.com/group/prawn-ruby)

-greg
