Hi all,

I'm new with this library, so I need your help for (I think) a very simple
issue.
All that I have to do is to add an image in an existing pdf (not a created
one with podofo).
I try the example in test/CreationTest/CreationTest.cpp, but it doesn't
work (no errors, just there isn't the image in the positon of the page that
I consider).

This is my code:

PdfMemDocument document("path/to/existing/document.pdf");
PdfPage * p;
p=document.GetPage(0); //the page in which I want to insert my image
painter.SetPage( p );
PdfImage image( &document );
image.LoadFromFile("path/to/my/image.png");
painter.DrawImage( 70.0, writer.GetPage(0)->GetPageSize().GetHeight() -
image.GetHeight(), &image );

No errors, but my image is missing. Maybe is there another way?
Thanks for your support.
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to