> > Following the topic about generating PDF documents from within PHP has > > prompted a thought... > > > > Is it possible to have PHP dynamically build an HTML page (from database > > data etc) and provide an option to output the page as PDF without going > > through all the database query routine again? > > > > In other words, to produce a PDF file from dynamic HTML. > > > > This is because I have seen at least one 'product' that reports to produce > > PDF from HTML 'files'. > > Well, providing you save the generated HTML somewhere (if you just send it > to the client, then you don't have a copy of it) and this "product" can be > called through exec(), system(), etc, then sure it's possible. It's going to > take another request to the server where you'll load the cached HTML version > of the page, run it through the "product", send PDF headers and/or send the > PDF file. > > Can't give specific examples, but hopefully that gives you an idea. > > ---John Holmes...
Thanks for that John, I think the big issue will be how to 'cache' my HTML pages should I want to proceed down this route. BTW from memory I think the 'product' was htmldoc, or similar. Graham. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php