Ejemplo n.º 1
0
        public ActionResult Example2()
        {
            //Example 2
            XPdf x = new XPdf();
            x.Path = @"c:\temp\pdf\";

            if (!Directory.Exists(x.Path))
                Directory.CreateDirectory(x.Path);

            System.Security.Policy.Url html = new System.Security.Policy.Url("http://www.google.com");

            x.UrlToPdf(html, "teste");

            return View();
        }
Ejemplo n.º 2
0
        public ActionResult Example2()
        {
            //Example 2
            XPdf x = new XPdf();

            x.Path = @"c:\temp\pdf\";

            if (!Directory.Exists(x.Path))
            {
                Directory.CreateDirectory(x.Path);
            }


            System.Security.Policy.Url html = new System.Security.Policy.Url("http://www.google.com");

            x.UrlToPdf(html, "test2");

            return(View());
        }
 bool IReportMatchMembershipCondition.Check(Evidence evidence, out object usedEvidence)
 {
     usedEvidence = null;
     if (evidence != null)
     {
         System.Security.Policy.Url hostEvidence = evidence.GetHostEvidence <System.Security.Policy.Url>();
         if (hostEvidence != null)
         {
             if ((this.m_url == null) && (this.m_element != null))
             {
                 this.ParseURL();
             }
             if (hostEvidence.GetURLString().IsSubsetOf(this.m_url))
             {
                 usedEvidence = hostEvidence;
                 return(true);
             }
         }
     }
     return(false);
 }