Try to handle different chromium versions
Change-Id: I3520fcb7f0e6891e70a1c819a2c54a5ce2bb16e2
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 166434c..71836ac 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -36,7 +36,7 @@
- end_section install_fonts
- start_section testing_chromium Testing chromium PDF export
- - chromium-browser --headless --no-sandbox --disable-gpu --run-all-compositor-stages-before-draw --no-pdf-header-footer --print-to-pdf=./test.pdf https://www.ids-mannheim.de/
+ - chromium-browser --headless --disable-gpu --no-sandbox --run-all-compositor-stages-before-draw --no-pdf-header-footer --print-to-pdf-no-header --print-to-pdf=./test.pdf https://www.ids-mannheim.de/
- ls -l ./test.pdf
- end_section testing_chromium
diff --git a/ci/html2pdf b/ci/html2pdf
index 971ccd3..04dbac7 100755
--- a/ci/html2pdf
+++ b/ci/html2pdf
@@ -1,8 +1,6 @@
#!/bin/sh -eu
in=$1 out=$2 page0=${3:-} page1=${4:-$page0}
-${CHROME:-chromium-browser} --no-sandbox --headless --disable-gpu \
- --run-all-compositor-stages-before-draw \
- --no-pdf-header-footer --print-to-pdf="$out" "$in"
+chromium-browser --headless --disable-gpu --no-sandbox --run-all-compositor-stages-before-draw --no-pdf-header-footer --print-to-pdf-no-header --print-to-pdf="$out" "$in"
GS_ARGS=
if [ -n "$page0" ]; then
GS_ARGS="-dFirstPage=$page0 -dLastPage=$page1"