title: How to print text from a text file into pdf using fpdf and php
body: <p>I am trying to display the text from a text file into PDF using <strong>FPDF</strong> and PHP. I searched many links and tried the following code but I am not getting the output.</p>
  
  <pre><code>if(($FileType == 'txt'))
  {    
     $this-&gt;SetFont('Arial','',12);
     $this-&gt;write(10,file_get_contents(project/demo.txt));
  } 
  </code></pre>