Free Support Forum - aspose.com

PDF -> Image- bad colour & kerning

Hi,


Not sure if i am doing something wrong but the quality of Pdf Kit image conversion seems to be really bad.

I tried several random PDFs and they all had color problems, kerning problems etc.

Here is a screenshot of adobe reader displaying the PDF followed by what PDF kit outputs.

http://img827.imageshack.us/img827/704/adbrder.jpg
http://img821.imageshack.us/img821/180/page1ew.jpg

Is my trial license not getting applied perhaps and its applying some limitations? Thanks for any help.


Code is:

License license = new License();
FileInputStream licenseStream = new FileInputStream(“Aspose.Total.Java.lic”);
license.setLicense(licenseStream);
File dir = new File(“D:\Temp\pdf\”);
String[] files = dir.list();
for(String file : files){
if(file.endsWith(".pdf")){

File outputDir = new File(“D:\Temp\pdf\output.” + file);
outputDir.mkdir();
PdfConverter converter = new PdfConverter();
converter.bindPdf(“D:\Temp\pdf\” + file);
converter.doConvert();
String prefix = “D:\Temp\pdf\output.” + file + “\page-”;
String suffix = “.bmp”;
int imageCount = 1;
while (converter.hasNextImage())
{
converter.getNextImage(prefix + imageCount + suffix, ImageType.BMP);
imageCount++;
}
}
}
}catch(Exception ex){
ex.printStackTrace();
}

Hi Darren,


Thanks for using our products.

Can you please share the sample PDF file so that we can test the scenario at our end. Please note that the trial version provides the same set of features as offered in licensed version but the only difference is that the output generated with trial version contains evaluation watermark.

We are sorry for this inconvenience.

You can download it here:

http://ns.wilson.com/golf/catalogs/2012_Catalogs/2012_US_catalog.pdf


Thanks

Hi Darren,


Thanks for sharing the resource file link. I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as
PDFKITJAVA-33262. We
will investigate this issue in details and will keep you updated on the status
of a correction.

We
apologize for your inconvenience.