Image ruined after extraction from PDF with PdfConverter

Hello,

Executing the following code on the attached document produces an image that is ruined compared to the original.


PdfConverter converter = new PdfConverter();

converter.bindPdf(in);
converter.doConvert();

if (converter.hasNextImage())
{
converter.getNextImage(out, ImageType.PNG);
}

It also writes the following on the terminal:

com/aspose/pdf/kit/res/font/Identity-H: jar:file:/var/local/apache-tomcat-5.5.23/temp/pincette.efe1c560-bc5c-fe1d-2f4b-972c735b02e4.tmp/configuration/modules/aspose-pdf-kit-4.2.0.jar!/com/aspose/pdf/kit/res/font/Identity-H
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
com/aspose/pdf/kit/res/font/Identity-H: jar:file:/var/local/apache-tomcat-5.5.23/temp/pincette.f17b9f40-bc5c-fe1d-b96c-a5e3b68315ab.tmp/configuration/modules/aspose-pdf-kit-4.2.0.jar!/com/aspose/pdf/kit/res/font/Identity-H

Best regards,

Werner.

Hi Werner,


Thanks for contacting support.

I
have tested the scenario with Aspose.Pdf.Kit for Java 4.3.0 and I am able to convert PDF file into Image format but there are some issues in resultant image file.

  1. Space between characters on first page is being ignored (characters are mangled)
  2. Vertically aligned purple string in PDF file is appearing as Blue in resultant Image
  3. Purple color is appearing as Blue
  4. leerplan string present in purple circle in source PDF is missing in resultant Image file
  5. Red color circles have incorrect shading.
For the
sake of correction, I have logged it in our issue tracking system as PDFKITJAVA-33232. We
will investigate this issue in details and will keep you updated on the status
of a correction.

We apologize for your inconvenience