Using C#, .Net 2.0, I have a PDF in a Byte Array that I successfully put into a MemoryStream. However, when I create a Pdf object using that MemoryStream, the Pdf object is empty. How can I open an existing PDF that I have stored in a MemoryStream or Byte Array so that I can modify it and return it via the MemoryStream?<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
private MemoryStream AlterPdf(MemortyStream ms)
// ms.Length > 1000 and is a valid PDF
Pdf pdfDoc = new Pdf(ms);
// pdfDoc.PageCount returns 0 here??
//set properties on pdfDoc