Welcome Guest, Not a member yet? Register   Sign In
Where to create page plugin in dompdf ?
#1

[eluser]sovandy[/eluser]
Hello everyone,

As I told you I just start using Codeigniter, so I'm not so clear about how to use it.
Now I want to make a report to in dompdf. However, I don know where to do with it.
I've download it and place in plugin folder already.

Please everyone help me some guide and give some description about functions of plugin.

Thanks,
SOVANDY
#2

[eluser]Thorpe Obazee[/eluser]
Look at this: http://ellislab.com/forums/viewthread/45118/
#3

[eluser]sovandy[/eluser]
Yes I do,but I don understand the 3rd point.


3) Create the plugin. I’ve named it “to_pdf_pi.php”.

????
#4

[eluser]Thorpe Obazee[/eluser]
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
function pdf_create($html, $filename)
{
require_once("dompdf/dompdf_config.inc.php");

$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream($filename.".pdf");
}
?>

name this file to “to_pdf_pi.php”
#5

[eluser]sovandy[/eluser]
I know this is a function of dompdf.

Where to put it:
C:\xampp\htdocs\Project_v5\system\plugins\file.php ?
or

C:\xampp\htdocs\Project_v5\system\plugins\dompdf\ file.php?
or

C:\xampp\htdocs\Project_v5\system\plugins\dompdf\www\ file.php ?

or any whre?


I just want to export my data to pdf file to do a report.
#6

[eluser]Thorpe Obazee[/eluser]
I'm confused. You just want to export the data and you don't want it as part of your application? If yes, PHPmyadmin has an export to PDF function for this.
#7

[eluser]sovandy[/eluser]
My report is that:
I want a report about book borrowing and visitors' information.
In book management, I need to show book_title, who borrow it, when will they pay back to the librarian....

I think in phpmyadmin I can not create code like that. In BorrowingManagement I display all the information of borrowing. I have a button which allows user to create a pdf report.

I think I want to use function to create report to pdf file.

Thank you,
#8

[eluser]Thorpe Obazee[/eluser]
I suggest you download bambooinvoice from bambooinvoice.org and see how it works there.




Theme © iAndrew 2016 - Forum software by © MyBB