Overview
Comment:Fix chromium arguments order when printing to PDF
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 03b60f94378cd8d99d3cc724276375bc5fa2835d1b58f3ef98148908ff1416d7
User & Date: bohwaz on 2023-01-14 01:05:59
Other Links: manifest | tags
References
2023-01-14
01:07 Fixed ticket [8efe565536]: Incohérence arguments d'appel de chromium (Utils::filePDF) plus 5 other changes artifact: 91f3681955 user: bohwaz
Context
2023-01-14
12:45
Move Debian/Windows build tools to a specific directory check-in: ce2b39b44c user: bohwaz tags: trunk
01:05
Fix chromium arguments order when printing to PDF check-in: 03b60f9437 user: bohwaz tags: trunk
00:38
Fix CSS on homepage check-in: f92d1765dd user: bohwaz tags: trunk
Changes

Modified src/include/lib/Garradin/Utils.php from [fb672e1283] to [70bfa5de80].

1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
        }

        switch ($cmd) {
            case 'prince':
                $cmd = 'prince -o %2$s %1$s';
                break;
            case 'chromium':
                $cmd = 'chromium --headless --disable-gpu --run-all-compositor-stages-before-draw --print-to-pdf-no-header --print-to-pdf=%s %s';
                break;
            case 'wkhtmltopdf':
                $cmd = 'wkhtmltopdf -q --print-media-type --enable-local-file-access --disable-smart-shrinking %s %s';
                break;
            case 'weasyprint':
                $cmd = 'weasyprint %1$s %2$s';
                break;







|







1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
        }

        switch ($cmd) {
            case 'prince':
                $cmd = 'prince -o %2$s %1$s';
                break;
            case 'chromium':
                $cmd = 'chromium --headless --disable-gpu --run-all-compositor-stages-before-draw --print-to-pdf-no-header --print-to-pdf=%2$s %1$s';
                break;
            case 'wkhtmltopdf':
                $cmd = 'wkhtmltopdf -q --print-media-type --enable-local-file-access --disable-smart-shrinking %s %s';
                break;
            case 'weasyprint':
                $cmd = 'weasyprint %1$s %2$s';
                break;