You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have succesfully used this library within the backend (dashboard )of a wordpress enviornment. Now I need to create the same PDF, that a user can click on a button and it either displays the PDF file (like in the backend) or allow it to be downloaded. I have tried all the different parameters of Output() as follows:
ob_clean();
$pdf->Output(); // Does nothing
ob_clean();
$pdf->Output('I', ''); // OPENS IN SAME PAGE
ob_clean();
$pdf->Output('D', 'test.pdf'); // Opens file save and then hangs.
$pdf->Output('D', ''); // Opens file save and then hangs.
ob_clean();
$pdf->Output('F', 'test.pdf'); // Should save file, does nothing
How do I achieve this?
The text was updated successfully, but these errors were encountered:
I have succesfully used this library within the backend (dashboard )of a wordpress enviornment. Now I need to create the same PDF, that a user can click on a button and it either displays the PDF file (like in the backend) or allow it to be downloaded. I have tried all the different parameters of Output() as follows:
ob_clean();
$pdf->Output(); // Does nothing
ob_clean();
$pdf->Output('I', ''); // OPENS IN SAME PAGE
ob_clean();
$pdf->Output('D', 'test.pdf'); // Opens file save and then hangs.
$pdf->Output('D', ''); // Opens file save and then hangs.
ob_clean();
$pdf->Output('F', 'test.pdf'); // Should save file, does nothing
How do I achieve this?
The text was updated successfully, but these errors were encountered: