Exemple #1
0
        public FileStreamResult GetSample8()
        {
            var pdf = Sample8.GetSample(null, CurrentPath);

            pdf.Buffer.BaseStream.Seek(0, SeekOrigin.Begin);
            var result = new FileStreamResult(pdf.Buffer.BaseStream, "application/pdf");

            return(result);
        }
        public FileStreamResult GetSample8()
        {
            var pdf    = Sample8.GetSample(Server.MapPath("../bin"));
            var s      = pdf.Output("ap.pdf", OutputDevice.ReturnAsString);
            var m      = new MemoryStream(FPdf.PrivateEncoding.GetBytes(s));
            var result = new FileStreamResult(m, "application/pdf");

            return(result);
        }
        public FileStreamResult GetSample8()
        {
            var buffer = Sample8.GetSample(null, CurrentPath);

            buffer.Seek(0, SeekOrigin.Begin);
            var result = new FileStreamResult(buffer, "application/pdf");

            return(result);
        }
Exemple #4
0
 public void DoSample8()
 {
     Sample8.GetSample("sample8.pdf", GetPath());
 }