title: jsPDF change page format
body: <p>I have a function to set a footer on a page. But I want to make the code more flexible and add an if statement where I want it to set the footer on a different position when the document is an 'a4' or a3'.</p>
  
  <pre><code>function footer(){
      doc.setFontSize(11);
      doc.text(180,280, 'Seite ' + doc.page);
      doc.page ++;
      }
  </code></pre>
  
  <p>But I can't find the paramater to change the format after the page has been initiated:</p>
  
  <pre><code>var doc = new jsPDF('p', 'mm', 'a4');
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>doc.format('a3');
  doc.setFormat = 'a3';
  doc.setPageFormat('a3');
  </code></pre>
  
  <p>but none works.</p>
  
  <p>Does someone know the paramater to change page format anywhere in the code even after "new jsPDF" initiation? Or does this simply not work?</p>
  
  <p>Thanks in advance!</p>