# Load personal storage PST or OST with options Learn this article and check how to load and convert PST/OST documents with advanced options using GroupDocs.Conversion for .NET API. GroupDocs.Conversion provides [PersonalStorageLoadOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/personalstorageloadoptions) to give you control over how the source personal storage (PST/OST) document will be processed. The following options could be set: | Option | Description | |--------|-------------| |**[ConvertOwned](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/personalstorageloadoptions/convertowned)** | Controls whether owned documents of the document container must be converted. | |**[ConvertOwner](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/personalstorageloadoptions/convertowner)** | Controls whether the document container itself must be converted. If this property is true the document container will be the first converted document. | |**[Depth](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/personalstorageloadoptions/depth)** | Controls how many levels in depth to perform the conversion. | |**[Folder](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/personalstorageloadoptions/folder)** | A folder to be processed. Default is Inbox. | ### Get folders from personal storage The following code snippet shows how to get folders within the personal storage document: ```csharp using (Converter converter = new Converter("sample.pst")) { var documentInfo = converter.GetDocumentInfo(); var ostInfo = (PersonalStorageDocumentInfo) documentInfo; Console.WriteLine(ostInfo.RootFolderName); foreach (var folder in ostInfo.Folders) { Console.WriteLine(folder); } } ``` ### Convert each personal storage content to different formats The following code snippet shows how to convert each personal storage content to a different format based on the content type: * JPG attachments will be converted to PNG * DOCX attachments will be converted to PDF * Emails and all other types will be converted to HTML ```csharp using (Converter converter = new Converter("sample.pst", (LoadContext loadContext) => { if (loadContext.SourceFormat == EmailFileType.Ost) { return new PersonalStorageLoadOptions { Folder = "Inbox", }; } if (loadContext.SourceFormat == EmailFileType.Msg) { return new EmailLoadOptions { ConvertOwner = true, ConvertOwned = true, Depth = 2 }; } return null; })) { int index = 0; converter.Convert((SaveContext saveContext) => { string fileName = $"converted_{++index}.{saveContext.TargetFormat.Extension}"; return new FileStream(fileName, FileMode.Create); }, (ConvertContext convertContext) => { if (convertContext.SourceFormat == ImageFileType.Jpg) { return new ImageConvertOptions { Format = ImageFileType.Png }; } if (convertContext.SourceFormat == WordProcessingFileType.Docx) { return new PdfConvertOptions(); } return new WebConvertOptions(); }); } ```