2017 © Pedro Peláez
 

yii2-extension yii2-pdfprint

Load PDF into iframe and call print.

image

dixonstarter/yii2-pdfprint

Load PDF into iframe and call print.

  • Monday, October 17, 2016
  • by dixonsatit
  • Repository
  • 1 Watchers
  • 7 Stars
  • 1,994 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 47 % Grown

The README.md

PdfPrint

Load PDF into iframe and call print., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

ezgif.com-video-to-gif.gif, (*3)

Either run, (*4)

php composer.phar require --prefer-dist dixonstarter/yii2-pdfprint "*"

or add, (*5)

"dixonstarter/yii2-pdfprint": "*"

to the require section of your composer.json file., (*6)

Usage

Once the extension is installed, simply use it in your code by :, (*7)

<?= \dixonstarter\pdfprint\Pdfprint::widget([
  'elementClass' => '.btn-pdfprint'
]);?>
<a href="url/test.pdf" class="btn-pdfprint">open</a>

in GridView, (*8)


= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ [ 'class' => 'yii\grid\SerialColumn', 'options'=>['style'=>'width:30px;'], 'contentOptions'=>['class'=>'text-center'] ], // use in column [ 'attribute'=>'value', 'format'=>'html', 'value'=>function($model){ return Html::a('',['pdf/url'],['class'=>'btn-pdfprint btn btn-default','data-pjax'=>'0']); } ], // use in ActionColumn [ 'class' => 'yii\grid\ActionColumn', 'header'=>'Actions', 'options'=>['style'=>'width:150px;'], 'buttonOptions'=>['class'=>'btn btn-default'], 'template'=>'
{print} {view} {update} {delete}
', 'buttons'=>[ 'print'=>function($url,$model){ return Html::a('',['pdf/url'],['class'=>'btn-pdfprint btn btn-default','data-pjax'=>'0']); } ] ], ], ]); ?>

The Versions

17/10 2016

dev-master

9999999-dev

Load PDF into iframe and call print.

  Sources   Download

MIT

The Requires

 

by sathit seethaphon

extension iframe yii2 print pdf print

17/10 2016

dev-develop

dev-develop

Load PDF into iframe and call print.

  Sources   Download

MIT

The Requires

 

by sathit seethaphon

extension iframe yii2 print pdf print

17/10 2016

1.3

1.3.0.0

Load PDF into iframe and call print.

  Sources   Download

MIT

The Requires

 

by sathit seethaphon

extension iframe yii2 print pdf print

26/05 2016

1.1

1.1.0.0

Load PDF into iframe and call print.

  Sources   Download

MIT

The Requires

 

by sathit seethaphon

extension iframe yii2 print pdf print

26/05 2016

1.0

1.0.0.0

Load PDF into iframe and call print.

  Sources   Download

MIT

The Requires

 

by sathit seethaphon

extension iframe yii2 print pdf print

25/05 2016

0.5

0.5.0.0

Load PDF into iframe and call print.

  Sources   Download

MIT

The Requires

 

by sathit seethaphon

extension iframe yii2 print pdf print