Php uses tcpdf, pdf files generated by html, contract seals (pictures) misplaced? How do you need to solve it?

php uses tcpdf, and the pdf file generated by html is misplaced in the contract seal. What do you need to do?

1. Typesetting under html is correct, as shown in figure

2html

3pdf

I don"t know what the problem is and how to solve it?

Jun.30,2022

$pdf- > Image (), just calculate the position of x and y, and generally determine the size of the picture. The following is used when I used it recently. You can refer to

   public function createSeal($filePath,$w=20,$h=20,$padding_right=15){
        $pic_x = max(0,$this->getPageWidth()-$w-$padding_right);
        $pic_y = max(0,$this->getY()-20);
        $this->Image($filePath,$pic_x,$pic_y,$w,$h);
    }

if you can output that seal as a picture.


excuse me, how to display the picture in the lower left corner of the last page (or the specified number of pages)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9188a-4e834.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9188a-4e834.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?