// --------------------------------------------------------------------------- public void Write(Stream stream) { using (ZipFile zip = new ZipFile()) { MovieTemplates m = new MovieTemplates(); byte[] pdf = Utility.PdfBytes(m); zip.AddEntry(RESULT, new TimetableDestinations().ManipulatePdf(pdf)); zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), pdf); zip.Save(stream); } }
// --------------------------------------------------------------------------- public void Write(Stream stream) { using (ZipFile zip = new ZipFile()) { MovieTemplates m = new MovieTemplates(); byte[] mPdf = Utility.PdfBytes(m); zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), mPdf); InspectPageContent i = new InspectPageContent(); zip.AddEntry(RESULT, i.InspectPdf(mPdf)); zip.Save(stream); } }
// --------------------------------------------------------------------------- public void Write(Stream stream) { using (ZipFile zip = new ZipFile()) { MovieTemplates m = new MovieTemplates(); byte[] pdf = Utility.PdfBytes(m); PrintTimeTable p = new PrintTimeTable(); zip.AddEntry(RESULT, p.ManipulatePdf(pdf)); zip.AddEntry(RESOURCE, p.jsString); zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), pdf); zip.Save(stream); } }
// --------------------------------------------------------------------------- public void Write(Stream stream) { MovieTemplates mt = new MovieTemplates(); byte[] pdf = Utility.PdfBytes(mt); PdfReader reader = new PdfReader(pdf); using (ZipFile zip = new ZipFile()) { reader.SelectPages("4-8"); zip.AddEntry(RESULT1, ManipulateWithStamper(reader)); /* * can't figure out __WHY__, but if i don't reset the reader the example * will __NOT__ work! */ reader = new PdfReader(pdf); reader.SelectPages("4-8"); zip.AddEntry(RESULT2, ManipulateWithCopy(reader)); zip.AddEntry(Utility.ResultFileName(mt.ToString() + ".pdf"), pdf); zip.Save(stream); } }