文件流轉換成pdf
#region 文件流文件轉換成pdf byte[] fileData = (byte[])jo["PDFLabel"]; string fileName = o.OrderExpreNum + ".pdf"; String dirPath = Server.MapPath("/Content/print/pdf"); if (!Directory.Exists(dirPath)) Directory.CreateDirectory(dirPath); string filePath = Path.Combine(dirPath, fileName); FileStream fs = new FileStream(filePath, FileMode.Create); fs.Write(fileData, 0, fileData.Length); fs.Close(); #endregion