diff --git a/library/Icinga/Web/StyleSheet.php b/library/Icinga/Web/StyleSheet.php index c67ce1fcc..365eedaf1 100644 --- a/library/Icinga/Web/StyleSheet.php +++ b/library/Icinga/Web/StyleSheet.php @@ -22,6 +22,18 @@ class StyleSheet 'css/icinga/login.less', ); + public static function compileForPdf() + { + $less = new LessCompiler(); + $basedir = Icinga::app()->getBootstrapDirecory(); + foreach (self::$lessFiles as $file) { + $less->addFile($basedir . '/' . $file); + } + $less->addLoadedModules(); + $less->addFile($basedir . '/css/pdf/pdfprint.less'); + return $less->compile(); + } + public static function send() { header('Content-Type: text/css');