We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

SaveFormat.AsposePdf with pictures to another folder then Windows temporary folder

Is it possible to save the pictures in a different folder then Windows temporary folder, when working with streams? I’d like to use a tempfolder in my webapp.

Thanks for your request. You can use ExportImagesFolder. For example see the following code snippet.

Document doc = new Document("in.doc");
MemoryStream xmlStrm = new MemoryStream();
doc.SaveOptions.ExportImagesFolder = @"C:\Temp";
doc.Save(xmlStrm, SaveFormat.AsposePdf);
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.BindXML(xmlStrm, null);

Hope this helps.
Best regards.