title: How to create a PDF of my web application using AlivePdf
body: <p>I have a large web application with verticalScrollBar with few charts and large datagrid. I am planning to create pdf of my web application using AlivePdf. </p>
  
  <p>Right now, Im using below code to creat a pdf of my application, but no luck.</p>
  
  <pre><code>        var printView:DisplayObject  = new InteractionsAnalysis() as DisplayObject;
          printView.width = Application.application.width;
          printView.height = Application.application.height;          
  
      var printPDF:PDF = new PDF(Orientation.PORTRAIT, Unit.MM, Size.A4);
      printPDF.setDisplayMode( Display.FULL_PAGE, Layout.SINGLE_PAGE );
      printPDF.addPage();
      printPDF.addImage(printView,0,0,0,0,"PNG",100,1,ResizeMode.FIT_TO_PAGE);
  
     var f:FileReference = new FileReference();
     var b:ByteArray = printPDF.save(Method.LOCAL);
     f.save(b);
  </code></pre>
  
  <p>Can anybody give me some directions?  </p>