BUG 10746 I added a validate to pdf size SOLVED

I added a validate to pdf size
This commit is contained in:
Brayan Osmar Pereyra Suxo
2013-02-13 16:20:51 -04:00
parent 47bca98aa3
commit 81a327f21f
2 changed files with 2 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ function _fix_display_position_float(&$css_state) {
function &create_pdf_box(&$root, &$pipeline) {
if ( !(@function_exists($root->node_type)) ) {
throw new Exception("Pdf not created", 1);
throw new Exception("ID_OUTPUT_NOT_GENERATE", 1);
}
switch ($root->node_type()) {

View File

@@ -1116,7 +1116,7 @@ class OutputDocument extends BaseOutputDocument
unlink(PATH_OUTPUT_FILE_DIRECTORY . $sFilename . '.pdf');
unlink(PATH_OUTPUT_FILE_DIRECTORY . $sFilename . '.html');
} catch (Exception $e) {
if ($e->getMessage() == 'Pdf not created') {
if ($e->getMessage() == 'ID_OUTPUT_NOT_GENERATE') {
include_once ("classes/model/AppDocument.php");
list($sFileUID,$docVersion) = explode('_',$sFilename);
$oAppDocument = new AppDocument ();