Spaces:
Running
Running
Download application/controllers/c_project/Pdfexample.php from cappucaine/ERP: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/spaces/cappucaine/ERP/resolve/main/application/controllers/c_project/Pdfexample.php
- Command line
-
hf download hf://spaces/cappucaine/ERP/application/controllers/c_project/Pdfexample.php
-
curl -L -o Pdfexample.php https://huggingface.co/spaces/cappucaine/ERP/resolve/main/application/controllers/c_project/Pdfexample.php
614 Bytes
| /* | |
| * Author = Dian Hermanto | |
| * Create Date = 15 Maret 2017 | |
| * File Name = Qhsedocument.php | |
| * Location = - | |
| */ | |
| class Pdfexample extends CI_Controller | |
| { | |
| function index() | |
| { | |
| $this->load->library('Pdf'); | |
| $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false); | |
| $pdf->SetTitle('Pdf Example'); | |
| $pdf->SetHeaderMargin(30); | |
| $pdf->SetTopMargin(20); | |
| $pdf->setFooterMargin(20); | |
| $pdf->SetAutoPageBreak(true); | |
| $pdf->SetAuthor('Author'); | |
| $pdf->SetDisplayMode('real', 'default'); | |
| $pdf->Write(5, 'CodeIgniter TCPDF Integration'); | |
| $pdf->Output('pdfexample.pdf', 'I'); | |
| } | |
| } |