L'utilisation de l'encryption PDF ne consomme que 500ko de plus pour un total de 11M au lieu de 10.5M de mmoire. Je modifie le warning car les pb mmoire sont un pb global et non propre au cryptage des pdf. Un warning recommandant 16Mo pour l'utilisation de dolibarr est affich l'install.

This commit is contained in:
Laurent Destailleur 2007-10-07 21:09:55 +00:00
parent 4969705353
commit 5554de1a68
3 changed files with 6 additions and 5 deletions

View File

@ -70,7 +70,9 @@ if ( (isset($_POST["action"]) && $_POST["action"] == 'update')
// Create thumbs of logo
if ($isimage > 0)
{
$imgThumbSmall = vignette($conf->societe->dir_logos.'/'.$original_file, 200, 100, '_small',80);
$quality = 80;
$imgThumbSmall = vignette($conf->societe->dir_logos.'/'.$original_file, 200, 100, '_small', $quality);
if (eregi('([^\\\/:]+)$',$imgThumbSmall,$reg))
{
$imgThumbSmall = $reg[1];
@ -79,7 +81,7 @@ if ( (isset($_POST["action"]) && $_POST["action"] == 'update')
else dolibarr_syslog($imgThumbSmall);
// Création de la vignette de la page "Société/Institution"
$imgThumbMini = vignette($conf->societe->dir_logos.'/'.$original_file, 100, 30, '_mini',80);
$imgThumbMini = vignette($conf->societe->dir_logos.'/'.$original_file, 100, 30, '_mini', $quality);
if (eregi('([^\\\/:]+)$',$imgThumbMini,$reg))
{
$imgThumbMini = $reg[1];

View File

@ -114,7 +114,7 @@ DoNotStoreClearPassword=Do no store clear passwords in database
MainDbPasswordFileConfEncrypted=Password of the database encrypted in conf.php
ConfigFileIsInReadOnly=The file conf.php is in read only, check the rights.
ProtectAndEncryptPdfFiles=Protection and encryption of the pdf generated
ProtectAndEncryptPdfFilesDesc=protecting a document requires to encrypt it, which increases the processing time a lot.<br>This can cause a PHP time-out in some cases, especially if the document contains images or fonts.<br><br>You can solve this problem by increasing the variable <b>memory_limit</b> with 16M in the php.ini, or if you do not have access to the php.ini, create a .htaccess in root of the site and add this line: <br><br><center><b>php_value memory_limit 16M</b><center><br><br>
ProtectAndEncryptPdfFilesDesc=Protection of a PDF document keep this one free to read and print with any PDF browser. However, editing and copying is no more possible.
Feature=Feature
DolibarrLicense=License
DolibarrProjectLeader=Project leader

View File

@ -114,8 +114,7 @@ DoNotStoreClearPassword=Ne pas stocker de mot de passe en clair dans la base
MainDbPasswordFileConfEncrypted=Encrypter le mot de passe de la base dans le fichier conf.php
ConfigFileIsInReadOnly=Le fichier conf.php est lecture seule, vérifiez les droits d'écriture.
ProtectAndEncryptPdfFiles=Protection et encryption des pdf générés
ProtectAndEncryptPdfFilesDesc=La protection d'un document pdf exige son encryption, ce qui peut augmenter la durée de la transformation. Ceci peut causer un arrêt de PHP dans certains cas, particulièrement si le document contient des images ou des polices.<br><br>Vous pouvez résoudre ce problème en augmentant la variable <b>memory_limit</b> à 16M dans php.ini ou, si vous n'avez pas accès au php.ini, créer un .htaccess à la racine du site et ajouter cette ligne : <br><br><center><b>php_value memory_limit 16M</b><center><br><br>
Feature=Fonction
ProtectAndEncryptPdfFilesDesc=La protection d'un document pdf laisse le document libre à la lecture et à l'impression avec tout logiciel de lecture PDF. Par contre, la modification et la copie deviennent impossible.
DolibarrLicense=Licence
DolibarrProjectLeader=Chef de projet
OtherDeveloppers=Autres développeurs/contributeurs