title: wordpress fpdf - Uncaught exception
body: <p>I am trying to generate a pdf in my wordpress plugin and for this I am using FPDF library. I am getting the following error <code>Fatal error: Uncaught exception 'Exception' with message 'FPDF error: Some data has already been output, can't send PDF file</code> </p>
  
  <p>Here I am trying to output the pdf using a wordpress shortcode mechanism in a page. I also tried all the possible soluions in this <a href="https://stackoverflow.com/questions/9475686/fpdf-error-some-data-has-already-been-output-cant-send-pdf">link</a> but nothing worked for me. Anyone faced this issue in wordpress before?</p>