我希望使用TCPDF设置一些文本块,但是我在字体大小方面遇到了一些问题。第一个文本块位于x-y / 5-5,并且它的字体大小为5。但它比5还要小。TCPDF中的字体大小与其他尺寸不是相同的单位吗?
$text1 = 'AAAg';
$text1_x = 5;
$text1_y = 5;
$text1_font_size = 5;
$text2 = 'BBBg';
$text2_x = 10;
$text2_y = 10;
$text2_font_size = 10;
$text3 = 'CCCg';
$text3_x = 15;
$text3_y = 15;
$text3_font_size = 15;
// I tried $pdf->Cell and $pdf->Text... both are doing the same...
mm
,你的示例完美地运行了。 - user285594