Hello,
Have you tried the code?
Has your issue been resolved?
Thanks for your feedback.
Best Regards,
Sweety
E-iceblue support team
//we got HttpPostedFileWrapper file
Document spireDoc = new Document();
Stream stream = file.InputStream;
spireDoc.LoadFromStream(stream, FileFormat.Auto); //exeption here
Directory.CreateDirectory("C:/eldocs");
spireDoc.SaveToFile("C:/eldocs/test_20171017110556367288.pdf",FileFormat.PDF);
document.LoadFromStream(stream, FileFormat.Html,XHTMLValidationType.None);