kartik-v / yii2-mpdf

A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.
http://demos.krajee.com/mpdf
Other
161 stars 150 forks source link

Weird output #49

Closed zhukovsergei closed 7 years ago

zhukovsergei commented 7 years ago

Hello After installing "kartik-v/yii2-mpdf": "dev-master" last versions, I have this out put: `

header("Content-type:application/pdf");

$content = $this->renderPartial('_park_pdf');

$pdf = new Pdf([
  // set to use core fonts only
  'mode' => Pdf::MODE_CORE,
  // A4 paper format
  'format' => Pdf::FORMAT_A4,
  // portrait orientation
  'orientation' => Pdf::ORIENT_PORTRAIT,
  // stream to browser inline
  'destination' => Pdf::DEST_BROWSER,
  // your html content input
  'content' => $content,

  // set mPDF properties on the fly
  'options' => ['title' => 'Krajee Report Title'],

]);

// return the pdf output as per the destination setting
return $pdf->render();`

https://db.tt/A3MWGJLgWf Is it good output?

zhukovsergei commented 7 years ago

// 'mode' => Pdf::MODE_BLANK,