Archives de la liste a​i​d​e​@p​a​h​e​k​o​.c​l​o​u​d​

Re: Problème: "Telecharger en pdf"

Marc CHETRIT

08/01/2022 13:00:48

Bonjour,

Petit complément à mon message précédent, le problème est apparu après 
la mise à jour en 1.1.18. En 1.1.17 (restauration) je ne rencontre pas 
le problème.

Cordialement,

Marc

Le 08/01/2022 à 12:31, Marc CHETRIT a écrit :
>
> Bonjour,
>
> Erreur lors de l'opération "Télécharger en pdf".
>
> Ce problème se produit lors de toute tentative de télécharger en pdf.
>
> La version de dompdf installée est la 1.0.2.
>
> Ci-dessous, le log des erreurs.
>
> Quelqu'un a-t-il rencontré le problème? un moyen de le résoudre?
>
> Merci d'avance.
>
> Marc
>
>   \__/
>   (xx)
> //||\\
>
>
>   Une erreur s'est produite
>
>
>   PHP error
>
>
>     Warning: Illegal string offset 'hex'
>
>
>       in .../data/cache/dompdf/dompdf/src/Css/*Style.php*:/1381/
>
> |*1377* { *1378* $color = $this->__get("border_" . $side .
"_color"); 
> *1379* *1380* return $this->__get("border_" . $side .
"_width") . " " 
> . _*1381* $this->__get("border_" . $side . "_style") .
" " . 
> $color["hex"];_ *1382* } *1383* *1384* /**#@+ *1385* * Return full 
> border properties as a string |
>
>
>       in .../data/cache/dompdf/dompdf/src/Css/*Style.php*:/1420/
>
>
>         → Dompdf\Css\Style->_get_border /(1 arg.)/
>
> $side 	
> string(4) "left"
>
> |*1416* * @return mixed *1417* */ *1418* function get_border_left() 
> *1419* { _*1420* return $this->_get_border("left");_ *1421* } *1422*

> *1423* private function _get_width($prop) *1424* { |
>
>
>       in .../data/cache/dompdf/dompdf/src/Css/*Style.php*:/967/
>
>
>         → Dompdf\Css\Style->get_border_left /(0 arg.)/
>
> |*963* self::$_methods_cache[$method] = method_exists($this, $method); 
> *964* } *965* *966* if (self::$_methods_cache[$method]) { _*967* 
> $retval = $this->_prop_cache[$prop] = $this->$method();_ *968* } *969* 
> *970* if (!isset($retval)) { *971* $retval = $this->_prop_cache[$prop] 
> = $this->_props_computed[$prop]; |
>
>
>       in .../data/cache/dompdf/dompdf/src/FrameReflower/*Inline.php*:/60/
>
>
>         → Dompdf\Css\Style->__get /(1 arg.)/
>
> $prop 	
> string(11) "border_left"
>
> |*56* if (($f = $frame->get_first_child()) && $f instanceof 
> TextFrameDecorator) { *57* $f_style = $f->get_style(); *58* 
> $f_style->margin_left = $style->margin_left; *59* 
> $f_style->padding_left = $style->padding_left; _*60* 
> $f_style->border_left = $style->border_left;_ *61* } *62* *63* if (($l 
> = $frame->get_last_child()) && $l instanceof TextFrameDecorator) { 
> *64* $l_style = $l->get_style(); |
>
>
>       in
>      
.../data/cache/dompdf/dompdf/src/FrameDecorator/*AbstractFrameDecorator.php*:/895/
>
>
>         → Dompdf\FrameReflower\Inline->reflow /(1 arg.)/
>
> $block 	
> object(Dompdf\FrameDecorator\TableCell) (32) {
>    ["_counters"]=> array(0) {
>    }
>    ["_already_pushed"]=> bool(false)
>    ["_float_next_line"]=> bool(false)
>    ["_splitted"]=> NULL
> }
>
> |*891* { *892* // Uncomment this to see the frames before they're laid 
> out, instead of *893* // during rendering. *894* //echo $this->_frame; 
> flush(); _*895* $this->_reflower->reflow($block);_ *896* } *897* *898* 
> /** *899* * @return array |
>
>
>       in
>       .../data/cache/dompdf/dompdf/src/FrameReflower/*TableCell.php*:/95/
>
>
>         → Dompdf\FrameDecorator\AbstractFrameDecorator->reflow /(1 arg.)/
>
> $block 	
> object(Dompdf\FrameDecorator\TableCell) (32) {
>    ["_counters"]=> array(0) {
>    }
>    ["_already_pushed"]=> bool(false)
>    ["_float_next_line"]=> bool(false)
>    ["_splitted"]=> NULL
> }
>
> |*91* } *92* *93* $child->set_containing_block($content_x, $content_y, 
> $cb_w, $h); *94* $this->process_clear($child); _*95* 
> $child->reflow($this->_frame);_ *96* $this->process_float($child, $x +

> $left_space, $w - $right_space - $left_space); *97* } *98* *99* // 
> Determine our height |
>
>
>       in
>      
.../data/cache/dompdf/dompdf/src/FrameDecorator/*AbstractFrameDecorator.php*:/895/
>
>
>         → Dompdf\FrameReflower\TableCell->reflow /(1 arg.)/
>
> $block 	
> NULL
>
> |*891* { *892* // Uncomment this to see the frames before they're laid 
> out, instead of *893* // during rendering. *894* //echo $this->_frame; 
> flush(); _*895* $this->_reflower->reflow($block);_ *896* } *897* *898* 
> /** *899* * @return array |
>
>
>       in
>       .../data/cache/dompdf/dompdf/src/FrameReflower/*TableRow.php*:/52/
>
>
>         → Dompdf\FrameDecorator\AbstractFrameDecorator->reflow /(0 arg.)/
>
> |*48* return; *49* } *50* *51* $child->set_containing_block($cb); 
> _*52* $child->reflow();_ *53* } *54* *55* if ($page->is_full()) { *56* 
> return; |
>
>
>       in
>      
.../data/cache/dompdf/dompdf/src/FrameDecorator/*AbstractFrameDecorator.php*:/895/
>
>
>         → Dompdf\FrameReflower\TableRow->reflow /(1 arg.)/
>
> $block 	
> NULL
>
> |*891* { *892* // Uncomment this to see the frames before they're laid 
> out, instead of *893* // during rendering. *894* //echo $this->_frame; 
> flush(); _*895* $this->_reflower->reflow($block);_ *896* } *897* *898* 
> /** *899* * @return array |
>
>
>       in
>       .../data/cache/dompdf/dompdf/src/FrameReflower/*TableRowGroup.php*:/51/
>
>
>         → Dompdf\FrameDecorator\AbstractFrameDecorator->reflow /(0 arg.)/
>
> |*47* return; *48* } *49* *50* $child->set_containing_block($cb["x"],

> $cb["y"], $cb["w"], $cb["h"]); _*51*
$child->reflow();_ *52* *53* // 
> Check if a split has occured *54* $page->check_page_break($child); *55* } |
>
>
>       in
>      
.../data/cache/dompdf/dompdf/src/FrameDecorator/*AbstractFrameDecorator.php*:/895/
>
>
>         → Dompdf\FrameReflower\TableRowGroup->reflow /(1 arg.)/
>
> $block 	
> NULL
>
> |*891* { *892* // Uncomment this to see the frames before they're laid 
> out, instead of *893* // during rendering. *894* //echo $this->_frame; 
> flush(); _*895* $this->_reflower->reflow($block);_ *896* } *897* *898* 
> /** *899* * @return array |
>
>
>       in .../data/cache/dompdf/dompdf/src/FrameReflower/*Table.php*:/489/
>
>
>         → Dompdf\FrameDecorator\AbstractFrameDecorator->reflow /(0 arg.)/
>
> |*485* break; *486* } *487* *488* 
> $child->set_containing_block($content_x, $content_y, $width, $h); 
> _*489* $child->reflow();_ *490* *491* if (!$page->in_nested_table()) { 
> *492* // Check if a split has occured *493* 
> $page->check_page_break($child); |
>
>
>       in
>      
.../data/cache/dompdf/dompdf/src/FrameDecorator/*AbstractFrameDecorator.php*:/895/
>
>
>         → Dompdf\FrameReflower\Table->reflow /(1 arg.)/
>
> $block 	
> object(Dompdf\FrameDecorator\TableCell) (32) {
>    ["_counters"]=> array(0) {
>    }
>    ["_already_pushed"]=> bool(false)
>    ["_float_next_line"]=> bool(false)
>    ["_splitted"]=> NULL
> }
>
> |*891* { *892* // Uncomment this to see the frames before they're laid 
> out, instead of *893* // during rendering. *894* //echo $this->_frame; 
> flush(); _*895* $this->_reflower->reflow($block);_ *896* } *897* *898* 
> /** *899* * @return array |
>
>
>       in
>       .../data/cache/dompdf/dompdf/src/FrameReflower/*TableCell.php*:/95/
>
>
>         → Dompdf\FrameDecorator\AbstractFrameDecorator->reflow /(1 arg.)/
>
> $block 	
> object(Dompdf\FrameDecorator\TableCell) (32) {
>    ["_counters"]=> array(0) {
>    }
>    ["_already_pushed"]=> bool(false)
>    ["_float_next_line"]=> bool(false)
>    ["_splitted"]=> NULL
> }
>
> |*91* } *92* *93* $child->set_containing_block($content_x, $content_y, 
> $cb_w, $h); *94* $this->process_clear($child); _*95* 
> $child->reflow($this->_frame);_ *96* $this->process_float($child, $x +

> $left_space, $w - $right_space - $left_space); *97* } *98* *99* // 
> Determine our height |
>
>
>       in
>      
.../data/cache/dompdf/dompdf/src/FrameDecorator/*AbstractFrameDecorator.php*:/895/
>
>
>         → Dompdf\FrameReflower\TableCell->reflow /(1 arg.)/
>
> $block 	
> NULL
>
> |*891* { *892* // Uncomment this to see the frames before they're laid 
> out, instead of *893* // during rendering. *894* //echo $this->_frame; 
> flush(); _*895* $this->_reflower->reflow($block);_ *896* } *897* *898* 
> /** *899* * @return array |
>
>
>       in
>       .../data/cache/dompdf/dompdf/src/FrameReflower/*TableRow.php*:/52/
>
>
>         → Dompdf\FrameDecorator\AbstractFrameDecorator->reflow /(0 arg.)/
>
> |*48* return; *49* } *50* *51* $child->set_containing_block($cb); 
> _*52* $child->reflow();_ *53* } *54* *55* if ($page->is_full()) { *56* 
> return; |
>
>
>       in
>      
.../data/cache/dompdf/dompdf/src/FrameDecorator/*AbstractFrameDecorator.php*:/895/
>
>
>         → Dompdf\FrameReflower\TableRow->reflow /(1 arg.)/
>
> $block 	
> NULL
>
> |*891* { *892* // Uncomment this to see the frames before they're laid 
> out, instead of *893* // during rendering. *894* //echo $this->_frame; 
> flush(); _*895* $this->_reflower->reflow($block);_ *896* } *897* *898* 
> /** *899* * @return array |
>
>
>       in
>       .../data/cache/dompdf/dompdf/src/FrameReflower/*TableRowGroup.php*:/51/
>
>
>         → Dompdf\FrameDecorator\AbstractFrameDecorator->reflow /(0 arg.)/
>
> |*47* return; *48* } *49* *50* $child->set_containing_block($cb["x"],

> $cb["y"], $cb["w"], $cb["h"]); _*51*
$child->reflow();_ *52* *53* // 
> Check if a split has occured *54* $page->check_page_break($child); *55* } |
>
>
>       in
>      
.../data/cache/dompdf/dompdf/src/FrameDecorator/*AbstractFrameDecorator.php*:/895/
>
>
>         → Dompdf\FrameReflower\TableRowGroup->reflow /(1 arg.)/
>
> $block 	
> NULL
>
> |*891* { *892* // Uncomment this to see the frames before they're laid 
> out, instead of *893* // during rendering. *894* //echo $this->_frame; 
> flush(); _*895* $this->_reflower->reflow($block);_ *896* } *897* *898* 
> /** *899* * @return array |
>
>
>       in .../data/cache/dompdf/dompdf/src/FrameReflower/*Table.php*:/489/
>
>
>         → Dompdf\FrameDecorator\AbstractFrameDecorator->reflow /(0 arg.)/
>
> |*485* break; *486* } *487* *488* 
> $child->set_containing_block($content_x, $content_y, $width, $h); 
> _*489* $child->reflow();_ *490* *491* if (!$page->in_nested_table()) { 
> *492* // Check if a split has occured *493* 
> $page->check_page_break($child); |
>
>
>       in
>      
.../data/cache/dompdf/dompdf/src/FrameDecorator/*AbstractFrameDecorator.php*:/895/
>
>
>         → Dompdf\FrameReflower\Table->reflow /(1 arg.)/
>
> $block 	
> object(Dompdf\FrameDecorator\Block) (30) {
>    ["_counters"]=> array(0) {
>    }
>    ["_already_pushed"]=> bool(false)
>    ["_float_next_line"]=> bool(false)
>    ["_splitted"]=> NULL
> }
>
> |*891* { *892* // Uncomment this to see the frames before they're laid 
> out, instead of *893* // during rendering. *894* //echo $this->_frame; 
> flush(); _*895* $this->_reflower->reflow($block);_ *896* } *897* *898* 
> /** *899* * @return array |
>
>
>       in .../data/cache/dompdf/dompdf/src/FrameReflower/*Block.php*:/845/
>
>
>         → Dompdf\FrameDecorator\AbstractFrameDecorator->reflow /(1 arg.)/
>
> $block 	
> object(Dompdf\FrameDecorator\Block) (30) {
>    ["_counters"]=> array(0) {
>    }
>    ["_already_pushed"]=> bool(false)
>    ["_float_next_line"]=> bool(false)
>    ["_splitted"]=> NULL
> }
>
> |*841* $child->set_containing_block($cb_x, $cb_y, $w, $cb_h); *842* 
> *843* $this->process_clear($child); *844* _*845* 
> $child->reflow($this->_frame);_ *846* *847* // Don't add the child to

> the line if a page break has occurred *848* if 
> ($page->check_page_break($child)) { *849* break; |
>
>
>       in
>      
.../data/cache/dompdf/dompdf/src/FrameDecorator/*AbstractFrameDecorator.php*:/895/
>
>
>         → Dompdf\FrameReflower\Block->reflow /(1 arg.)/
>
> $block 	
> object(Dompdf\FrameDecorator\Block) (30) {
>    ["_counters"]=> array(0) {
>    }
>    ["_already_pushed"]=> bool(false)
>    ["_float_next_line"]=> bool(false)
>    ["_splitted"]=> NULL
> }
>
> |*891* { *892* // Uncomment this to see the frames before they're laid 
> out, instead of *893* // during rendering. *894* //echo $this->_frame; 
> flush(); _*895* $this->_reflower->reflow($block);_ *896* } *897* *898* 
> /** *899* * @return array |
>
>
>       in .../data/cache/dompdf/dompdf/src/FrameReflower/*Block.php*:/845/
>
>
>         → Dompdf\FrameDecorator\AbstractFrameDecorator->reflow /(1 arg.)/
>
> $block 	
> object(Dompdf\FrameDecorator\Block) (30) {
>    ["_counters"]=> array(0) {
>    }
>    ["_already_pushed"]=> bool(false)
>    ["_float_next_line"]=> bool(false)
>    ["_splitted"]=> NULL
> }
>
> |*841* $child->set_containing_block($cb_x, $cb_y, $w, $cb_h); *842* 
> *843* $this->process_clear($child); *844* _*845* 
> $child->reflow($this->_frame);_ *846* *847* // Don't add the child to

> the line if a page break has occurred *848* if 
> ($page->check_page_break($child)) { *849* break; |
>
>
>       in
>      
.../data/cache/dompdf/dompdf/src/FrameDecorator/*AbstractFrameDecorator.php*:/895/
>
>
>         → Dompdf\FrameReflower\Block->reflow /(1 arg.)/
>
> $block 	
> NULL
>
> |*891* { *892* // Uncomment this to see the frames before they're laid 
> out, instead of *893* // during rendering. *894* //echo $this->_frame; 
> flush(); _*895* $this->_reflower->reflow($block);_ *896* } *897* *898* 
> /** *899* * @return array |
>
>
>       in .../data/cache/dompdf/dompdf/src/FrameReflower/*Page.php*:/141/
>
>
>         → Dompdf\FrameDecorator\AbstractFrameDecorator->reflow /(0 arg.)/
>
> |*137* $child->insert_child_before($fixed_child->deep_copy(), 
> $child->get_first_child()); *138* } *139* } *140* _*141* 
> $child->reflow();_ *142* $next_child = $child->get_next_sibling(); 
> *143* *144* // Check for begin render callback *145* 
> $this->_check_callbacks("begin_page_render", $child); |
>
>
>       in
>      
.../data/cache/dompdf/dompdf/src/FrameDecorator/*AbstractFrameDecorator.php*:/895/
>
>
>         → Dompdf\FrameReflower\Page->reflow /(1 arg.)/
>
> $block 	
> NULL
>
> |*891* { *892* // Uncomment this to see the frames before they're laid 
> out, instead of *893* // during rendering. *894* //echo $this->_frame; 
> flush(); _*895* $this->_reflower->reflow($block);_ *896* } *897* *898* 
> /** *899* * @return array |
>
>
>       in .../data/cache/dompdf/dompdf/src/*Dompdf.php*:/838/
>
>
>         → Dompdf\FrameDecorator\AbstractFrameDecorator->reflow /(0 arg.)/
>
> |*834* $root->set_containing_block(0, 0, $canvas->get_width(), 
> $canvas->get_height()); *835* $root->set_renderer(new 
> Renderer($this)); *836* *837* // This is where the magic happens: 
> _*838* $root->reflow();_ *839* *840* // Clean up cached images *841* 
> Cache::clear(); *842* |
>
>
>       in
>      
phar:///home/cfdtcont/www/garradin/data/plugins/dompdf.tar.gz/lib/*PDF.php*:/55/
>
>
>         → Dompdf\Dompdf->render /(0 arg.)/
>
> |*51*	// (Optional) Setup the paper size and orientation *52* 
> $dompdf->setPaper('A4', 'landscape'); *53* *54*	// Render
the HTML as 
> PDF _*55*	$dompdf->render();_ *56* *57*	echo $dompdf->output(); *58* 
> *59*	return true; |
>
>
>         → Garradin\Plugin\Dompdf\PDF::stream /(2 arg.)/
>
> $params 	
> array(2) {
>    ["string"]=> string(8671) "<!DOCTYPE html>
> <html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="fr"
lang="fr" class="" data-version="7f6847ba2c">
> <head>
>      <meta charset="utf-8" />
>      <meta name="v" content="7f6847ba2c" />
>      <title>Bilan</title>
>      <meta name="viewport" content="width=device-width,
initial-scale=1.0" />
>      <link rel="stylesheet" type="text/css"
href="https://compta.sudindustrie3109.fr/admin/static/admin.css?7f6847ba2c" 
media="all" />
>      <script type="text/javascript"
src="https://compta.sudindustrie3109.fr/admin/static/scripts/global.js?7f6847ba2c"></script>
>      
>      
>      
>      
>      <link rel="stylesheet" type="text/css"
href="https://compta.sudindustrie3109.fr/admin/static/print.css?7f6847ba2c" 
media="print" />
>      <link rel="stylesheet" type="text/css"
href="https://compta.sudindustrie3109.fr/admin/static/handheld.css?7f6847ba2c" 
media="handheld,screen and (max-width:981px)" />
>      <link rel="manifest"
href="https://compta.sudindustrie3109.fr/admin/manifest.php"  />
>      
>          <link rel="icon" type="image/png"
href="https://compta.sudindustrie3109.fr/config/favicon.png?1e9c20f1a4" 
/>
>          
> 		<style type="text/css">
> 		:root {
> 			--gMainColor: 0, 51, 180;
> 			--gSecondColor: 255, 64, 255;
> 			--gBgImage:
url("https://compta.sudindustrie3109.fr/config/admin_bg.png?17be6fee6c");
> 		}
> 		</style>
>      
> </head>
>
> <body>
>
>
> <header class="header">
>      <nav class="menu">
>          
>          <figure class="logo">
>          
>          </figure>
>          
>      <ul>
>      
>      
>          <li class="home">
>              <a
href="https://compta.sudindustrie3109.fr/admin/"><b
class="icn">⌂</b><i> Accueil</i></a>
>              
>          </li>
>          
>              <li class="member list"><a
href="https://compta.sudindustrie3109.fr/admin/membres/"><b
class="icn">????</b><i> Membres</i></a>
>              <ul>
>              
>                  <li class="member new"><a
href="https://compta.sudindustrie3109.fr/admin/membres/ajouter.php">Ajouter</a></li>
>              
>         …
> 1 	
> NULL
>
>
>       in .../include/lib/Garradin/*Plugin.php*:/848/
>
>
>         → call_user_func_array /(2 arg.)/
>
> $function_name 	
> string(34) "Garradin\Plugin\Dompdf\PDF::stream"
> $parameters 	
> array(2) {
>    [0]=> array(2) {
>      ["string"]=> string(8671) "<!DOCTYPE html>
> <html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="fr"
lang="fr" class="" data-version="7f6847ba2c">
> <head>
>      <meta charset="utf-8" />
>      <meta name="v" content="7f6847ba2c" />
>      <title>Bilan</title>
>      <meta name="viewport" content="width=device-width,
initial-scale=1.0" />
>      <link rel="stylesheet" type="text/css"
href="https://compta.sudindustrie3109.fr/admin/static/admin.css?7f6847ba2c" 
media="all" />
>      <script type="text/javascript"
src="https://compta.sudindustrie3109.fr/admin/static/scripts/global.js?7f6847ba2c"></script>
>      
>      
>      
>      
>      <link rel="stylesheet" type="text/css"
href="https://compta.sudindustrie3109.fr/admin/static/print.css?7f6847ba2c" 
media="print" />
>      <link rel="stylesheet" type="text/css"
href="https://compta.sudindustrie3109.fr/admin/static/handheld.css?7f6847ba2c" 
media="handheld,screen and (max-width:981px)" />
>      <link rel="manifest"
href="https://compta.sudindustrie3109.fr/admin/manifest.php"  />
>      
>          <link rel="icon" type="image/png"
href="https://compta.sudindustrie3109.fr/config/favicon.png?1e9c20f1a4" 
/>
>          
> 		<style type="text/css">
> 		:root {
> 			--gMainColor: 0, 51, 180;
> 			--gSecondColor: 255, 64, 255;
> 			--gBgImage:
url("https://compta.sudindustrie3109.fr/config/admin_bg.png?17be6fee6c");
> 		}
> 		</style>
>      
> </head>
>
> <body>
>
>
> <header class="header">
>      <nav class="menu">
>          
>          <figure class="logo">
>          
>          </figure>
>          
>      <ul>
>      
>      
>          <li class="home">
>              <a
href="https://compta.sudindustrie3109.fr/admin/"><b
class="icn">⌂</b><i> Accueil</i></a>
>              
>          </li>
>          
>              <li class="member list"><a
href="https://compta.sudindustrie3109.fr/admin/membres/"><b
class="icn">????</b><i> Membres</i></a>
>              <ul>
>              
>                  <li class="member new"><a
href="https://compta.sudindustrie3109.fr/admin/membres/ajouter.php">Ajouter</a></li>…
>
> |*844*	} *845* *846*	$params['plugin_root'] = $path; *847* _*848* 
> $return = call_user_func_array('Garradin\\Plugin\\' . $row->callback,

> [&$params, &$callback_return]);_ *849* *850*	if (true === $return) { 
> *851*	return true; *852*	} |
>
>
>       in .../include/lib/Garradin/*Utils.php*:/996/
>
>
>         → Garradin\Plugin::fireSignal /(2 arg.)/
>
> $signal 	
> string(10) "pdf.stream"
> $params 	
> array(2) {
>    ["string"]=> string(8671) "<!DOCTYPE html>
> <html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="fr"
lang="fr" class="" data-version="7f6847ba2c">
> <head>
>      <meta charset="utf-8" />
>      <meta name="v" content="7f6847ba2c" />
>      <title>Bilan</title>
>      <meta name="viewport" content="width=device-width,
initial-scale=1.0" />
>      <link rel="stylesheet" type="text/css"
href="https://compta.sudindustrie3109.fr/admin/static/admin.css?7f6847ba2c" 
media="all" />
>      <script type="text/javascript"
src="https://compta.sudindustrie3109.fr/admin/static/scripts/global.js?7f6847ba2c"></script>
>      
>      
>      
>      
>      <link rel="stylesheet" type="text/css"
href="https://compta.sudindustrie3109.fr/admin/static/print.css?7f6847ba2c" 
media="print" />
>      <link rel="stylesheet" type="text/css"
href="https://compta.sudindustrie3109.fr/admin/static/handheld.css?7f6847ba2c" 
media="handheld,screen and (max-width:981px)" />
>      <link rel="manifest"
href="https://compta.sudindustrie3109.fr/admin/manifest.php"  />
>      
>          <link rel="icon" type="image/png"
href="https://compta.sudindustrie3109.fr/config/favicon.png?1e9c20f1a4" 
/>
>          
> 		<style type="text/css">
> 		:root {
> 			--gMainColor: 0, 51, 180;
> 			--gSecondColor: 255, 64, 255;
> 			--gBgImage:
url("https://compta.sudindustrie3109.fr/config/admin_bg.png?17be6fee6c");
> 		}
> 		</style>
>      
> </head>
>
> <body>
>
>
> <header class="header">
>      <nav class="menu">
>          
>          <figure class="logo">
>          
>          </figure>
>          
>      <ul>
>      
>      
>          <li class="home">
>              <a
href="https://compta.sudindustrie3109.fr/admin/"><b
class="icn">⌂</b><i> Accueil</i></a>
>              
>          </li>
>          
>              <li class="member list"><a
href="https://compta.sudindustrie3109.fr/admin/membres/"><b
class="icn">????</b><i> Membres</i></a>
>              <ul>
>              
>                  <li class="member new"><a
href="https://compta.sudindustrie3109.fr/admin/membres/ajouter.php">Ajouter</a></li>
>              
>         …
>
> |*992* if (!PDF_COMMAND) { *993* // Try to see if there's a plugin 
> *994* $in = ['string' => $str]; *995* _*996* if 
> (Plugin::fireSignal('pdf.stream', $in)) {_ *997* return; *998* } *999*

> *1000* unset($in); |
>
>
>       in .../include/lib/Garradin/*Template.php*:/37/
>
>
>         → Garradin\Utils::streamPDF /(1 arg.)/
>
> $str 	
> string(8671) "<!DOCTYPE html>
> <html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="fr"
lang="fr" class="" data-version="7f6847ba2c">
> <head>
>      <meta charset="utf-8" />
>      <meta name="v" content="7f6847ba2c" />
>      <title>Bilan</title>
>      <meta name="viewport" content="width=device-width,
initial-scale=1.0" />
>      <link rel="stylesheet" type="text/css"
href="https://compta.sudindustrie3109.fr/admin/static/admin.css?7f6847ba2c" 
media="all" />
>      <script type="text/javascript"
src="https://compta.sudindustrie3109.fr/admin/static/scripts/global.js?7f6847ba2c"></script>
>      
>      
>      
>      
>      <link rel="stylesheet" type="text/css"
href="https://compta.sudindustrie3109.fr/admin/static/print.css?7f6847ba2c" 
media="print" />
>      <link rel="stylesheet" type="text/css"
href="https://compta.sudindustrie3109.fr/admin/static/handheld.css?7f6847ba2c" 
media="handheld,screen and (max-width:981px)" />
>      <link rel="manifest"
href="https://compta.sudindustrie3109.fr/admin/manifest.php"  />
>      
>          <link rel="icon" type="image/png"
href="https://compta.sudindustrie3109.fr/config/favicon.png?1e9c20f1a4" 
/>
>          
> 		<style type="text/css">
> 		:root {
> 			--gMainColor: 0, 51, 180;
> 			--gSecondColor: 255, 64, 255;
> 			--gBgImage:
url("https://compta.sudindustrie3109.fr/config/admin_bg.png?17be6fee6c");
> 		}
> 		</style>
>      
> </head>
>
> <body>
>
>
> <header class="header">
>      <nav class="menu">
>          
>          <figure class="logo">
>          
>          </figure>
>          
>      <ul>
>      
>      
>          <li class="home">
>              <a
href="https://compta.sudindustrie3109.fr/admin/"><b
class="icn">⌂</b><i> Accueil</i></a>
>              
>          </li>
>          
>              <li class="member list"><a
href="https://compta.sudindustrie3109.fr/admin/membres/"><b
class="icn">????</b><i> Membres</i></a>
>              <ul>
>              
>                  <li class="member new"><a
href="https://compta.sudindustrie3109.fr/admin/membres/ajouter.php">Ajouter</a></li>
>              
>                  <li class=""><a h…
>
> |*33*	} *34* *35*	header('Content-type: application/pdf'); *36* 
> header(sprintf('Content-Disposition: attachment;
filename="%s.pdf"', 
> Utils::safeFileName($filename))); _*37*	Utils::streamPDF($out);_ *38* 
> return $this; *39*	} *40* *41*	return parent::display($template); |
>
>
>       in .../www/admin/acc/reports/*balance_sheet.php*:/18/
>
>
>         → Garradin\Template->display /(1 arg.)/
>
> $template 	
> string(29) "acc/reports/balance_sheet.tpl"
>
> |*14*	$years = Years::listClosedAssocExcept($criterias['year']); *15*

> $tpl->assign('other_years', count($years) ? [null => '-- Ne
pas 
> comparer'] + $years : $years); *16*} *17* 
> _*18*$tpl->display('acc/reports/balance_sheet.tpl');_ *19* |
>
>
>     Context
>
> date 	2022-01-08T12:25:07+01:00
> duration 	414.48521614075
> environment 	development
> garradin_data_root 	/home/cfdtcont/www/garradin/data
> garradin_version 	1.1.18
> hostname 	compta.sudindustrie3109.fr
> http_files 	array(0) { }
> http_method 	GET
> http_post 	array(0) { }
> http_referrer 
> https://compta.sudindustrie3109.fr/admin/acc/reports/balance_sheet.php?year=4 
>
> http_user_agent 	Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; 
> rv:95.0) Gecko/20100101 Firefox/95.0
> id 	aw4ud3cb
> language 	PHP 7.4.25
> memory_peak 	12582912
> memory_used 	12582912
> os 	Linux
> php_sapi 	fpm-fcgi
> remote_ip 	109.10.8.131
> root_directory 	/home/cfdtcont/www/garradin
> server_addr 	10.3.20.104
> user_addr 	109.10.8.131
> url 
>
https://compta.sudindustrie3109.fr/admin/acc/reports/balance_sheet.php?year=4&_pdf

>
>

Re: Problème: "Telecharger en pdf"

BohwaZ/Garradin

08/01/2022 19:50:49

Hello,

le bug se produit dans la bibliothèque DomPDF, je pense que c'est
possible que DomPDF ne gère pas les variables CSS.

Dans ce cas il n'y a pas vraiment d'alternative à part refaire
l'intégralité des CSS de Garradin sans variables pour l'impression,
soit améliorer DomPDF, soit simplement utiliser Prince, Chromium ou
autre à la place de DomPDF.

Re: Problème: "Telecharger en pdf"

Marc CHETRIT

08/01/2022 23:42:28

Bonsoir,

La dernière version de Dompdf est la 1.1.1. Utiliser cette version 
pourrait-il permettre de résoudre le problème?

Le 08/01/2022 à 19:50, BohwaZ/Garradin a écrit :
> Hello,
>
> le bug se produit dans la bibliothèque DomPDF, je pense que c'est
> possible que DomPDF ne gère pas les variables CSS.
>
> Dans ce cas il n'y a pas vraiment d'alternative à part refaire
> l'intégralité des CSS de Garradin sans variables pour
l'impression,
> soit améliorer DomPDF, soit simplement utiliser Prince, Chromium ou
> autre à la place de DomPDF.
>

Re: Problème: "Telecharger en pdf"

BohwaZ/Garradin

09/01/2022 18:43:35

Je viens de faire la mise à jour, mais ça ne réglera pas le souci si
j'en crois ça : https://github.com/dompdf/dompdf/issues/1872

qui indique qu'il n'est pas prévu pour le moment chez eux de supporter
les variables CSS.

Je regarderais pour refaire les CSS imprimables dans Garradin à
l'occasion, j'ai ouvert un ticket :
https://fossil.kd2.org/garradin/tktview/6d6d1c75d1b72c1a9a763408fe6dbc206af5a043

Re: Problème: "Telecharger en pdf"

Alain RIVAT

09/01/2022 18:49:41

De mon côté je n'ai absolument pas rencontré ce problème avec DomPDF. A 
tout hasard, j'ai installé la 1.1.1 qui marche aussi bien que la 1.02.
Donc pas si certain que cela que le pb vienne du CSS...
Bonne continuation.

Le 09/01/2022 à 18:42, BohwaZ/Garradin a écrit :
> Je viens de faire la mise à jour, mais ça ne réglera pas le souci si
> j'en crois ça : https://github.com/dompdf/dompdf/issues/1872
>
> qui indique qu'il n'est pas prévu pour le moment chez eux de
supporter
> les variables CSS.
>
> Je regarderais pour refaire les CSS imprimables dans Garradin à
> l'occasion, j'ai ouvert un ticket :
>
https://fossil.kd2.org/garradin/tktview/6d6d1c75d1b72c1a9a763408fe6dbc206af5a043
>

Re: Problème: "Telecharger en pdf"

Marc Chetrit

09/01/2022 19:12:57

Bonsoir,
Comment as tu installé la version 1.1.1? A partir du packagé?


Le dim. 9 janv. 2022 à 18:52, Alain RIVAT <alain.rivat@cegetel.net> a
écrit :

> De mon côté je n'ai absolument pas rencontré ce problème avec DomPDF. A
> tout hasard, j'ai installé la 1.1.1 qui marche aussi bien que la 1.02.
> Donc pas si certain que cela que le pb vienne du CSS...
> Bonne continuation.
>
> Le 09/01/2022 à 18:42, BohwaZ/Garradin a écrit :
> > Je viens de faire la mise à jour, mais ça ne réglera pas le souci si
> > j'en crois ça : https://github.com/dompdf/dompdf/issues/1872
> >
> > qui indique qu'il n'est pas prévu pour le moment chez eux de
supporter
> > les variables CSS.
> >
> > Je regarderais pour refaire les CSS imprimables dans Garradin à
> > l'occasion, j'ai ouvert un ticket :
> >
>
https://fossil.kd2.org/garradin/tktview/6d6d1c75d1b72c1a9a763408fe6dbc206af5a043
> >
>
> --
> . ____
>  / ___|  Liste d'entraide des utilisateurs de Garradin
> | |  _   https://garradin.eu/
> | |_| |
>  \____|  Désinscription : https://garradin.eu/aide/
>

Re: Problème: "Telecharger en pdf"

BohwaZ/Garradin

09/01/2022 20:52:03

Il faut désinstaller/réinstaller le plugin DomPDF après avoir
téléchargé le .tar.gz.

Re: Problème: "Telecharger en pdf"

BohwaZ/Garradin

10/01/2022 15:44:35

L'auteur de DomPDF a corrigé son fichier ZIP, je viens donc de mettre à
jour le plugin en version 1.1.1, je viens de tester et il fonctionne
parfaitement maintenant, en tout cas sur le bilan et le compte de
résultat.

Je t'invite donc à faire la mise à jour du plugin :)

Re: Problème: "Telecharger en pdf"

garra

10/01/2022 17:43:59

Bonjour
Dans la page https://fossil.kd2.org/garradin-plugins/tu as oublié de 
mettre un lien sur "dompdf"  vers le fichier ;)

Merci pour tt !


Le 2022-01-10 15:44, BohwaZ/Garradin a écrit :
> L'auteur de DomPDF a corrigé son fichier ZIP, je viens donc de mettre à
> jour le plugin en version 1.1.1, je viens de tester et il fonctionne
> parfaitement maintenant, en tout cas sur le bilan et le compte de
> résultat.
> 
> Je t'invite donc à faire la mise à jour du plugin :)

Re: Problème: "Telecharger en pdf"

Marc Chetrit

10/01/2022 18:03:33

Le lien se trouve à la fin de la page dans la phrase:
... Les plugins peuvent être téléchargés sur cette page
<https://fossil.kd2.org/garradin-plugins/uvlist>. ...

Le lun. 10 janv. 2022 à 17:56, <garra@ouvaton.org> a écrit :

> Bonjour
> Dans la page https://fossil.kd2.org/garradin-plugins/tu as oublié de
> mettre un lien sur "dompdf"  vers le fichier ;)
>
> Merci pour tt !
>
>
> Le 2022-01-10 15:44, BohwaZ/Garradin a écrit :
> > L'auteur de DomPDF a corrigé son fichier ZIP, je viens donc de mettre
à
> > jour le plugin en version 1.1.1, je viens de tester et il fonctionne
> > parfaitement maintenant, en tout cas sur le bilan et le compte de
> > résultat.
> >
> > Je t'invite donc à faire la mise à jour du plugin :)
>
> --
> . ____
>  / ___|  Liste d'entraide des utilisateurs de Garradin
> | |  _   https://garradin.eu/
> | |_| |
>  \____|  Désinscription : https://garradin.eu/aide/
>

Re: Problème: "Telecharger en pdf"

BohwaZ/Garradin

10/01/2022 18:05:11

Les liens sont ici : https://fossil.kd2.org/garradin-plugins/uvlist

Re: Problème: "Telecharger en pdf"

garra

10/01/2022 18:34:40

Merci à tous les 2 pour le lien ...
Je viens de faire la maj . Par contre (sauf erreur) le fichier VERSION 
n'est pas ds le dernier tar.gz  , du coup ça reste à 1.0.2 chez moi.

Pas très grave
Merci à Marc et à BowhaZ

Le 2022-01-10 18:02, Marc Chetrit a écrit :
> Le lien se trouve à la fin de la page dans la phrase:
> ... Les plugins peuvent être téléchargés sur cette page [1]. ...
> 
> Le lun. 10 janv. 2022 à 17:56, <garra@ouvaton.org> a écrit :
> 
>> Bonjour
>> Dans la page https://fossil.kd2.org/garradin-plugins/tu as oublié
>> de
>> mettre un lien sur "dompdf"  vers le fichier ;)
>> 
>> Merci pour tt !
>> 
>> Le 2022-01-10 15:44, BohwaZ/Garradin a écrit :
>>> L'auteur de DomPDF a corrigé son fichier ZIP, je viens donc de
>> mettre à
>>> jour le plugin en version 1.1.1, je viens de tester et il
>> fonctionne
>>> parfaitement maintenant, en tout cas sur le bilan et le compte de
>>> résultat.
>>> 
>>> Je t'invite donc à faire la mise à jour du plugin :)
>> 
>> --
>> . ____
>> / ___|  Liste d'entraide des utilisateurs de Garradin
>> | |  _   https://garradin.eu/
>> | |_| |
>> \____|  Désinscription : https://garradin.eu/aide/
> 
> 
> Links:
> ------
> [1] https://fossil.kd2.org/garradin-plugins/uvlist

Re: Problème: "Telecharger en pdf"

Alain RIVAT

10/01/2022 19:54:16

J'ai désinstallé la 1.0.2 puis installé la 1.1.1, et désormais, pour les 
deux versions :

PHP error

Warning: file_exists(): open_basedir restriction in effect. 
File(/tmp/log.htm) is not within the allowed path(s):

(/var/www/alternc/x/xxxxx:/usr/share/php/)


Le problème vient peut être de mon hébergeur (infini) ???

Bizarre...


Le 10/01/2022 à 15:44, BohwaZ/Garradin a écrit :
> L'auteur de DomPDF a corrigé son fichier ZIP, je viens donc de mettre à
> jour le plugin en version 1.1.1, je viens de tester et il fonctionne
> parfaitement maintenant, en tout cas sur le bilan et le compte de
> résultat.
>
> Je t'invite donc à faire la mise à jour du plugin :)
>