https://github.com/atiksoftware/php-html_to_pdf
Convert html to pdf files with smarty template engine. Download as file or display on browser.
https://github.com/atiksoftware/php-html_to_pdf
Last synced: about 1 month ago
JSON representation
Convert html to pdf files with smarty template engine. Download as file or display on browser.
- Host: GitHub
- URL: https://github.com/atiksoftware/php-html_to_pdf
- Owner: atiksoftware
- License: mit
- Created: 2020-10-01T08:10:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T09:36:24.000Z (over 5 years ago)
- Last Synced: 2025-01-16T00:56:32.933Z (over 1 year ago)
- Language: PHP
- Size: 418 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Html To Pdf File
[]()
[]()
[]()
[]()
[]()
Convert html to pdf files with smarty template engine. Download as file or display on browser.

### Needs:
```bash
$ composer require smarty/smarty
$ composer require leafo/lessphp
$ composer require knplabs/knp-snappy
```
Also you should download `wkhtmltopdf`:
if you are in 32/64 bit Windows based system:
```bash
$ composer require wemersonjanuario/wkhtmltopdf-windows
```
if you are in 32 bit Linux based system:
```bash
$ composer require h4cc/wkhtmltopdf-i386 0.12.x
$ composer require h4cc/wkhtmltoimage-i386 0.12.x
```
or this if you are in 64 bit based system:
```bash
$ composer require h4cc/wkhtmltopdf-amd64 0.12.x
$ composer require h4cc/wkhtmltoimage-amd64 0.12.x
```
> :warning: **If you are using CSS3 properties like Flex,BorderRadius etc**: You should use -webkit prefixes
You can follow https://autoprefixer.github.io/
---
## How to use
If you have enough experience about PHP, you not need this directive.
+ Create your html files in `html` folder as .tlp(smart format)
+ Create your style files in `style` folder as .less format
+ first call smarty fetch
+ then call pdfgenerator functions
### Also Read Comments in `index.php`
---
#### If you like this document, you can give a star. Thank you
**Amiral Router!**