[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 10/12: Bug : problème de conversion si le fi
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 10/12: Bug : problème de conversion si le fichier contient des espace |
Date: |
Sat, 26 Jul 2014 14:53:53 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 548bfcc45023dbb34f2efe6b37d250104691aadc
Author: Dany De Bontridder <address@hidden>
Date: Sat Jul 26 16:42:30 2014 +0200
Bug : problème de conversion si le fichier contient des espace
---
include/class_document_export.php | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/include/class_document_export.php
b/include/class_document_export.php
index b7e4efe..bfda2cd 100644
--- a/include/class_document_export.php
+++ b/include/class_document_export.php
@@ -47,7 +47,8 @@ class Document_Export
}
/**
* @brief concatenate all PDF into a single one and save it into the
- * store_pdf folder
+ * store_pdf folder.
+ * If an error occurs then it is added to feedback
*/
function concatenate_pdf()
{
@@ -90,7 +91,7 @@ class Document_Export
/**
* @brief export all the pieces in PDF and transform them into a PDF with
- * a stamp
+ * a stamp. If an error occurs then $this->feedback won't be empty
* @param $p_array contents all the jr_id
*/
function export_all($p_array)
@@ -98,6 +99,7 @@ class Document_Export
$this->check_file();
ob_start();
var_dump($p_array);
+ $cnt_feedback=0;
global $cn;
$cn->start();
@@ -115,7 +117,9 @@ class Document_Export
if ($file[0]['jr_pj_type'] != 'application/pdf')
{
$status = 0;
- passthru(OFFICE . " " . $this->store_convert . '/' .
$file[0]['jr_pj_name'], $status);
+ $arg="
".escapeshellarg($this->store_convert.DIRECTORY_SEPARATOR.$file[0]['jr_pj_name']);
+ echo "arg = [".$arg."]";
+ passthru(OFFICE . " " . $arg , $status);
if ($status <> 0)
{
$this->feedback[$cnt_feedback]['file'] =
$file[0]['jr_pj_name'];
@@ -159,7 +163,7 @@ class Document_Export
// Concatenate stamp + file
$stmt = PDFTK . " " . escapeshellarg($this->store_convert . '/' .
$file_pdf) . ' stamp ' . $this->store_convert .
'/stamp.pdf output ' . $output;
-
+
passthru($stmt, $status);
echo $stmt;
if ($status <> 0)
- [Noalyss-commit] [noalyss] branch master updated (6b92355 -> c72a4a6), Dany De Bontridder, 2014/07/26
- [Noalyss-commit] [noalyss] 01/12: Affiche la description des plans analytiques quand on en fait la liste, Dany De Bontridder, 2014/07/26
- [Noalyss-commit] [noalyss] 02/12: Fixe l'"over quoting" quand on crée un poste analytique, Dany De Bontridder, 2014/07/26
- [Noalyss-commit] [noalyss] 03/12: Fixe la précision des calculs dans le grand livre analytique, Dany De Bontridder, 2014/07/26
- [Noalyss-commit] [noalyss] 04/12: Fixe l'URL quand une MAJ est requise, Dany De Bontridder, 2014/07/26
- [Noalyss-commit] [noalyss] 07/12: Merge remote-tracking branch 'alioth/master' into vincent, Dany De Bontridder, 2014/07/26
- [Noalyss-commit] [noalyss] 06/12: Augmentation du nombre maximum de répartitions analytiques, Dany De Bontridder, 2014/07/26
- [Noalyss-commit] [noalyss] 08/12: fonctionnalité ajout colonne solde progressif esthétique Solde en plus apparent, Dany De Bontridder, 2014/07/26
- [Noalyss-commit] [noalyss] 09/12: esthétique : Enlève l'en-tête Document pour meilleur visibilité, Dany De Bontridder, 2014/07/26
- [Noalyss-commit] [noalyss] 10/12: Bug : problème de conversion si le fichier contient des espace,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 05/12: Correction mise en forme suite aux modif de la version 6.7.2.1, Dany De Bontridder, 2014/07/26
- [Noalyss-commit] [noalyss] 12/12: Il manquait la fermeture d'une cellule, Dany De Bontridder, 2014/07/26
- [Noalyss-commit] [noalyss] 11/12: class notice en gras et italique, Dany De Bontridder, 2014/07/26