There are two solutions for this:
- You have to create a page /Contents array and put the image drawing
operators in the first element of this array, surrounded by save/restore
operators ("q" and "Q"). You put the rest of the page content in the second
element of the above /Contents array. I don't think PoDoFo have facilities
to configure this setup easily but it  shouldn't be that hard to do
manually;
- The second solution may not be exactly what you're looking for but it's
easy to implement: you add a transparency (alpha) layer in your png and add
the image as such, ensuring a /SMask key is actually added to the image in
the PDF. In this way the text colors of the image are blended together the
background text.

On Fri, 11 Feb 2022 at 06:55, 工作邮箱 <iwifi...@163.com> wrote:

> Hi,
>
>     I compiled podofo and can place a png picture in pdf file,but the
> picture is above the word layer,could someone tell me how to place a png
> picture below the word layer.
>
>
>
> Kindly regards,
>
> Alex
>
>
>
> _______________________________________________
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to