Skip to content

Output on Front End #72

Description

@dskurth

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions