$text = "テキスト";
$verticalText = implode("\n", preg_split('//u', $text, -1, PREG_SPLIT_NO_EMPTY));
$pdf->MultiCell(0, 0, $verticalText, 0, 'L', 0, 1);
$pdf->StartTransform();
$pdf->Rotate(90, $x, $y); // $x, $y は回転中心座標
$pdf->Text($x, $y, '縦書きテキスト');
$pdf->StopTransform();
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme