1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-05-21 15:16:37 +02:00

fix document

This commit is contained in:
tale-fau 2023-09-26 17:35:46 +02:00
parent c6a93c1650
commit 51aacf48ed
2 changed files with 8 additions and 4 deletions

12
app.php
View file

@ -28,10 +28,6 @@ if($f3->get('PDF_STORAGE_PATH') && !preg_match('|/$|', $f3->get('PDF_STORAGE_PAT
$f3->set('PDF_STORAGE_PATH', $f3->get('PDF_STORAGE_PATH').'/');
}
if($f3->get('PDF_DEMO_LINK') === null || $f3->get('PDF_DEMO_LINK') === true) {
$f3->set('PDF_DEMO_LINK', 'https://raw.githubusercontent.com/24eme/signaturepdf/master/tests/files/document.pdf');
}
$f3->set('disableOrganization', false);
if($f3->get('DISABLE_ORGANIZATION')) {
$f3->set('disableOrganization', $f3->get('DISABLE_ORGANIZATION'));
@ -64,6 +60,14 @@ if($f3->get('TRANSLATION_LANGUAGE') == "ar") {
$f3->set('DIRECTION_LANGUAGE', 'rtl');
}
if($f3->get('PDF_DEMO_LINK') === null || $f3->get('PDF_DEMO_LINK') === true) {
if ($f3->get('TRANSLATION_LANGUAGE') == "ar") {
$f3->set('PDF_DEMO_LINK', 'https://raw.githubusercontent.com/24eme/signaturepdf/master/tests/files/document_ar.pdf');
} else {
$f3->set('PDF_DEMO_LINK', 'https://raw.githubusercontent.com/24eme/signaturepdf/master/tests/files/document.pdf');
}
}
$f3->route('GET /',
function($f3) {
$f3->reroute($f3->get('REVERSE_PROXY_URL').'/signature');

Binary file not shown.