[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/01: correct convert to PDF misplaced
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/01: correct convert to PDF misplaced |
Date: |
Fri, 29 Jan 2016 16:05:03 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 48bdc2906add70d55f7ae2956afe6cb4f0801b44
Author: Dany De Bontridder <address@hidden>
Date: Fri Jan 29 16:57:38 2016 +0100
correct convert to PDF misplaced
---
include/class/class_document_export.php | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/include/class/class_document_export.php
b/include/class/class_document_export.php
index f5fff42..2dfee92 100644
--- a/include/class/class_document_export.php
+++ b/include/class/class_document_export.php
@@ -158,6 +158,14 @@ class Document_Export
$cnt_feedback++;
continue;
}
+
+
+ //
+ // remove extension
+ $ext = strrpos($file[0]['jr_pj_name'], ".");
+ $file_pdf = substr($file[0]['jr_pj_name'], 0, $ext);
+ $file_pdf .=".pdf";
+
//-----------------------------------
// Fix broken PDF , actually pdftk can not handle all the PDF
if ( FIX_BROKEN_PDF == 'YES' ) {
@@ -173,13 +181,6 @@ class Document_Export
continue;
}
}
-
- //
- // remove extension
- $ext = strrpos($file[0]['jr_pj_name'], ".");
- $file_pdf = substr($file[0]['jr_pj_name'], 0, $ext);
- $file_pdf .=".pdf";
-
// output
$output = $this->store_convert . '/stamp_' . $file_pdf;