swy
October 17, 2023, 8:51pm
1
Hi. Aspose Words successfully converts the following Mime Types to PDF:
DOC
DOCX
JPG
TXT
HTM
HTML
DOTX
DOCM
RTF
ODT
PNG
However, the following Mime Types result in a UnsopportedFileFormatException
XLSX
XLS
MSG
PUB
PPTX
PPT
JPEG
Should I be using a different library to convert files of the above type to PDF…?
@swy This is an expected behavior. Please see our documentation to learn what documents formats are supported by Aspose.Words:
https://docs.aspose.com/words/net/supported-document-formats/
For processing XLSX
and XLS
Excel documents, you should use Aspose.Cells .
To convert MSG
message to PDF it is required to use Aspose.Email + Aspose.Words:
Aspose.Email.MailMessage msg = Aspose.Email.MailMessage.Load(@"C:\Temp\in.msg");
msg.Save(@"C:\Temp\tmp.mhtml", Aspose.Email.SaveOptions.DefaultMhtml);
Aspose.Words.Document doc = new Aspose.Words.Document(@"C:\Temp\tmp.mhtml");
doc.Save(@"C:\Temp\out.pdf");
Aspose.PUB can be used for processing PUB
files.
MS PowerPoint PPTX
and PPT
formats can be processed using Aspose.Slides .
swy
October 18, 2023, 8:50am
3
Hi Alexey. Thank you for the information - very useful indeed!
Can you please tell me about JPEG? JPG seems to work fine using the insert image function, but not JPEG.
Looking at the supported document formats, JPG is not listed, but seems to work.
@swy JPG and JPEG is the same image format. If you encounter problem with inserting image into the document, please attach the problematic image here for testing. Also please see our documentation to learn how to convert images to PDF using Aspose.Words:
https://docs.aspose.com/words/net/convert-a-document-to-pdf/#convert-an-image-to-pdf
swy
October 20, 2023, 8:14am
5
Hi @alexey.noskov is there a single library and licence that can be used for all of the products you mentioned?
@swy There is Aspose.Total license that includes all Aspose products.