Add pdf poster generation to ci pipeline

Change-Id: Ib18a3f2572d18e1f9dee7c4be83056040289a2b1
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0dc13c3..1ef0245 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,7 +23,11 @@
 
     - start_section install_linux_packages "Installing missing Linux packages"
     - apt-get update
-    - apt-get install -y build-essential libglpk40 libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev libxt6 libpq-dev imagemagick
+    - apt-get install -y build-essential libglpk40 libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev libxt6 libpq-dev imagemagick ghostscript software-properties-common
+    - add-apt-repository ppa:saiarcot895/chromium-beta
+    - apt update
+    - apt install -y chromium-browser
+    - chromium-browser --no-sandbox --headless --disable-gpu --run-all-compositor-stages-before-draw --no-pdf-header-footer --print-to-pdf https://www.ids-mannheim.de/
     - locale-gen de_DE.utf8 en_GB.utf8 en_US.utf8
 
     - end_section install_linux_packages
@@ -44,5 +48,6 @@
     - R_CACHE_ROOTPATH=./cache R -f ./R/icc_stats.R
     - R_CACHE_ROOTPATH=./cache R -e "require(rmarkdown); render('R/report.Rmd', output_format='html_document', output_dir='target')"
     - R_CACHE_ROOTPATH=./cache R -e "require(rmarkdown); render('R/poster.Rmd', output_format='posterdown::posterdown_ids', output_dir='target')"
+    - ./ci/html2pdf target/poster.html target/poster.pdf 1
     - end_section render