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 Fatal error: Uncaught exception 'Exception' with message 'FPDF error: Some data has already been output, can't send PDF file
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 link but nothing worked for me. Anyone faced this issue in wordpress before?