Re: Re: Does anyone here use TCPDF? [SOLVED]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PHP Users,

Finally got a working solution by using TCPDF and FPDI:

  require_once('tcpdf.php');
  require_once('fpdi.php');

  $pdf = new FPDI();

  $pdf->AddPage();

  $pdf->setSourceFile('template.pdf');
  $tplIdx = $pdf->importPage(1);
  $pdf->useTemplate($tplIdx);

  $pdf->SetFont('kozminproregular', '', 10);

  $pdf->SetXY(45, 190);
  $pdf->Write(0, "日本語");

  $pdf->Output("sample.pdf", "D");

Hope that helps others.

-- 
Dave M G

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux