Skip to content

Commit

Permalink
Improved mpdf variables documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
robregonm committed Sep 5, 2014
1 parent c256e9a commit 8613f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ return [
'marginBottom' => 16, // Optional
'marginHeader' => 9, // Optional
'marginFooter' => 9, // Optional
'orientation' => 'Landscape', // optional. Skipped when format includes "-L" suffix
'orientation' => 'Landscape', // optional. This value will be ignored if format is a string value.
'options' => [
// mPDF Variables
'fontdata' => [
Expand All @@ -70,7 +70,7 @@ class MyController extends Controller {

//Can you it if needed to rotate the page
Yii::$container->set(Yii::$app->response->formatters['pdf']['class'], [
'orientation' => 'Landscape', // Only valid if "format" has NOT set "-L" or "-P" suffix
'orientation' => 'Landscape', // This value will be ignored if format is a string value.
'beforeRender' => function($mpdf, $data) {},
]);

Expand Down

0 comments on commit 8613f84

Please sign in to comment.