title: Ajax download fpdf in codeigniter not working
body: <p>Expected requirement - when user clicks button ajax will be call to controller where pdf will generate and   generated pdf will gets downloaded on user's system.</p>
  
  <p>Actual Scene - i able to create pdf using fpdf file and saved in folder and used force download function but nothing happend.
  here's my code:</p>
  
  <p><strong>Controller</strong> :</p>
  
  <pre><code>    $this-&gt;load-&gt;helper('download');
      $this-&gt;load-&gt;library('myfpdf');
      $this-&gt;load-&gt;view('pdf/namewise_report',[]);
      $link = base_url().'uploads/pdfs/namewise.pdf';
      force_download($link, NULL);
  </code></pre>
  
  <p><strong>pdf/namewise_report.php (last line)</strong></p>
  
  <pre><code>    $this-&gt;myfpdf-&gt;Output('uploads/pdfs/namewise.pdf', "F");
  </code></pre>
  
  <p>is there anything to add in ajax success response</p>