Gif to pdf conversion issue only with the attached file

Hi,

We encountered an issue when we were converting a GIF file to a PDF file. We are able to convert many other GIF files, but there is this one file (see attachment) which seems to fail during the final save.

I have a code snippnet which does this conversion…

Pdf pdf = new Pdf();
aspose.pdf.Section sec1 = pdf.getSections().add();
Image img1 = new Image(sec1);
img1.getImageInfo().setFile(infilename);
sec1.getParagraphs().add(img1);
System.out.println(" processing : " + filename);
pdf.save(outfilename);

We have tried to achieve the conversion with the same set of files using the following code, the conversion succeeds for all the files, but have found that the images are getting truncated in their respective PDF files.

com.aspose.words.Document doc = new com.aspose.words.Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertImage(infilename);
doc.save(outfilename);

Let us know what the issue could be in the first part and is there anything we can try to overcome this issue.
Thanks,
Umesh Veeraiah

Hi Bob,


Thanks for your inquiry.I have reproduced the reported issue at my end and logged as PDFJAVA-33182 in our issue tracking system for further investigation and resolution. I have also linked your request to it, you will be notified via this thread once it’s resolved.

Sorry for the inconvenience.

Best Regards