public void DoSample3() { string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); var pdf = Sample3.GetSample(path); pdf.Output("sample3.pdf", OutputDevice.SaveToFile); }
public FileStreamResult GetSample3() { var pdf = Sample3.GetSample(null, CurrentPath); pdf.Buffer.BaseStream.Seek(0, SeekOrigin.Begin); var result = new FileStreamResult(pdf.Buffer.BaseStream, "application/pdf"); return(result); }
public FileStreamResult GetSample3() { var pdf = Sample3.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 GetSample3() { var buffer = Sample3.GetSample(null, CurrentPath); buffer.Seek(0, SeekOrigin.Begin); var result = new FileStreamResult(buffer, "application/pdf"); return(result); }
public void DoSample3() { Sample3.GetSample("sample3.pdf", GetPath()); }