title: How to create pdf from another link
body: <p>I want to generate pdf from another website, because this html page are unnecessary items.
  I used libraries jspdf, jquery .ajax and my code looks like this:</p>
  
  <pre><code>        &lt;script src='http://mrrio.github.io/jsPDF/dist/jspdf.debug.js'&gt;&lt;/script&gt;
  
          &lt;script type="text/javascript" src="http://cdn.rawgit.com/niklasvh/html2canvas/0.5.0-alpha2/dist/html2canvas.min.js"&gt;&lt;/script&gt;
  
      $('#create_pdf').on('click',function(){
      var doc = new jsPDF('p','px','a4');
  
      var source1 = '';
      var
          form = '', term='';
          $.ajax({
               type: "get",
               url: "clients.php",
               dataType: "html",async: false,
  
                data: {
                  term: term
                },
                success: function( data ) {
                     source1= data ;
                }
              });
      //alert($(source1).find('.container').eq(1).html());
  
  
      doc.addHTML(source1,options,function() {
          var string = doc.output('datauristring');
          $('.preview-pane').attr('src', string);
      });
  });
  </code></pre>
  
  <p>It does not work, but alert give me html positive result.</p>
  
  <p>Question 2.
  How can I generate a PDF to use a different css file (eg. The media = print) to add and delete items in a PDF and print. html2canvas not using media=print</p>