webkitpdf.php
authorAlan Knowles <alan@roojs.com>
Mon, 23 Nov 2015 05:25:50 +0000 (13:25 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Nov 2015 05:25:50 +0000 (13:25 +0800)
webkitpdf.php

index e69de29..b450c2d 100644 (file)
@@ -0,0 +1,36 @@
+<?php
+
+// a simple service to run webkitpdf and return the PDF...
+// note - this will only run on localhost by default...
+
+// needs pear in the 
+// test:  http://localhost/webkitpdf.php
+
+// create a simple file:
+/*
+ini_set('include_path', 
+            dirname(__FILE__). ':' . 
+            dirname(__FILE__).'/pear:' . 
+            ini_get('include_path'));
+
+require_once 'webkitpdf.php';
+new WebkitPdf();
+*/
+
+
+
+class WebkitPdf
+{
+    
+    function WebkitPdf()
+    {
+        if (empty($_REQUEST['url'])) {
+            $this->h404();
+        }
+        
+        require_once 'System.php';
+        $xvfb = 
+        
+    }
+    
+}
\ No newline at end of file