diff options
author | polo <ordipolo@gmx.fr> | 2023-09-01 12:00:23 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2023-09-01 12:00:23 +0200 |
commit | 45f1b99a1060ee43deb6055faef1f8b16b5d80a2 (patch) | |
tree | 2be0c73b839b220433280daaf29d41644ecd4851 /src/files.php | |
parent | 6f4cc3afffde36a13618458ffda72e6104624f36 (diff) | |
download | AppliGestionPHP-45f1b99a1060ee43deb6055faef1f8b16b5d80a2.zip |
section 3 bientôt terminée
Diffstat (limited to 'src/files.php')
-rw-r--r-- | src/files.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/files.php b/src/files.php index 2d12280..d8fcba7 100644 --- a/src/files.php +++ b/src/files.php | |||
@@ -50,3 +50,17 @@ function latexToPdf(string $latex_path, string $file_name, string $pdf_path) | |||
50 | unlink($pdf_path . $basename . '.aux'); | 50 | unlink($pdf_path . $basename . '.aux'); |
51 | unlink($pdf_path . $basename . '.log'); | 51 | unlink($pdf_path . $basename . '.log'); |
52 | } | 52 | } |
53 | |||
54 | function makeTexAndPdf(Object $Object) | ||
55 | { | ||
56 | if(get_class($Object) !== 'EnveloppeVersoLatex') | ||
57 | { | ||
58 | makeFolder($Object->getLatexPath()); | ||
59 | makeFolder($Object->getPdfPath()); | ||
60 | } | ||
61 | makeFile($Object->getLatexPath(), $Object->getFileName(), $Object->getLatex()); // fichier .tex | ||
62 | latexToPdf($Object->getLatexPath(), $Object->getFileName(), $Object->getPdfPath()); // fichier .pdf avec pdflatex | ||
63 | } | ||
64 | |||
65 | //~ function removeFile(Object $Object) | ||
66 | //~ {} | ||