diff --git a/include/class.ticket.php b/include/class.ticket.php
index 130ccb6fa15d42655dba83ef4f677014ceda9b2a..59994470cafd6740bbbe8cc7c280949f63b607ed 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -22,6 +22,7 @@ include_once(INCLUDE_DIR.'class.topic.php');
 include_once(INCLUDE_DIR.'class.lock.php');
 include_once(INCLUDE_DIR.'class.file.php');
 include_once(INCLUDE_DIR.'class.attachment.php');
+include_once(INCLUDE_DIR.'class.pdf.php');
 include_once(INCLUDE_DIR.'class.banlist.php');
 include_once(INCLUDE_DIR.'class.template.php');
 include_once(INCLUDE_DIR.'class.priority.php');
@@ -1551,8 +1552,11 @@ class Ticket{
     }
 
     //Print ticket... export the ticket thread as PDF.
-    function exportPDF() {
-        return false;
+    function pdfExport() {
+        $pdf = new Ticket2PDF($this, true);
+        $name='Ticket-'.$this->getExtId().'.pdf';
+        $pdf->output($name, 'I');
+        exit;
     }
 
     //online based attached files.
diff --git a/scp/tickets.php b/scp/tickets.php
index 6f40db445952fe6bbedc063a20a6c2a1be1539af..801fe242550601501711f96f764b370479b4faf1 100644
--- a/scp/tickets.php
+++ b/scp/tickets.php
@@ -464,8 +464,8 @@ if($ticket) {
     $inc = 'ticket-view.inc.php';
     if($_REQUEST['a']=='edit' && $thisstaff->canEditTickets()) 
         $inc = 'ticket-edit.inc.php';
-    elseif($_REQUEST['a'] == 'print' && !$ticket->exportPDF())
-        $errors['err'] = 'Internal error: Unable to export the ticket to PDF.';
+    elseif($_REQUEST['a'] == 'print' && !$ticket->pdfExport())
+        $errors['err'] = 'Internal error: Unable to export the ticket to PDF for print.';
 } else {
     $inc = 'tickets.inc.php';
     if($_REQUEST['a']=='open' && $thisstaff->canCreateTickets())