Beispiel #1
0
        public void DoSample4()
        {
            string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
            var    pdf  = Sample4.GetSample(path);

            pdf.Output("sample4.pdf", OutputDevice.SaveToFile);
        }
Beispiel #2
0
        public FileStreamResult GetSample4()
        {
            var pdf = Sample4.GetSample(null, CurrentPath);

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

            return(result);
        }
Beispiel #3
0
        public FileStreamResult GetSample4()
        {
            var          pdf    = Sample4.GetSample(Server.MapPath("../bin"));
            string       s      = pdf.Output("ap.pdf", OutputDevice.ReturnAsString);
            MemoryStream m      = new MemoryStream(FPdf.PrivateEncoding.GetBytes(s));
            var          result = new FileStreamResult(m, "application/pdf");

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

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

            return(result);
        }
Beispiel #5
0
 public void DoSample4()
 {
     Sample4.GetSample("sample4.pdf", GetPath());
 }