public function pdf()
    {
        if ('snappy' == config('datatables-buttons.pdf_generator', 'snappy')) {
            return $this->snappyPdf();
        }

        return $this->buildExcelFile()->download($this->getFilename() . '.pdf', $this->pdfWriter);
    }
public function pdf()
    {
        if ('snappy' == config('datatables-buttons.pdf_generator', 'snappy')) {
            return $this->snappyPdf();
        }

        return $this->buildExcelFile()->download($this->getFilename() . '.pdf', $this->pdfWriter);
    }
public function pdf ( ) { if ( 'snappy' == config ( 'datatables-buttons.pdf_generator' , 'snappy' ) ) { return $ this -> snappyPdf ( ) ; } return $ this -> buildExcelFile ( ) -> download ( $ this -> getFilename ( ) . '.pdf' , $ this -> pdfWriter ) ; }
Export results to PDF file.

@return mixed
Export results to PDF file .