Yii Framework Forum: TCPDF - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

TCPDF Tcpdf in Yii2 Rate Topic: -----

#1 User is offline   lcnlcn 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 01-October 14

Posted 23 May 2018 - 01:54 AM

Buongiorno vorrei aggiungere nel mio progetto la libreria tcpdf.Non Sono riuscito a trovare nessuna iinformaxione . Mi date qualche suggerimento in merito ? Grazie in sntivipo
0

#2 User is offline   Fabrizio Caldarelli 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,073
  • Joined: 21-March 13
  • Location:Rome, Italy

Posted 23 May 2018 - 02:22 AM

Installa il pacchetto con

php composer.phar require tecnickcom/tcpdf


Poi dentro la view carichi la libreria con:

<?php
require_once( \Yii::getAlias('@vendor/tecnickcom/tcpdf/tcpdf.php') );


$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);

?>

Yii2 by example: my book about Yii2
https://www.packtpub...nt/yii2-example
0

#3 User is offline   lcnlcn 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 01-October 14

Posted 23 May 2018 - 03:24 AM

Grazie
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users