Hi. I am converting msg files to a pdfs (in Java). Example code below.
But some images & tables are cut off at the right-hand edge.
How do I change the code below so that images & tables are not cut off in the PDF?
String sourceFile = “C:\TestFiles\15.msg”;
String outFile = “C:\TestFiles\Aspose\15.pdf”;
FileInputStream fstream = new FileInputStream(sourceFile);
MailMessage msg = MailMessage.load(fstream);
ByteArrayOutputStream msgStream = new ByteArrayOutputStream();
msg.save(msgStream, SaveOptions.getDefaultMhtml());
LoadOptions lo = new LoadOptions();
lo.setLoadFormat(LoadFormat.MHTML);
com.aspose.words.Document doc = new com.aspose.words.Document(new ByteArrayInputStream(msgStream.toByteArray()),lo);
doc.save(outFile, SaveFormat.PDF);
thanks