Convert html to pdf in function
-
Hello,
I’m trying to convert html to pdf in function.php but it’s not working.
I retrieve the content of an email in html and I would like to attach it in pdf.
I get the html by doing this: $body = $phpmailer->Body;
This works well but when I am trying to convert it to php using the given code:$test=wp_objects_pdf($body);.
This returns me an empty pdf
Can you help ?Best Regards,
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Convert html to pdf in function’ is closed to new replies.