Download the PHP package medilies/ctrl-p without Composer
On this page you can find all versions of the php package medilies/ctrl-p. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download medilies/ctrl-p
More information about medilies/ctrl-p
Files in medilies/ctrl-p
Download medilies/ctrl-p
More information about medilies/ctrl-p
Files in medilies/ctrl-p
Vendor medilies
Package ctrl-p
Short Description Delegate HTML to PDF conversion to the browser
License MIT
Homepage https://github.com/medilies/ctrl-p
Package ctrl-p
Short Description Delegate HTML to PDF conversion to the browser
License MIT
Homepage https://github.com/medilies/ctrl-p
Please rate this library. Is it a good library?
Informations about the package ctrl-p
Ctrl P
Setup
Requirements
- PHP 8.1
Usage
Set the HTML
- Use
CtrlP::html('foo')
or$ctrlP->setHtml('foo')
to set the HTML. - Use
CtrlP::template('<?php echo "foo";', [])
or$ctrlP->template('<?php echo "foo";', [])
to set the HTML from a PHP template.
Set page size and orientation
- Use
format($paperFormat)
to set a standard paper format. - Use
landscape()
orportrait()
to direct the chosen paper format. - Use
paperSize($width, $height)
to set an explicit size.
Margin
Use margins($margins)
to set the margins.
Margins (header and footer) content cannot be be edited as of december 2023 because no browser supports it (see)
Control
- Use
printButton($bool)
to add/remove a print button. - Use
backUrl($url)
to add/remove a button with a link to a page of your choice. - Use
autoPrint()
to automatically print the page after rendering it.
Overrides
- Use
title($title)
to override the title. - Use
urlPath($url)
to override the url path.
Example
All versions of ctrl-p with dependencies
PHP Build Version
Package Version
The package medilies/ctrl-p contains the following files
Loading the files please wait ....