Exemple #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);    
 }
Exemple #2
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);
        }