Exemplo n.º 1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     var gc = new Pechkin.GlobalConfig();
     var pechkin = Pechkin.Factory.Create(gc);
     var oc = new Pechkin.ObjectConfig().SetPrintBackground(true).SetLoadImages(true);
     byte[] pdf = pechkin.Convert(new Uri(TextBox1.Text));
     System.IO.File.WriteAllBytes(@"C:\temp\test.pdf", pdf);    
 }
Exemplo n.º 2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            var gc      = new Pechkin.GlobalConfig();
            var pechkin = new Pechkin.Synchronized.SynchronizedPechkin(gc);

            byte[] pdf = pechkin.Convert(new Uri("http://www.google.com"));

            System.IO.File.WriteAllBytes(@"C:\temp\test.pdf", pdf);
        }
Exemplo n.º 3
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            var gc = new Pechkin.GlobalConfig();
            var pechkin = new Pechkin.Synchronized.SynchronizedPechkin(gc);

            byte[] pdf = pechkin.Convert(new Uri("http://www.google.com"));

            System.IO.File.WriteAllBytes(@"C:\temp\test.pdf", pdf);    
        }
Exemplo n.º 4
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            var gc      = new Pechkin.GlobalConfig();
            var pechkin = Pechkin.Factory.Create(gc);
            var oc      = new Pechkin.ObjectConfig().SetPrintBackground(true).SetLoadImages(true);

            byte[] pdf = pechkin.Convert(new Uri(TextBox1.Text));
            System.IO.File.WriteAllBytes(@"C:\temp\test.pdf", pdf);
        }