Convert SVG to PST using Python
SVG to PST conversion in your Python Applications without installing Microsoft Word® or Outlook.
Why to Convert SVG to PST?
The Portable Document Format (PDF) is a widely used file format for documents. It is used to store and share documents, and is supported by most operating systems. However, the PDF format is not suitable for all applications. For example, if you need to edit a document, the PDF format is not suitable. In such cases, it is necessary to convert the PDF file to a different format, such as PST.
How Aspose.Total Helps for SVG to PST Conversion?
Aspose.Total for Python via .NET is a full package of various APIs dealing different formats including Email, Images and Microsoft Word formats. It provides a two-step process for converting SVG to PST. Firstly, the Word file is loaded and rendered into HTML via Aspose.Words for Python via .NET. Secondly, the converted HTML is loaded using Aspose.Email for Python via .NET and saved into PST format. This makes the conversion process easy and automated using Python.
How to Convert SVG to PST in Python
- Open the source SVG file using Document class
- Call the
save
method while specifying output HTML file path and relevant HTML Save options as parameter. So your SVG file is converted to HTML at the specified path - Now Load the saved HTML file using MailMessage.load
- Call the save method with relevant file path. So finally the SVG is converted
Conversion Requirements
- For SVG to PST conversion, Python 3.5 or later is required
- Reference APIs within the project directly from PyPI ( Aspose.Words and Aspose.Email )
- Or use the following pip command
pip install aspose.words
andpip install Aspose.Email-for-Python-via-NET
- Moreover, Microsoft Windows or Linux based OS (see more for Words and Email ) and for Linux check additional requirements for gcc and libpython and follow step by step instructions INSTALL