File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 22
33namespace PhpLatexRenderer ;
44
5- use Monolog \Logger ;
6- use Psr \Log \LoggerInterface ;
75use Symfony \Component \Process \ExecutableFinder ;
86use Symfony \Component \Process \Process ;
9- use Twig \Environment ;
107use Twig \TwigFilter ;
118
129class PdfFilterExtension extends \Twig \Extension \AbstractExtension
1310{
1411 private bool $ qpdf ;
1512
16-
1713 public function __construct ()
1814 {
1915 $ finder = new ExecutableFinder ();
@@ -30,7 +26,7 @@ public function getFilters(): array
3026 /**
3127 * @param array $context all variables
3228 * @param string $relFilePath only the filename, no path is needed. Directory is taken as _tex.dir/files/
33- * @return int|null returns null if file does not exist
29+ * @return int|null returns null if file does not exist, int with number of pages otherwise
3430 */
3531 public function pages (array $ context , $ relFilePath ): ?int
3632 {
You can’t perform that action at this time.
0 commit comments