This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » General plug-ins » how do you install fpdf
icon4.gif  how do you install fpdf [message #37407] Mon, 15 October 2007 08:47 Go to next message
xxxskunk  is currently offline xxxskunk
Messages: 8
Registered: October 2007
Location: southafrica
Junior Member

hi i need to make an application on symfony to make a pdf export system. i get a php page, and i need to transpose it on pdf

i'm supposed to use fpdf, unless you have something better

help!!


i love symfony, but it's too complicated!!!
Re: how do you install fpdf [message #37414 is a reply to message #37407 ] Mon, 15 October 2007 10:26 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
There's a couple of PDF libraries here:

http://trac.symfony-project.com/wiki/SymfonyPlugins

Instructions are provided, I believe.


Remember Palestine
Re: how do you install fpdf [message #37429 is a reply to message #37414 ] Mon, 15 October 2007 12:19 Go to previous messageGo to next message
xxxskunk  is currently offline xxxskunk
Messages: 8
Registered: October 2007
Location: southafrica
Junior Member

i have worked with fpdf, it seems fairly simple and well organised.
where do i add the files to include them in symfony.
is it in my plugins folder in my symfony root or my website's root plugins?
Crying or Very Sad


i love symfony, but it's too complicated!!!
Re: how do you install fpdf [message #37558 is a reply to message #37429 ] Wed, 17 October 2007 07:27 Go to previous messageGo to next message
xxxskunk  is currently offline xxxskunk
Messages: 8
Registered: October 2007
Location: southafrica
Junior Member

just downloaded sfpdf, and i dunno where to include the folder to make it work and where i can be able to use its classes


i love symfony, but it's too complicated!!!
icon10.gif  Re: how do you install fpdf [message #37572 is a reply to message #37558 ] Wed, 17 October 2007 10:39 Go to previous messageGo to next message
xxxskunk  is currently offline xxxskunk
Messages: 8
Registered: October 2007
Location: southafrica
Junior Member

ok, you will find this funny Very Happy

the symfony plugin install command for sfFPDF plugin seems not to work (it gave me install failed command)

so since i could not wait for your replies Evil or Very Mad i decided to include a folder which i called fpdf in the lib folder of my symfony project, i repeat symfony project, not module Very Happy . ive included my fpdf files downloaded from www.fpdf.org, with the font folder as well.

i typed this code:
<?php
//require('fpdf.php');
$pdf=new FPDF();
$pdf->AddPage();
//$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();
?>

in a file (stored in frontend\modules\user\templates) called myActionSuccess.php

in my actions.class.php, i created the following function
public function executeMyAction()
{
}

and after refreshing the cache, did not work
gave this:
%PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream x�3R��2�35W(�r Q06�3�T0���36WIQ��H���W�/�IQ�T Rp �

HELP! Mad Mad Mad


i love symfony, but it's too complicated!!!
Re: how do you install fpdf [message #37726 is a reply to message #37572 ] Fri, 19 October 2007 06:28 Go to previous messageGo to next message
xxxskunk  is currently offline xxxskunk
Messages: 8
Registered: October 2007
Location: southafrica
Junior Member

clearly, three days now, no one seems to care about fpdf here

[Mod: removed part of this post]

this shall go on digg

[Updated on: Fri, 19 October 2007 10:56] by Moderator


i love symfony, but it's too complicated!!!
Re: how do you install fpdf [message #37738 is a reply to message #37407 ] Fri, 19 October 2007 10:55 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
I think you're not getting any responses because your posts are vague, and you are not giving much detail as to what you have done to solve your problem. Additionally, the FPDF plugin may not have many users, so you are asking quite a small number of people. You do appear to be nearly there - the output suggests you just need to fix the HTTP header and it might then work.

However, if you lose your temper or are deliberately offensive, then you won't last long here. I have removed the objectionable part of your post.


Remember Palestine
icon12.gif  Re: how do you install fpdf [message #37922 is a reply to message #37738 ] Tue, 23 October 2007 07:38 Go to previous messageGo to next message
xxxskunk  is currently offline xxxskunk
Messages: 8
Registered: October 2007
Location: southafrica
Junior Member

my responses are not vague at all, and all my explanations are here as in the post to prove it

guess there are not many ppl who can tackle the pdf prob. and does that include the moderator? Surprised


i love symfony, but it's too complicated!!!
Re: how do you install fpdf [message #37952 is a reply to message #37407 ] Tue, 23 October 2007 13:00 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Well, the moderator in this case is me. My view was that your first posts did not contain enough detail, but that should not stop someone else from answering your question if they feel they understand your question. Once you provided some code, however, there is some detail for someone to look at, so it's a matter then of waiting for a reply.

In the interim, it is worth working on your problem separately, or working on something else and coming back to this later. It is possible that a particular topic won't attract any replies - it does happen from time to time.


Remember Palestine
Re: how do you install fpdf [message #39010 is a reply to message #37572 ] Wed, 07 November 2007 23:18 Go to previous messageGo to next message
jessesanford  is currently offline jessesanford
Messages: 2
Registered: September 2007
Junior Member
Were you able to run the test action after installing the plugin originally?

http://localhost/appname_dev.php/sfFPDF/test

should automatically cause a pdf with the words Hello World to download to your machine.
Re: how do you install fpdf [message #102784 is a reply to message #37407 ] Tue, 20 July 2010 06:42 Go to previous message
z0mbie  is currently offline z0mbie
Messages: 1
Registered: July 2010
Location: Phoenix, AZ
Junior Member
Ok, so I seriously hope this issue is long dead. However, in the unfortunate circumstance that someone out there is still hunting for this answer - I have fpdf working on one of my projects.

Download fpdf from http://www.fpdf.org
Create an fpdf directory inside your project root /lib directory.
Copy fpdf.php and the font directory into it.

Create your success file (eg pdfSuccess.php)

In your actions.class.php you can create the following to test the output:

$pdf = new FPDF();
$pdf -> addPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();


Everything else can be found in the tutorial files included with the fpdf download.


z0mbie
---------------------------------------------
"The worst part about a Zombie Apocalypse, would be trying to pretend it's not cool."
Previous Topic:new minify plugin
Next Topic:Save multiple values with autocompleter widget from sfFormExtraPlugin
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software