Hi,
I am wondering if it is possible to do a check for true or false on Output?
if ($html2pdf->Output('filename.pdf', 'F')) {
// ... do something
} else {
// ... don't do something
}
I'm now using multiple output's, but i figure that once a pdf is created is better use the result (file) instead of calling Output again.
1: Create and save as a file: $html2pdf->Output('inkoopopdrachten/'.$INKOOPNR.'.pdf', 'F');2: Next, if i have an emailaddress, i'm calling Output again with $content_PDF = $html2pdf->Output($INKOOPNR.'.pdf', true); and then mail the pdf as attachment by PJ mail.
3: Display the pdf by calling $html2pdf->Output('filename.pdf', false);
What i intend to do is to check if the first Output is "true", then use the created file by: $content_PDF = filename.pdf;
Then if i have an emailaddress, send the mail
Call some javascript alerts to tell what has been done
Then open the file in a window
Do you have any suggestions?
Thanks!
Marco

so maybe you could give me a hint here?