I'm using Delphi. My goal is to add an image to an existing document.
My image is store in a bitmap in memory at the moment.
I open my document with PXCp_ReadDocumentW.
So I can't use PXC_AddImageFromHBITMAP (I tried and I have an access violation), normal, isn't it ?
On an other way, I use PXCp_AddWatermark, and it works perfectly

So the idea is to use PXCp_AddWatermark to print an image to my doc, but this function only loads
a bitmap from disk, not from memory... not very performant i I have to write my bitmap on disk just to be read by this function....
Maybe I'm totally in the wrong way.
What's the better solution to add an image (I have a HBitmap) to my existing PDF ?
Thank you !