Merge pull request #1319 from brayanpereyra/BUG-10746

BUG 10746 I added a validate to pdf size SOLVED
This commit is contained in:
julceslauhub
2013-02-14 07:10:11 -08:00

View File

@@ -88,11 +88,13 @@ function _fix_display_position_float(&$css_state) {
}
function &create_pdf_box(&$root, &$pipeline) {
if ( !(@function_exists($root->node_type)) ) {
if ($root != ''){
$valueNodeType = $root->node_type();
} else {
throw new Exception("ID_OUTPUT_NOT_GENERATE", 1);
}
switch ($root->node_type()) {
switch ($valueNodeType) {
case XML_DOCUMENT_NODE:
// TODO: some magic from traverse_dom_tree
$box =& create_document_box($root, $pipeline);