コード例 #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);
        }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: rd2sistemas1/EgoPDF
        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);
        }
コード例 #3
0
        public FileStreamResult GetSample8()
        {
            var buffer = Sample8.GetSample(null, CurrentPath);

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

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