Hello,

There is the “darken” blend mode. But It may not be exactly what you are 
looking for: it composes the result by taking the darkest colour between the 
image and the background.

PdfExtState graphics_state(&doc2);
graphics_state.SetBlendMode(ePdfBlendMode_Darken);
painter.SetExtGState(&graphics_state);

painter.DrawImage(…)

To really paint the image below the page content, the only solution I see is to 
edit the page content stream and insert the image painting (Do operator) at the 
beginning (something rather tricky to do …)

Etienne

On 27 Sep 2017, at 09:40, MINNE DENIS 
<denis.mi...@vivaqua.be<mailto:denis.mi...@vivaqua.be>> wrote:

Hello.

First, i want to thank you for this program.
I’m trying to use the source code to create a program to add an image on an 
existing PDF.
I have used your programs, but the image is placed on the front of the document 
and the information’s on the page are hidden by the image.
Is it possible to force the image to be placed behind all other data’s


PdfMemDocument doc2( "0100100.PDF" );
PdfImage image(&doc);

image.LoadFromFile("DUPLICATA5.tif");

PdfPage* pPage = doc.GetPage(0);
painter.SetPage(pPage);
painter.DrawImage( 0, 0, &image, 1, 1 );
painter.FinishPage();

doc.Write("test3.pdf");




Thank you!

Denis Minne


[http://www.vivaqua.be/facebook.png] Rejoignez-nous sur Facebook - Volg ons op 
Facebook
DISCLAIMER Pensez à l'environnement, n'imprimez cette page et ses annexes que 
si c'est nécessaire. Ce message électronique, y compris ses annexes, est 
confidentiel et réservé à l’attention de son destinataire.  Si vous n'êtes pas 
le destinataire de ce message, merci de le détruire et d’en informer 
l’expéditeur. Toute divulgation, copie ou utilisation de ce mail est dans ce 
cas interdite. La sécurité et l'exactitude des transmissions de messages 
électroniques ne peuvent être garanties. Denk aan het milieu; druk deze pagina 
en de bijlagen alleen af als het nodig is. Dit e-mailbericht (inclusief zijn 
bijlagen) is vertrouwelijk en is uitsluitend bestemd voor de geadresseerde. Als 
dit bericht niet voor u bestemd is, wordt u verzocht het te wissen en de 
afzender te informeren. Het is in dat geval niet toegestaan dit bericht te 
verspreiden, te kopiëren of te gebruiken. We kunnen niet garanderen dat de 
gegevensoverdracht via het internet veilig en nauwkeurig is.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org<http://slashdot.org/>! 
http://sdm.link/slashdot_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net<mailto:Podofo-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/podofo-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to