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);
System.out.println(" processing : " + filename);
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);
Let us know what the issue could be in the first part and is there anything we can try to overcome this issue.