split demo.php to html form and render example so one could easier see how to render pdf