title: SelectPdf fails to properly generate pdf that needs to look like the rendered version of our ASPX page
body: <p>Here is the information about my development environment:</p>
  
  <p>-Microsoft Visual Studio Professional 2013</p>
  
  <p>-.NET Framework 4.0</p>
  
  <p>-jquery.min.js ( 1.11.3 ) </p>
  
  <ul>
  <li>jquery-ui.min.js ( 1.11.2 )</li>
  </ul>
  
  <p>-Select.HtmlToPdf  (2.0.1.0)</p>
  
  <p>-jQuery DataTables (1.10.7)</p>
  
  <p>In our application, we have an ASPX page with dynamically populated jquery DataTables and a graph that is dynamically generated using jquery at runtime.</p>
  
  <p>We were hoping to use Select.HtmlToPdf  (2.0.1.0) to create pdf file that will look like the aforementioned ASPX page when it renders in a web browser.</p>
  
  <p>In our ASPX page, we have a download pdf ASPX server-side button, that invokes the following C# method defined within the ASPX code behind file:</p>
  
  <pre><code>        public void generatePDF()
          {
  
  
              // instantiate a html to pdf converter object
              HtmlToPdf converter = new HtmlToPdf();
  
                          var url =
      HttpContext.Current.Server.MapPath("~/hos/pdf/displayTemplate.html");
          Console.WriteLine(url.ToString());
  
          SelectPdf.GlobalProperties.HtmlEngineFullPath =
  HttpContext.Current.Server.MapPath("~/hos/pdf/SelectPdfAuxiliaries/Select.Html.dep");
  
          PdfDocument doc = converter.ConvertUrl(url.ToString());
  
          // save pdf document
          doc.Save(Response, false, "displayContent.pdf");
  
          }
  </code></pre>
  
  <p>The displayTemplate.html contains AJAX jquery functions that will invoke an ASHX handler:</p>
  
  <pre><code>    function GetHandlerTestJS() {
          var testHandlerData = new FormData();
          testHandlerData.append("handlerTestId", "1");
          $.ajax({
              type: "Post",
              contentType: "application/json; charset=utf-8",
              url: "testHandler.ashx",
              enctype: 'multipart/form-data',
              contentType: false,
              processData: false,
              data: testHandlerData,
              dataType: "json",
  
              success: function (data) {
                  $('#handlertestDebug').html(data);
                  //getSignatureImage();
              },
              error: function (Result) {
                  $('#handlertestDebug').html("error in handler test"); $('#handlertestResultDebug').html(Result);
              }
              //beforeSend: function () { $('#loader').show() }, //complete: function () { $('#loader').hide(); }
          });
      }
  
      $(function () {
          $(document).ready(function () {
              console.log("Inside Start");
              GetHandlerTestJS();
          });
      });
  </code></pre>
  
  <p>The problem is that there is Failure to invoke the ASHX handler when using the Select.HtmlToPdf  (2.0.1.0)'s API method called ConvertUrl :</p>
  
  <pre><code>   PdfDocument doc = converter.ConvertUrl(url.ToString());
  </code></pre>
  
  <p>Could someone please tell me what changes I need to make to the aforementioned code in such a way that it will invoke the handler from html using Select.HtmlToPdf  (2.0.1.0)'s API ?</p>