The goal of this project is to be able to generate the "ATTESTATION DE DÉPLACEMENT DÉROGATOIRE" from the French Government.
See https://media.interieur.gouv.fr/deplacement-covid-19/
This is a pure Vanilla JS implementation. No need to compile anything. Run out-of-the-box.
No data are sent to the server. Everything is run locally on your browser.
The file : generate.html is in charge of generate the PDF
From the url hanchor parameter, it retrieves the profil (firstname, lastname, etc...). Then, this profil is injected in a hidden form that is similar to the one on Official Website.
Then, the official certificate.js
script from official website is called to compile the PDF using the data store on the hidden form.
Beautifull version : https://www.luko.eu/fr/page/covid19attestation
Open source demo : https://covid.luko.eu/demo.html
- copy the folder from this repo
- go to root project folder
- host locally the folder :
- Python :
python -m SimpleHTTPServer
- Node :
npm install http-server -g
thenhttp-server
- Python :
- use demo.html to create your enriched url
- use generate.html (+ your personal data) to generate your attestation
- follow upgrade on js file on gouv.fr website
- use a local version of certificate.js as a fail-safe solution
- Move from url query param to anchor param (to ensure that server have no access to data)
- Official website code source : used for
certificate.js
: https://github.com/LAB-MI/attestation-deplacement-derogatoire-q4-2020 - Inspired by :