$flex->addVariable('extras', '<extras>' . $book->extras . '</extras>', false, true, 'XML');\r
$flex->addVariable('numerotation', $book->numerotation, false, true, 'String');\r
$flexLight->addVariable('theme', $theme->parametres->toStandardObject(), false, true, 'JSONObject');\r
- $flexLight->addVariable('pages', $book->pages);\r
+ $flexLight->addVariable('pages', $book->parametres->pages);\r
$flexLight->addVariable('fwidth', round($size[0]), false, true, 'Number');\r
$flexLight->addVariable('fheight', round($size[1]), false, true, 'Number');\r
$flexLight->addVariable('pagesInDatas', $complete, false, true, 'Boolean');\r