diff --git a/include/class.ticket.php b/include/class.ticket.php
index 482bafbb756298ecd7bd42ec40a4e6563ffa01b5..1f93082e4e3b7f1119c630cbce8a0be5846a7663 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -1664,7 +1664,13 @@ class Ticket {
 
     //Print ticket... export the ticket thread as PDF.
     function pdfExport($psize='Letter', $notes=false) {
+        global $thisstaff;
+
         require_once(INCLUDE_DIR.'class.pdf.php');
+        if (!is_string($psize))
+            if (!$thisstaff || !($psize = $thisstaff->getDefaultPaperSize()))
+                $psize = 'Letter';
+
         $pdf = new Ticket2PDF($this, $psize, $notes);
         $name='Ticket-'.$this->getExtId().'.pdf';
         $pdf->Output($name, 'I');