Hi
i have an html output and send to the folder using ob_start and
file_put_contents('xxx.html', ob_get_contents());
my problem is
save automatically this file after converting to pdf using html2pdf
is it possible to do that:auto save the html to pdf using html2pdf
cheers
asaidi
0
Junior Poster
Recommended Answers
Jump to PostUse the Output method with appropriate parameters depending on what you want:
Jump to PostCan you state what exactly is not working. Do you get any error messages? You can test the output method by trying a simple html like:
require_once(dirname(__FILE__).'/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF(); // you can use the default parms $html2pdf->setDefaultFont('Arial'); $html2pdf->writeHTML('<p>THIS IS A TEST</p>'); //$html2pdf->Output('monthly.pdf'); //$pdf->Output('../css2/monthly.pdf','D'); …
All 8 Replies
broj1
356
Humble servant
Featured Poster
asaidi
0
Junior Poster
broj1
356
Humble servant
Featured Poster
Bachu
45
Newbie Poster
asaidi
0
Junior Poster
broj1
356
Humble servant
Featured Poster
broj1
356
Humble servant
Featured Poster
asaidi
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.