= new jsPDF('p', 'pt', 'letter');
      pdf.text(20, 20, 'Hello');
      pdf.addPage();
      pdf.text(20, 20, 'PDF');
      pdf.addPage();
      pdf.text(20, 20, 'World');

      pdf.addPage();
      pdf.text(20, 20, 'More');

      var node = pdf.outline.add(null, 'Test Pages', null);
      pdf.outline.add(node, 'Hello', {pageNumber:1});
      pdf.outline.add(node, 'PDF', {pageNumber:2});
      pdf.outline.add(node, 'World', {pageNumber:3});

      var node = pdf.outline.add(null, 'More Pages', null);
   