MSG file words become vertical when converting to PDF


#1

Hi Aspose Support,
output pdf msg to pdf.pdf (28.3 KB)

when converting a msg file to PDF using Aspose.Email and Aspose,Words, the words in the signature become vertical. Example :

.
a
a
b
.

Could you advise on this issue? Please see attached sample file for reference.

Code used for converting :
MailMessage m = MailMessage.load(myDir + inputfile);
m.save(myDir + fileNameNoExt + “.mhtml”); //, SaveOptions.getDefaultMhtml()
com.aspose.words.Document doc;
doc = new com.aspose.words.Document(myDir + fileNameNoExt + “.mhtml”);
for (int i=0;i< doc.getSections().toArray().length; i++){
doc.getSections().get(i).getPageSetup().setOrientation(Orientation.PORTRAIT);
doc.getSections().get(i).getPageSetup().setPaperSize(PaperSize.A4);
}
doc.save(myDir + workingFileName, SaveFormat.PDF);

Thanks.msg to pdf vertical.zip (67.7 KB)


#2

@dustin00,

I have worked with the sample file shared by you and have been able to observe the issue. An issue with ID EMAILJAVA-34581 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.


#3

Hi @mudassir.fayyaz,

Thanks.
Is there any update on the cause of this issue so that we can avoid or workaround it while the issue is being resolved as we want to avoid this issue when doing the conversion in our work?


#4

@dustin00,

Can you please provide the MHTML file generated on your end using Aspose.Email for Java 19.8. It seems to be an issue with Aspose.Words if the MHTML file is same as source file.


#5

Please find the generated mhtml file using Aspose Email 19.8
generated 19.8 mhtml file.zip (995 Bytes)
Thanks.


#6

@dustin00,

I have observed the MHTML file shared by you and it seems to same as MSG file when viewed in MS Word. Can you please confirm this. In that case, I will request Aspose.Words team to further look into this as Aspose.Email only generates MHTML, which in my opinion is fine. The rendering of MHTML to PDF is performed using Aspose.Words.


#7

Hi, yes, can confirm that when viewing the MHTML file, it is still looks the same as when viewing the MSG file. Issue is when converted to PDF.


#8

@dustin00,

We have tested the scenario using the latest version of Aspose.Words and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-19206. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.