FPDF image under layout

Novo picture Novo · Nov 8, 2011 · Viewed 14.1k times · Source

I import a PDF file with 2 pages using fpdi, it works.

I need to insert an image in my imported pdf but its in under the original pdf layout so I cant see the image that i want to insert. By the way, I can add text and it works properly.

I do the same thing in the second page of my pdf and it works, i can see the image (jpg and png). In my 2nd page of my original pdf I dont have any layout/image coming from the original imported pdf.

I need a z-index property like in css/html

SOURCE: http://pastebin.com/45BEY7fw

Answer

Mário Rodrigues picture Mário Rodrigues · Nov 8, 2011

Try this: http://forums.devshed.com/php-development-5/fpdf-background-image-510220.html

Since you are importing data from a PDF file I don't know how it handles it. Are you getting elements as text or image? I guess that you are trying to get an image-converted PDF (you're reading an image, like a snapshot of the page, and not text items) over an image on the background. I guess that this won't work if the original PDF conversion was made with JPG.

Let me know if that's happening.