1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-05-06 15:56:35 +02:00
Go to file
2022-01-28 17:23:51 +01:00
.github/workflows ci: dockerize and push with gh-actions 2022-01-28 17:23:51 +01:00
public Redirection vers index.php 2022-01-26 15:05:08 +01:00
templates Externalisation du css 2022-01-05 01:23:37 +01:00
tests L'ajout de texte avec accent est possible maintenant 2022-01-04 09:37:53 +01:00
vendor/fatfree initualisation with fatfree framework 2021-05-03 19:26:47 +02:00
.editorconfig Définition des normes d'édition 2021-10-12 01:02:40 +02:00
.gitignore Le dossier data n'est plus nécessaire 2021-11-12 02:03:37 +01:00
apache.conf ci: dockerize and push with gh-actions 2022-01-28 17:23:51 +01:00
app.php Les svg sont uploader via des input file 2021-11-12 10:10:32 +01:00
Dockerfile ci: dockerize and push with gh-actions 2022-01-28 17:23:51 +01:00
LICENSE License AGPLV3 2021-05-04 00:58:47 +02:00
Makefile Testes fonctionnels de la signature d'un pdf avec jest et puppeteer 2021-10-24 01:38:57 +02:00
php.ini ci: dockerize and push with gh-actions 2022-01-28 17:23:51 +01:00
README.md Pas besoin du AllowOverride 2022-01-26 15:21:38 +01:00

Signature de PDF

Logiciel web libre permettant de signer un PDF.

Instances

Liste des instances permettant d'utiliser ce logiciel :

License

Logiciel libre sous license AGPL V3

Installation

Dépendances :

  • php >= 5.6
  • rsvg-convert
  • pdftk
  • imagemagick
  • potrace

Sur debian :

sudo aptitude install php librsvg2-bin pdftk imagemagick potrace

Récupération des sources :

git clone https://github.com/24eme/signaturepdf.git

Pour le lancer :

php -S localhost:8000 -t public

Configuration de PHP

upload_max_filesize = 24M # Taille maximum du fichier PDF à signer
post_max_size = 24M # Taille maximum du fichier PDF à signer
max_file_uploads = 201 # Nombre de pages maximum du PDF, ici 200 pages + le PDF d'origine

Déployer avec apache

DocumentRoot /path/to/signaturepdf/public

<Directory /path/to/signaturepdf/public>
    Require all granted
    FallbackResource /index.php
    php_value max_file_uploads 201
    php_value upload_max_filesize 24M
    php_value post_max_size 24M
</Directory>

Tests

Pour exécuter les tests fonctionnels :

make test

Les tests sont réalisés avec puppeteer et jest.

Pour lancer les tests et voir le navigateur (en mode debug) :

DEBUG=1 make test

Librairies utilisées

Pour les tests :