app/Report/ReportHtml.php
public function setup(): void
    {
        parent::setup();

        // Setting up the correct dimensions if Portrait (default) or Landscape
        if ($this->orientation === 'landscape') {
            $tmpw              = $this->page_width;
            $this->page_width  = $this->page_height;
            $this->page_height = $tmpw;
        }
        // Store the pagewidth without margins
        $this->noMarginWidth = $this->page_width - $this->left_margin - $this->right_margin;
        // If RTL
        if ($this->rtl) {
            $this->alignRTL  = 'right';
            $this->entityRTL = '&rlm;';
        }
        // Change the default HTML font name
        $this->default_font = 'Arial';

        if ($this->show_generated_by) {
            // The default style name for Generated by.... is 'genby'
            $element = new ReportHtmlCell(0, 10, 0, 'C', '', 'genby', 1, ReportBaseElement::CURRENT_POSITION, ReportBaseElement::CURRENT_POSITION, 0, 0, '', '', true);
            $element->addText($this->generated_by);
            $element->setUrl(Webtrees::VERSION);
            $this->footerElements[] = $element;
        }
    }
public function setup(): void
    {
        parent::setup();

        // Setting up the correct dimensions if Portrait (default) or Landscape
        if ($this->orientation === 'landscape') {
            $tmpw              = $this->page_width;
            $this->page_width  = $this->page_height;
            $this->page_height = $tmpw;
        }
        // Store the pagewidth without margins
        $this->noMarginWidth = $this->page_width - $this->left_margin - $this->right_margin;
        // If RTL
        if ($this->rtl) {
            $this->alignRTL  = 'right';
            $this->entityRTL = '&rlm;';
        }
        // Change the default HTML font name
        $this->default_font = 'Arial';

        if ($this->show_generated_by) {
            // The default style name for Generated by.... is 'genby'
            $element = new ReportHtmlCell(0, 10, 0, 'C', '', 'genby', 1, ReportBaseElement::CURRENT_POSITION, ReportBaseElement::CURRENT_POSITION, 0, 0, '', '', true);
            $element->addText($this->generated_by);
            $element->setUrl(Webtrees::VERSION);
            $this->footerElements[] = $element;
        }
    }
public function setup ( ) : void { parent :: setup ( ) ; // Setting up the correct dimensions if Portrait (default) or Landscape if ( $ this -> orientation === 'landscape' ) { $ tmpw = $ this -> page_width ; $ this -> page_width = $ this -> page_height ; $ this -> page_height = $ tmpw ; } // Store the pagewidth without margins $ this -> noMarginWidth = $ this -> page_width - $ this -> left_margin - $ this -> right_margin ; // If RTL if ( $ this -> rtl ) { $ this -> alignRTL = 'right' ; $ this -> entityRTL = '&rlm;' ; } // Change the default HTML font name $ this -> default_font = 'Arial' ; if ( $ this -> show_generated_by ) { // The default style name for Generated by.... is 'genby' $ element = new ReportHtmlCell ( 0 , 10 , 0 , 'C' , '' , 'genby' , 1 , ReportBaseElement :: CURRENT_POSITION , ReportBaseElement :: CURRENT_POSITION , 0 , 0 , '' , '' , true ) ; $ element -> addText ( $ this -> generated_by ) ; $ element -> setUrl ( Webtrees :: VERSION ) ; $ this -> footerElements [ ] = $ element ; } }
HTML Setup - ReportHtml

@return void
HTML Setup - ReportHtml