CARD : add button to epxort to PDF

This commit is contained in:
Dany wm 2024-02-17 15:47:57 +01:00 committed by sparkyx
parent b6b8c88041
commit d9cf4cf71c
5 changed files with 123 additions and 1 deletions

View file

@ -0,0 +1,16 @@
<?php
/***
* @file
* @brief output a PDF with card info
*
*/
try {
$http=new \HttpInput();
$card_id=$http->get("card_id");
} catch (\Exception $e) {
echo $e->getMessage();
die();
}
$card_pdf=new \Card_PDF($card_id);
$card_pdf->export();