public void DoSample5() { string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); var pdf = Sample5.GetSample(path); pdf.Output("sample5.pdf", OutputDevice.SaveToFile); }
public FileStreamResult GetSample5() { var pdf = Sample5.GetSample(null, CurrentPath); pdf.Buffer.BaseStream.Seek(0, SeekOrigin.Begin); var result = new FileStreamResult(pdf.Buffer.BaseStream, "application/pdf"); return(result); }
public FileStreamResult GetSample5() { var pdf = Sample5.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 GetSample5() { var buffer = Sample5.GetSample(null, CurrentPath); buffer.Seek(0, SeekOrigin.Begin); var result = new FileStreamResult(buffer, "application/pdf"); return(result); }
public void TestBasicTypesEqualityOuterUsingPrivateFields() { Sample5 obj1 = new Sample5(); Sample5 obj2 = new Sample5(); EqualityHelper helper = new EqualityHelper(typeof(Sample5)); helper.Add("IntProp").Add("StringProp"); helper.ObjectEquals(obj1, obj2).Should().Be.True(); }
public void DoSample5() { Sample5.GetSample("sample5.pdf", GetPath()); }