Skip to content

xsuchy09/nette-pdf-response

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nette-pdf-response

PdfResponse for Nette.

Install

composer require xsuchy09/nette-pdf-response

Usage

class SomePresenter extends BasePresenter
{
	public function actionDefault()
	{
		// $pdfCreator is yours pdf library
		$pdfCreator = new ...
		//  which will return pdf as data here
		$data = $pdfCreator->getData();

		$response = new \xsuchy09\Application\Responses\PdfResponse($data, 'download.pdf');
		$this->sendResponse($response);
	}
}

About

PdfResponse for Nette.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages