Spaces:
Sleeping
Sleeping
Download processmaker-files/thirdparty/html2ps_pdf/box.body.php from kenken999/processmaker-community: direct link, hf CLI and curl.
- Browser
- Download file 840 Bytes
-
https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/thirdparty/html2ps_pdf/box.body.php
- Command line
-
hf download hf://spaces/kenken999/processmaker-community/processmaker-files/thirdparty/html2ps_pdf/box.body.php
-
curl -L -o box.body.php https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/thirdparty/html2ps_pdf/box.body.php
840 Bytes
| class BodyBox extends BlockBox { | |
| function &create(&$root, &$pipeline) { | |
| $box = new BodyBox(); | |
| $box->readCSS($pipeline->getCurrentCSSState()); | |
| $box->create_content($root, $pipeline); | |
| return $box; | |
| } | |
| function get_bottom_background() { | |
| return $this->get_bottom_margin(); | |
| } | |
| function get_left_background() { | |
| return $this->get_left_margin(); | |
| } | |
| function get_right_background() { | |
| return $this->get_right_margin(); | |
| } | |
| function get_top_background() { | |
| return $this->get_top_margin(); | |
| } | |
| function reflow(&$parent, &$context) { | |
| parent::reflow($parent, $context); | |
| // Extend the body height to fit all contained floats | |
| $float_bottom = $context->float_bottom(); | |
| if (!is_null($float_bottom)) { | |
| $this->extend_height($float_bottom); | |
| }; | |
| } | |
| } | |