diff --git a/application/controllers/purchaseorderform.php b/application/controllers/purchaseorderform.php
index 81eaa40c..061125ce 100644
--- a/application/controllers/purchaseorderform.php
+++ b/application/controllers/purchaseorderform.php
@@ -51,6 +51,34 @@ class purchaseorderform extends BaseController
$this->loadViews("alterpurchaseorder", $this->global, NULL);
+ }
+ function alternatepoprint()
+ {
+ $this->global['pageTitle'] = 'Siddharth : Alternate PO print';
+
+ $this->load->View("alterpurchaseorderprint", $this->global, NULL);
+ $php = $this->output->get_output();
+
+ // Load library
+ $this->load->library('dompdf_gen');
+
+
+ require_once(APPPATH .'third_party/dompdf/dompdf_config.inc.php');
+ $dompdf = new DOMPDF();
+ $dompdf->set_paper('A4', 'portrait');
+ $dompdf->load_html($php);
+
+ $dompdf->render();
+
+ // add the header
+ $canvas = $dompdf->get_canvas();
+ $font = Font_Metrics::get_font("helvetica", "bold");
+
+ // the same call as in my previous example
+ $canvas->page_text(72, 18, "Page: {PAGE_NUM} of {PAGE_COUNT}",
+ $font, 6, array(0,0,0));
+
+ $dompdf->stream($filename);
}
function pageNotFound()
diff --git a/application/logs/log-2017-04-28.php b/application/logs/log-2017-04-28.php
new file mode 100644
index 00000000..03154443
--- /dev/null
+++ b/application/logs/log-2017-04-28.php
@@ -0,0 +1,4 @@
+
+
+ERROR - 2017-04-28 11:01:14 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948
+ERROR - 2017-04-28 11:01:17 --> Severity: Notice --> Undefined variable: filename C:\xampp\htdocs\siddharth_application\application\controllers\purchaseorderform.php 81
diff --git a/application/third_party/dompdf/lib/fonts/log.htm b/application/third_party/dompdf/lib/fonts/log.htm
index 09d431cf..073d9033 100644
--- a/application/third_party/dompdf/lib/fonts/log.htm
+++ b/application/third_party/dompdf/lib/fonts/log.htm
@@ -1 +1,19 @@
-2,048 KB 505.0690 ms
\ No newline at end of file
+6,144 KB 3,717.6330 ms
Severity: Warning
+Message: explode() expects parameter 2 to be string, array given
+Filename: include/style.cls.php
+Line Number: 948
+ +Severity: Notice
+Message: Undefined variable: filename
+Filename: controllers/purchaseorderform.php
+Line Number: 81
+ +