diff options
author | JulienMoumne <julien@piwik.org> | 2012-02-08 17:26:43 +0400 |
---|---|---|
committer | JulienMoumne <julien@piwik.org> | 2012-02-08 17:26:43 +0400 |
commit | e1d7b66bb57e403599a2b3e09a3cd4046039600b (patch) | |
tree | 15b687ca7a9b270403f5923de6580429aab86772 /core/ReportRenderer/Pdf.php | |
parent | 72aa5f4c7a0b8ee2ba031bae38f9c8274c64b62e (diff) |
fixes #2862 increasing static graph resolution when generating PDF reports
git-svn-id: http://dev.piwik.org/svn/trunk@5786 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/ReportRenderer/Pdf.php')
-rw-r--r-- | core/ReportRenderer/Pdf.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/ReportRenderer/Pdf.php b/core/ReportRenderer/Pdf.php index 7ee546b443..a5d247a4ba 100644 --- a/core/ReportRenderer/Pdf.php +++ b/core/ReportRenderer/Pdf.php @@ -23,6 +23,9 @@ require_once PIWIK_INCLUDE_PATH . '/core/TCPDF.php'; */ class Piwik_ReportRenderer_Pdf extends Piwik_ReportRenderer { + const IMAGE_GRAPH_HEIGHT = 330; + const IMAGE_GRAPH_WIDTH = 1150; + const MAX_ROW_COUNT = 28; const TABLE_HEADER_ROW_COUNT = 6; const NO_DATA_ROW_COUNT = 6; @@ -75,6 +78,16 @@ class Piwik_ReportRenderer_Pdf extends Piwik_ReportRenderer $this->tableBackgroundColor = preg_split("/,/", Piwik_ReportRenderer::TABLE_BG_COLOR); } + public function getStaticGraphHeight() + { + return self::IMAGE_GRAPH_HEIGHT; + } + + public function getStaticGraphWidth() + { + return self::IMAGE_GRAPH_WIDTH; + } + public function setLocale($locale) { switch ($locale) |