1
任何人都可以告訴我如何使用字節數組創建PDF文件嗎?我嘗試了這兩種方法,但沒有運氣。使用字節數組創建PDF文件c#/ asp.net
1) System.IO.File.WriteAllBytes(filePath, bytesArray);
2) using (System.IO.Stream stream = new System.IO.FileStream(filePath, System.IO.FileMode.Create))
{
stream.Write(bytesArray, 0, bytesArray.Length);
}
或者我需要使用任何第三方組件來做同樣的事情。
任何幫助將不勝感激...提前致謝。
使用[iTextSharp的(http://sourceforge.net/projects/itextsharp/) – mshsayem 2012-04-06 02:50:03