Well, the easiest way would be this:
http://www.kielderweather.org.uk/test/dompdf.php?input_file=http://www.kielderweather.org.uk/pdf/poster.php&paper=a4&orientation=landscapeBut if you want to do that you need to set DOMPDF_ENABLE_PHP to false or you're exposing yourself to remote exploitation. Generally we recommend against using dompdf.php if you can. A simple script to create a PDF of your page might look something like this (based on your current file locations, this file located at /pdf/poster-pdf.php):
That should get you started.
On Tuesday, May 14, 2013 7:49:04 PM UTC-4, Doug Paulley wrote:
Hi
I'm a disabled person living in a care home. I produce amateur weather forecasts for an outdoor activity centre for disabled people. They have requested a single page forecast they can print off each day and put on their noticeboard for everybody to see.
The forecast output is created by PHP and output as HTML, my in-progress version is at http://www.kielderweather.org.uk/pdf/poster.php . I've managed that through the adaptation of other people's open-source PHP weather forecast display scripts (they will be acknowledged) as my PHP skills are basically non-existent..
What I would like to do is use domPDF to take the above and put it on a single, landscape A4 page. I've installed dompdf, see http://www.kielderweather.org.uk/test/www/setup.php , but I am somewhat at a loss as to what to do next. I'm also at a loss as to why log.htm isn't writeable - the directory is set to 777, and I've tried it both with an existing log.htm in place (chmod 777) and without any log.htm file there...
This is really cheeky I know, but if anybody could assist me in the right direction to make my automated PDF forecast I'd be very grateful indeed.
Thank you
Doug