Dompdf wordpress integration
-
Hi,
I want to convert html template into pdf. for i need to use dompdf.
I download that from git hub link (https://github.com/dompdf/dompdf/releases#:~:text=3-,dompdf_2%2D0%2D0.zip,-3.91%20MB)
upload that into my child theme diri use following code for testing but its shown error
add_action( ‘wp_footer’, ‘temp’ );
function temp(){
include_once( get_stylesheet_directory() .’/dompdf/autoload.inc.php’);
use DompdfDompdf;
$dompdf = new Dompdf();
$dompdf->load_html(‘Hello World
PDF description
‘);
$dompdf->setPaper(‘A4′,’potrait’);
$dompdf->render();
$dompdf->stream(‘title.pdf’);
}Please advise how to integrate dompdf into wordpress properly
WP.com: Yes
Correct account: YesThe blog I need help with is: (visible only to moderators and staff)
-
Hey there, these forums are primarily for the sites that use our free services (like the one you linked), and developing is a bit out of our normal scope of support, but do you want to try asking here?
https://wordpress.org/support/forum/wp-advanced/You might also check in with your host to see what hey recommend.
- The topic ‘Dompdf wordpress integration’ is closed to new replies.