thank u for your spire.pdf component,now I meet a question when using some of methods of this component,please help me
public ActionResult SaveFile(string username)
{
HttpPostedFileBase uploadfile = Request.Files[0];
uploadfile.SaveAs("f:\\1.pdf");
if (".pdf".Split(',').Contains(Path.GetExtension(uploadfile.FileName).ToLower()))
{
Spire.Pdf.PdfDocument pdf = new Spire.Pdf.PdfDocument();
pdf.LoadFromStream(uploadfile.InputStream);
if (pdf.Pages.Count < 1)
{
pdf.Dispose();
return Content("false|the pdf is empty!");
}
pages = pdf.Pages.Count;
doctext = pdf.Pages[0].ExtractText();
pdf.Dispose();
}
uploadfile.SaveAs("f:\\2.pdf");
}
the result,the 1.pdf has 0 bytes,and the 2.pdf has the normal number of bytes,then why?