Render Custom parameter

Web Tips Q & ACategory: Krajee Yii2 ExtensionsRender Custom parameter
pritamasl asked 1 month ago

How to pass custom parameter through render section for Global usage. Like If I need Landscape orientation for a single page how to pass Pdf::ORIENT_LANDSCAPE.

$pdf = Yii::$app->pdf;
$pdf->content ="Hello World";
return $pdf->render();

Login or register to contribute or comment.

Login   Register