Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Re: PDEImageCreate

$
0
0

Thanks for your reply

I think found the problem but I cant solve this?

I generate img2 from img1 with same attributes and details(in first post I post the code for copy image)

then I decide compare these two PDEElement ,  for image data i get error as i describe below

first get data from img one without any problem (img1 is source image)

 

ASInt32 pdiLen1 = PDEImageGetDataLen(img1);

byte *imgBuf1 = (byte *)malloc(pdiLen1);

PDEImageGetData(img1, 0, imgBuf1);

 

but when get data from img2 ( copy from img1) whit below codes

 

ASInt32 pdiLen2 = PDEImageGetDataLen(img2);

byte *imgBuf2 = (byte *)malloc(pdiLen2);

PDEImageGetData(img2, 0, imgBuf2);

 

I get error with code 1073741826 I think must be a problem in img2 and for this reason when i want show element adobe cant show any thing and blank page will display

do you know what is the problem ?

thanks for your attention


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>