Skip to content
Snippets Groups Projects
Commit c0ca6b83 authored by Benoît Courty's avatar Benoît Courty
Browse files

Merge branch 'fix/print_monitoring' into 'master'

Corrige le problème de génération de PDF par le monitoring

See merge request !36
parents d38774f7 79fd7950
No related branches found
No related tags found
2 merge requests!37Corrige le problème de génération de PDF par le monitoring,!36Corrige le problème de génération de PDF par le monitoring
Pipeline #18831 passed with warnings
......@@ -62,9 +62,9 @@ Les sources sont les mémes pour toutes les circonscriptions : https://datacirco
Pour voir la page qui sera imprimée en PDF il faut ajouter le paramètre `print` dans l'URL : http://localhost:5173/circonscriptions/091-07?print=true
`wget -O 091-07.pdf http://localhost:5173/circonscriptions/091-07`
`wget -O 091-07.pdf http://localhost:5173/circo-print/091-07`
`export CIRCO=091-07; wget -O $CIRCO.pdf "http://localhost:5173/circonscriptions/$CIRCO"`
`export CIRCO=091-07; wget -O $CIRCO.pdf "http://localhost:5173/circo-print/$CIRCO"`
L'erreur _"waiting for locator('#precipitations').or(locator('#dpe')).first() to be visible"_ signifie que la circo n'existe probablement pas.
......
......@@ -38,8 +38,8 @@ cd pdf
echo "Start building PDF..."
for c in $(cat ../circo.txt)
do
echo "wget -O $c.pdf \"$BASE_URL/circonscriptions/$c\""
wget -O $c.pdf "$BASE_URL/circonscriptions/$c"
echo "wget -O $c.pdf \"$BASE_URL/circo-print/$c\""
wget -O $c.pdf "$BASE_URL/circo-print/$c"
echo "$c Cr_ation de la vignette"
# convert $c.pdf[0] -resize 50% -background white -flatten -type palette $c.pdf.png > /dev/null
# optipng $c.pdf.png > /dev/null 2>/dev/null
......
......@@ -35,8 +35,8 @@ for c in $(cat ../circo_test.txt)
do
echo "Enregistrement de $c en PDF..."
# datacirco-web-integ.leximpact.dev
echo "wget -O $c.pdf $BASE_URL/circonscriptions/$c"
wget -O $c.pdf "$BASE_URL/circonscriptions/$c"
echo "wget -O $c.pdf $BASE_URL/circo-print/$c"
wget -O $c.pdf "$BASE_URL/circo-print/$c"
echo "Reduce PDF size"
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=../reduced-pdf/$c.pdf $c.pdf
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment