I am using TCPDF to create PDF documents. I want to use small caps in my header, but I failed.
Here is my header code:
Version 1
<?php
require_once('tcpdf/tcpdf.php');
class MYPDF extends TCPDF {
    //Page header
    public function Header() {
        // Logo
        $image_file ='image/pacra.jpg';
        $this->Image($image_file, 100, 05, 20);
        // Set font
        $this->SetFont('times', 15);
        // Title
      $this->Cell(0,57, 'Trying To Use Small Caps', 0, false, 'C', 0, '', 0, false);
        $this->Line(10,32,200,32);
Version 2
<?php
require_once('tcpdf/tcpdf.php');
class MYPDF extends TCPDF {
    //Page header
    public function Header() {
        // Logo
        $image_file ='image/pacra.jpg';
        $this->Image($image_file, 100, 05, 20);
        // Set font
        $this->SetFont('times', 15);
        $str = 'Trying To Use Small Caps';
        $str = preg_replace("/([a-z]+)/e","strtoupper('<small>\\1</small>')",$str);
        $str= $this->writeHTML($str);
This code is working but I want to set XY axis of text.