2017 © Pedro Peláez
 

library booya-pdf

PDF response class for Booya framework

image

kekos/booya-pdf

PDF response class for Booya framework

  • Saturday, July 30, 2016
  • by Kekos
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PDF response class for Booya PHP framework

Create PDF documents with help from Booya templates with DOMPDF., (*1)

Install

You can install Booya PDF via Composer:, (*2)

composer require kekos/booya-pdf

API

response = new PdfResponse();

    $content_template = new FileTemplate(ROOT . '/src/view/my_pdf_content');
    $this->response->addTemplate($template);
  }
}
?>

__construct($paper_size, $orientation, $public_dir)

Constructor, (*3)

  • $paper_size (string, default is 'A4') - Paper size
  • $orientation (string, default is 'portrait') - Paper orientation
  • $paper_size (string, default is 'public') - Directory where Dompdf should look for public assets

setStyleSheetPath($path)

Sets the path to CSS stylesheet to use. Set $path to NULL if no stylesheet should be used., (*4)

  • $path (string) - Absolute path to stylesheet

addTemplate($template)

Adds template to current PDF document., (*5)

  • $template (\Booya\Template) - Template

render($filename)

Render the PDF to output buffer., (*6)

  • $filename (string, default is to use DOMPDF's default) - Filename without ".pdf" extension

renderToFile($filepath)

Render the PDF to file., (*7)

  • $filepath (string, mandatory) - Absolute path to store current PDF at

Bugs and improvements

Report bugs in GitHub issues or feel free to make a pull request :-), (*8)

License

MIT, (*9)

The Versions

30/07 2016

dev-master

9999999-dev https://github.com/Kekos/booya-pdf

PDF response class for Booya framework

  Sources   Download

MIT

The Requires

 

pdf dompdf booya

30/07 2016

v1.0.0

1.0.0.0 https://github.com/Kekos/booya-pdf

PDF response class for Booya framework

  Sources   Download

MIT

The Requires

 

pdf dompdf booya