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

PDF to PNG Image

$
0
0

Hi,

 

We are converting PDF page to PNG image by using below code:

 

  ASCab config = ASCabNew();

  ASCabPutInt (config, kExtractImgCmdKeyColorSpace, kColorSpaceAuto);
  ASCabPutInt (config, kExtractImgCmdKeyResolution, kImgResolutionAuto);
  ASCabPutBool(config, kExtractImgCmdKeyConfigured,true);
  ASCabPutInt(config, kExtractImgCmdKeyConvFormat, kImgConversionFormatPng); 
  AVConversionStatus bSucceeded = AVConversionConvertFromPDFWithHandler(convFromPDFFilter.handler, config,  kAVConversionNoFlags,
        pdPageDoc, outPath, fileSys, NULL);

 

But out image file is wrong.(Viewer can't open this picture because the file appears to be demaged, corrupted, or is too large)

 

Please help us to resolve the problem.

 

Thanks


Viewing all articles
Browse latest Browse all 10848

Trending Articles



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