Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Community Voice - Generating PDF files using CodeIgniter
#50

[eluser]LTFMIKE[/eluser]
First of all ,
Hello to everyone ,
I am discovering This framework while starting a new project for a completely new job for me.
I'am interesting by this class concerning pdf document.
I've read all the page in the forum but i didn't found an answer.

here's is my problem.


I just want to open a pdf.file inside a specific div :
for example :
in my controller :

if (isset($_GET['fichier']))$data['fichier'] = $_GET['fichier']; ---< which is a previous pdf file clicked
$this->load->view('cadre/test',$data);

in my views :

<div>&lt;?php readgzfile(base_url().$fichier);?&gt;</div>

for the moment , I tried a lot of think , including : $this->load->helper('file');
before loading my views.

i tried to use : readfile ()

readgzfile()

but result is always displayed like that : PDF READER :
%PDF-1.4 %Ç쏢 5 0 obj <> stream xœµYY’5.^û~£›ª6–Ù~à–„äg)–¢BfËLÂ$¬wᜉpäÝ=í øÉ<IJdë“ä–%ÿLpL„¿2xx>QNëÂ�Tìé£ ´“ÑHŽ–)�Á@höôtú:³´ÆÀ’ÆéË,©Åž%Ø£ 50㤋{ji:.·FyEÈJ


please , i need help to continue this project ,
I like to use CodeIgniter and i want to continue white it.

Is my problem can be solved easily ?

Thanks for reading me , and excuse me for my very bad english !!!

Regards.

MIKE.


Messages In This Thread
CodeIgniter Community Voice - Generating PDF files using CodeIgniter - by El Forum - 07-20-2010, 10:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB