title: How to define the pdf-object for using Cordova-PDF-Generator?
body: <p>I'm working on a web-app with Cordova and Ionic.
  In this app i installed the Cordova-PDF-Creator for generating PDF-files out of HTML-files (exactly their content).
  The Installation worked fine, but when i try to execute one of the code-examples, i get an error because i haven't defined the variable "pdf".
  Does anybody who uses that plugin know how to define the variable?
  Unfortunately there is no good code example for this on the page of that plugin (<a href="https://www.npmjs.com/package/cordova-pdf-generator" rel="nofollow noreferrer">Cordova-PDF-Generator</a>).</p>
  
  <p>This is the code which is called when i click a button on my test page.</p>
  
  <pre><code>.controller('DashCtrl', function ($scope) {
      $scope.CreatePdf = function () {
          pdf.htmlToPDF({
              url: "http://www.google.es",
              documentSize: "A4",
              landscape: "portrait",
              type: "base64"
          }, this.success, this.failure);
      }
  })
  </code></pre>