Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
datacirco-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leximpact
DataCirco
datacirco-ui
Commits
d69ae4d9
Commit
d69ae4d9
authored
Feb 9, 2024
by
Benoît Courty
Committed by
benoit-cty
Feb 12, 2024
Browse files
Options
Downloads
Patches
Plain Diff
Test PDF
parent
45344617
No related branches found
No related tags found
1 merge request
!6
Ajout de la section Education
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.env.example
+1
-1
1 addition, 1 deletion
.env.example
circo_test.txt
+9
-0
9 additions, 0 deletions
circo_test.txt
generate_all_pdf.sh
+0
-1
0 additions, 1 deletion
generate_all_pdf.sh
test_pdf.sh
+19
-0
19 additions, 0 deletions
test_pdf.sh
with
29 additions
and
2 deletions
.env.example
+
1
−
1
View file @
d69ae4d9
PUBLIC_DATACIRCO_ROOT_URL="https://datacirco.leximpact.an.fr"
# PUBLIC_DATACIRCO_ROOT_URL="http://localhost:5173"
# PUBLIC_DATACIRCO_ROOT_URL="
{root_url}
"
# PUBLIC_DATACIRCO_ROOT_URL="
https://datacirco-web-integ.leximpact.dev
"
This diff is collapsed.
Click to expand it.
circo_test.txt
0 → 100644
+
9
−
0
View file @
d69ae4d9
075-01
091-01
091-07
091-09
052-01
02B-02
971-04
973-02
974-07
This diff is collapsed.
Click to expand it.
generate_pdf.sh
→
generate_
all_
pdf.sh
+
0
−
1
View file @
d69ae4d9
...
...
@@ -14,6 +14,5 @@ do
optipng
$c
.pdf.png
>
/dev/null 2>/dev/null
mv
$c
.pdf.png ../reduced-pdf/
gs
-dBATCH
-dNOPAUSE
-q
-sDEVICE
=
pdfwrite
-dPDFSETTINGS
=
/prepress
-sOutputFile
=
../reduced-pdf/
$c
.pdf
$c
.pdf
qr
"https://leximpact.an.fr/datacirco/circo/
$CIRCO
.pdf"
>
qr-code-circo.png
done
echo
"Done script
`
date
`
in
$SECONDS
s at
`
date
`
"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test_pdf.sh
0 → 100755
+
19
−
0
View file @
d69ae4d9
echo
"Starting script at
`
date
`
"
rm
-r
pdf/
**
mkdir
-p
pdf
mkdir
-p
reduced-pdf
rm
reduced-pdf/
*
cd
pdf
for
c
in
$(
cat
../circo_test.txt
)
do
wget
-O
$c
.pdf
"http://localhost:5173/circonscriptions/
$c
/impression"
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
# mv $c.pdf.png ../reduced-pdf/
# gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=../reduced-pdf/$c.pdf $c.pdf
# qr "https://leximpact.an.fr/datacirco/circo/$CIRCO.pdf" > qr-code-circo.png
done
echo
"Done script
`
date
`
in
$SECONDS
s at
`
date
`
"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment