From 825061f3f22ac58a5307a536736dd8049adfee63 Mon Sep 17 00:00:00 2001 From: Hector Cortez Date: Mon, 29 Jul 2013 10:53:42 -0400 Subject: [PATCH] BUG 12434 Habilitar PDF Compresing feature SOLVED - Habilitar PDF Compresing feature - Enabled compress mode for output documents to html2pdf and tcpdf. --- workflow/engine/classes/model/OutputDocument.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workflow/engine/classes/model/OutputDocument.php b/workflow/engine/classes/model/OutputDocument.php index f96c7059a..e2061789b 100755 --- a/workflow/engine/classes/model/OutputDocument.php +++ b/workflow/engine/classes/model/OutputDocument.php @@ -672,6 +672,7 @@ class OutputDocument extends BaseOutputDocument $html2pdf->pdf->SetAuthor($aFields['USR_USERNAME']); $html2pdf->pdf->SetTitle('Processmaker'); $html2pdf->pdf->SetSubject($sFilename); + $html2pdf->pdf->SetCompression(true); //$html2pdf->pdf->SetKeywords('HTML2PDF, TCPDF, processmaker'); @@ -798,6 +799,7 @@ class OutputDocument extends BaseOutputDocument $pdf->SetAuthor($aFields['USR_USERNAME']); $pdf->SetTitle('Processmaker'); $pdf->SetSubject($sFilename); + $pdf->SetCompression(true); $margins = $aProperties['margins']; $margins["left"] = ($margins["left"] >= 0) ? $margins["left"] : PDF_MARGIN_LEFT; @@ -906,7 +908,7 @@ class OutputDocument extends BaseOutputDocument 'margins' => array('left' => 15, 'right' => 15, 'top' => 15, 'bottom' => 15,), 'encoding' => '', 'ps2pdf' => false, - 'compress' => false, + 'compress' => true, 'output' => 2, 'pdfversion' => '1.3', 'transparency_workaround' => false,