Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        public FileStreamResult GetSample5()
        {
            var buffer = Sample5.GetSample(null, CurrentPath);

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

            return(result);
        }
Ejemplo n.º 5
0
        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();
        }
Ejemplo n.º 6
0
 public void DoSample5()
 {
     Sample5.GetSample("sample5.pdf", GetPath());
 }