문제

I have here two images:

First is the view coded sample.php under TCPDF (that's understandable)

enter image description here

Second is the view which will display after Ctrl+P is typed (in Chrome):

enter image description here

How do I make the print view the same on the first image? Does this have something to do on my code in sample.php? Any advice is really appreciated and may add new learning to me. Thanks.

도움이 되었습니까?

해결책

Printers generally have a default offset so Chrome is applying that additional offset to your PDF before printing it.

You might have to change some settings in your print driver but to start try unchecking Fit to page

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top