public function snappyPdf()
    {
        /** @var \Barryvdh\Snappy\PdfWrapper $snappy */
        $snappy      = resolve('snappy.pdf.wrapper');
        $options     = config('datatables-buttons.snappy.options');
        $orientation = config('datatables-buttons.snappy.orientation');

        $snappy->setOptions($options)->setOrientation($orientation);

        return $snappy->loadHTML($this->printPreview())->download($this->getFilename() . '.pdf');
    }
public function snappyPdf()
    {
        /** @var \Barryvdh\Snappy\PdfWrapper $snappy */
        $snappy      = resolve('snappy.pdf.wrapper');
        $options     = config('datatables-buttons.snappy.options');
        $orientation = config('datatables-buttons.snappy.orientation');

        $snappy->setOptions($options)->setOrientation($orientation);

        return $snappy->loadHTML($this->printPreview())->download($this->getFilename() . '.pdf');
    }
public function snappyPdf ( ) { /** @var \Barryvdh\Snappy\PdfWrapper $snappy */ $ snappy = resolve ( 'snappy.pdf.wrapper' ) ; $ options = config ( 'datatables-buttons.snappy.options' ) ; $ orientation = config ( 'datatables-buttons.snappy.orientation' ) ; $ snappy -> setOptions ( $ options ) -> setOrientation ( $ orientation ) ; return $ snappy -> loadHTML ( $ this -> printPreview ( ) ) -> download ( $ this -> getFilename ( ) . '.pdf' ) ; }
PDF version of the table using print preview blade template.

@return mixed
PDF version of the table using print preview blade template .