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?
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?
$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)
php uses tcpdf, and the pdf file generated by html has misplaced text paragraphs. What do you need to do? text paragraphs are normal for typesetting under html, that is, when generating pdf files, text paragraphs are misplaced 1 and html, as shown in ...
1. The front-end ajax submits data to php _ html as the content to generate pdf (html code) _ name as the file name to generate psdf $.ajax({ type: "POST", dataType: "json", url: "{...