PST to PDF


#1

how to save pst attachment into pdf format?


Convert PST to MBox
#2

@alibardisk,

There is no direct way to convert messages from PST to PDF. However, you can convert extracted MapiMessage to Mhtml using:

msg.Save("out.mhtml", SaveOptions.DefaultMhtml);

and then use Aspose.Words API to load this MHTML and convert to PDF. Please let us know if you have any further query in this regard.


#3

No no Sir…
I just want to save all the attachment into pdf format which are extracted from the pst mapimessage…
how can i do this??


#4

@alibardisk,

Aspose.Email API lets you extract attachments from messages, but as mentioned earlier it doesn’t have any ability to convert media to PDF directly. However, you can extract the attachments from email using Aspose.Email API and then use our other APIs for conversion to PDF.

For example, if attachment is Excel file, you can extract and then use Aspose.Cells API for conversion to PDF. Similarly, if attachment is Word document, you can extract and then use Aspose.Words API for conversion to PDF. Please let us know if you have any further query in this regard.


#5

how to get the size of a mapimessage??


#6

@alibardisk,

You can use the:

MapiMessage.Properties[MapiPropertyTag.PR_MESSAGE_SIZE].GetLong();

property to get message file size from PST file.


#7

thank you sir…


#8

FolderInfoCollection folderInfoCollection = pst.RootFolder.GetSubFolders();
I use this process to fetch the folders from a pst file.But some folders are not fetched which are are already present in the pst file.Please give me any hint for solve this issue??


#9

@alibardisk,

Please share your sample PST file along with sample runnable code with us for further investigation at our end.


#10

how do i add string value as status into a exchangemapitask?


#11

And also add status into mapitask??


#12

A post was split to a new topic: Subfolder on Office365


#13

@alibardisk,

Can you please share a sample MSG file with us where string value can be set to a task using MS Outlook? Please check Creating new task for setting task’s status using the API and let us know if it doesn’t meet your needs.