title: Ionic - Issue in displaying more than one page of PDF using pdfmake
body: <p>I am developing an Ionic application in which I have generated the PDF using <code>pdfmake</code>.</p>
  
  <p>But, I could not able to display the pdf <strong>if it is more than one page</strong> as the <code>pageBreak</code> property does not work</p>
  
  <p><strong>Document definition object :</strong> </p>
  
  <pre><code>var documentdefinition = {
   content: [
             {
             text: 'Unordered list',
             style: 'header'
             },
             {
             ol: [
                  'item 1',
                  'item 2',
                  'item 3',
                  ]
             },
             {
             text: '\n\nUnordered list with longer lines',
             style: 'header',
             pageBreak: 'before',
             pageOrientation: 'landscape'
             },
             {
             ol: [
                  'item 1',
                  'Lorem ipsum dolor sit amet, consectetur ..',
                  'item 3',
                  ]
             },
             {
             text: '\n\nNested lists',
             style: 'header',
             pageBreak: 'before',
             pageOrientation: 'portrait'
             },
             {
             ol: [
                  'item 1',
                  'Lorem ipsum dolor sit amet, consectetur ..',
                  {
                  ol: [
                       'subitem 1',
                       'subitem 2',
                       'subitem 3 - Lorem ipsum dolor sit ame...',
                       'subitem 4',
                       'subitem 5',
                       ]
                  },
                  'item 3\nsecond line of item3',
                  ]
             },
             ],
   styles: {
   header: {
   bold: true,
   fontSize: 15
   }
   },
   defaultStyle: {
   fontSize: 12,
   }
   };
  </code></pre>
  
  <p>As the result of the above document definition ,only the following content is displayed </p>
  
  <p><strong>Unordered list</strong></p>
  
  <p>1.item 1 
   2.item 2 
   3. item 3</p>
  
  <p>Please help me finding the solution.</p>