__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
<?php

/**
 * This file is part of FPDI
 *
 * @package   setasign\Fpdi
 * @copyright Copyright (c) 2023 Setasign GmbH & Co. KG (https://www.setasign.com)
 * @license   http://opensource.org/licenses/mit-license The MIT License
 */

namespace setasign\Fpdi;

use setasign\Fpdi\Math\Matrix;
use setasign\Fpdi\Math\Vector;

/**
 * A simple graphic state class which holds the current transformation matrix.
 */
class GraphicsState
{
    /**
     * @var Matrix
     */
    protected $ctm;

    /**
     * @param Matrix|null $ctm
     */
    public function __construct(Matrix $ctm = null)
    {
        if ($ctm === null) {
            $ctm = new Matrix();
        }

        $this->ctm = $ctm;
    }

    /**
     * @param Matrix $matrix
     * @return $this
     */
    public function add(Matrix $matrix)
    {
        $this->ctm = $matrix->multiply($this->ctm);
        return $this;
    }

    /**
     * @param int|float $x
     * @param int|float $y
     * @param int|float $angle
     * @return $this
     */
    public function rotate($x, $y, $angle)
    {
        if (abs($angle) < 1e-5) {
            return  $this;
        }

        $angle = deg2rad($angle);
        $c = cos($angle);
        $s = sin($angle);

        $this->add(new Matrix($c, $s, -$s, $c, $x, $y));

        return $this->translate(-$x, -$y);
    }

    /**
     * @param int|float $shiftX
     * @param int|float $shiftY
     * @return $this
     */
    public function translate($shiftX, $shiftY)
    {
        return $this->add(new Matrix(1, 0, 0, 1, $shiftX, $shiftY));
    }

    /**
     * @param int|float $scaleX
     * @param int|float $scaleY
     * @return $this
     */
    public function scale($scaleX, $scaleY)
    {
        return $this->add(new Matrix($scaleX, 0, 0, $scaleY, 0, 0));
    }

    /**
     * @param Vector $vector
     * @return Vector
     */
    public function toUserSpace(Vector $vector)
    {
        return $vector->multiplyWithMatrix($this->ctm);
    }
}

Filemanager

Name Type Size Permission Actions
Math Folder 0777
PdfParser Folder 0777
PdfReader Folder 0777
Tcpdf Folder 0777
Tfpdf Folder 0777
FpdfTpl.php File 389 B 0777
FpdfTplTrait.php File 14.11 KB 0777
FpdfTrait.php File 6.51 KB 0777
Fpdi.php File 748 B 0777
FpdiException.php File 355 B 0777
FpdiTrait.php File 22.96 KB 0777
GraphicsState.php File 1.93 KB 0777
TcpdfFpdi.php File 559 B 0777
autoload.php File 629 B 0777
readme_moodle.txt File 726 B 0777
Filemanager