Re: [PHP] pdf_new()

2009-05-30 Thread Sumit Sharma
Hi Michael,

Now its working.

Thanks,
Sumit.



On Sat, May 30, 2009 at 1:51 PM, Michael A. Peters  wrote:

> Sumit Sharma wrote:
> > Hi,
> >
> > Unable the create new pdf file object. Getting an error when coding as
> > following:
> >
> >  >
> > $pdf=pdf_new();
> >
> > ?>
> >
> > *Fatal error*: Call to undefined function pdf_new() in
> *C:\wamp\www\abc1.php
> > * on line *3*
> >
> > Please Help.
> >
> > Thanks,
> >  Sumit.
> >
>
> You need to install PDFLib.
> If installed, you need to load the module (in your php.ini)
>
>


Re: [PHP] pdf_new()

2009-05-30 Thread Michael A. Peters

Sumit Sharma wrote:
> Hi,
>
> Unable the create new pdf file object. Getting an error when coding as
> following:
>
> 
> $pdf=pdf_new();
>
> ?>
>
> *Fatal error*: Call to undefined function pdf_new() in 
*C:\wamp\www\abc1.php

> * on line *3*
>
> Please Help.
>
> Thanks,
>  Sumit.
>

You need to install PDFLib.
If installed, you need to load the module (in your php.ini)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Bastien Koert
On Mon, Mar 16, 2009 at 1:48 PM, Alice Wei  wrote:

>  [/snip]
> another option is FPDF from www.fpdf.org another class
>
> the classes are nice since they don't generally require the module to be
> installed.
>
> If you are on Linux, another option might be FOP...
> http://xmlgraphics.apache.org/fop/
>
>   I checked out the first link you provided, and downloaded it. I don't
> think I need to edit anything else from the file according to the
> webpage http://www.digitaljunkies.ca/dompdf/install.php. I put the
> entire extracted directory at my /var/www/html directory. Is there any
> suggestion you could provide on how to "install" it? I don't see any
> commands that it provides in its manual.
>
> Thanks for your help.
>
>
> Its a class set of files, so there is no real install. I just placed the
> folder containing the class files in my dir and in the calling page,
> required() the main file.
>
>
> The dompdf.inc.php file is where i handle the filesystem links
> Looks like the files I wanted to turn into PDF are not web pages, but most
> of them are text files. I am still hoping to use the function pdf_new to get
> this to work by assembling some modules. Is what I am trying to do here not
> possible?
>
> Thanks for your help.
>
> Alice
> --
>
> Bastien
>
> Cat, the other other white meat
>
> --
> Search from any Web page with powerful protection. Get the FREE Windows
> Live Toolbar Today! Try it now! 
>

I don't see why not, just create a page that will pull in the data and then
format it nicely

-- 

Bastien

Cat, the other other white meat


RE: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Alice Wei

[/snip]

another option is FPDF from www.fpdf.org another class



the classes are nice since they don't generally require the module to be 
installed.



If you are on Linux, another option might be FOP... 
http://xmlgraphics.apache.org/fop/



  I checked out the first link you provided, and downloaded it. I don't

think I need to edit anything else from the file according to the

webpage http://www.digitaljunkies.ca/dompdf/install.php. I put the

entire extracted directory at my /var/www/html directory. Is there any

suggestion you could provide on how to "install" it? I don't see any commands 
that it provides in its manual.



Thanks for your help.
Its a class set of files, so there is no real install. I just placed the folder 
containing the class files in my dir and in the calling page, required() the 
main file. 



The dompdf.inc.php file is where i handle the filesystem links
Looks like the files I wanted to turn into PDF are not web pages, but most of 
them are text files. I am still hoping to use the function pdf_new to get this 
to work by assembling some modules. Is what I am trying to do here not possible?

Thanks for your help.

Alice
-- 

Bastien

Cat, the other other white meat

_
Search from any Web page with powerful protection. Get the FREE Windows Live 
Toolbar Today!
http://get.live.com/toolbar/overview

Re: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Bastien Koert
[snip]
>
>
> [/snip]
> another option is FPDF from www.fpdf.org another class
>
> the classes are nice since they don't generally require the module to be
> installed.
>
> If you are on Linux, another option might be FOP...
> http://xmlgraphics.apache.org/fop/
>
>   I checked out the first link you provided, and downloaded it. I don't
> think I need to edit anything else from the file according to the
> webpage http://www.digitaljunkies.ca/dompdf/install.php. I put the
> entire extracted directory at my /var/www/html directory. Is there any
> suggestion you could provide on how to "install" it? I don't see any
> commands that it provides in its manual.
>
>
>
> Thanks for your help.
>
>
>
> Alice
>
>
>
> _
> Express yourself with gadgets on Windows Live Spaces
> http://discoverspaces.live.com?source=hmtag1&loc=us
>


Its a class set of files, so there is no real install. I just placed the
folder containing the class files in my dir and in the calling page,
required() the main file.


The dompdf.inc.php file is where i handle the filesystem links
-- 

Bastien

Cat, the other other white meat


Re: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Paul M Foster
On Mon, Mar 16, 2009 at 10:06:32AM -0400, Alice Wei wrote:

> 
> Hi, 
> 
>   I use Linux, and I had installed PHP using yum install php. I am trying to 
> use the pdf_new function to create pdfs from existing text files, but I get 
> this error 
> 
> PHP Fatal error:  Call to undefined function pdf_new() 
> 
> I have noticed that when I run the phpinfo() command, I cannot find the PDF 
> phrase at all. My php.ini file does not even have these two lines 
> 
>   extension=php_pdf.dll
>   extension=php_cpdf.dll
> 
> Could anyone suggest me what kind of command I should use if I need to build 
> PDFs using PHP on a Linux system?
> 
> Thanks in advance. 
> 
> Alice
> 

According to php.net, if you've installed PHP5 (which I assume is the
case, since you used Yum to install it), you should not be using the
pdf_new() function, but instead use the OO version:

$pdf = new pdflib();

All this assumes that the PDFLib extension is actually installed. The
documentation at php.net is a little confusing about whether this is an
actual extension or not. Personally, I just install the add-on for this.

Paul
-- 
Paul M. Foster

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Alice Wei


Date: Mon, 16 Mar 2009 11:41:35 -0400
Subject: Re: [PHP] pdf_new() uncalled Function
From: phps...@gmail.com
To: aj...@alumni.iu.edu
CC: php-general@lists.php.net



On Mon, Mar 16, 2009 at 11:32 AM, Alice Wei  wrote:



On Mon, Mar 16, 2009 at 10:06 AM, Alice Wei  wrote:







Hi,







  I use Linux, and I had installed PHP using yum install php. I am trying to 
use the pdf_new function to create pdfs from existing text files, but I get 
this error







PHP Fatal error:  Call to undefined function pdf_new()







I have noticed that when I run the phpinfo() command, I cannot find the PDF 
phrase at all. My php.ini file does not even have these two lines







  extension=php_pdf.dll



  extension=php_cpdf.dll







Could anyone suggest me what kind of command I should use if I need to build 
PDFs using PHP on a Linux system?







Thanks in advance.







Alice















_



Express yourself with gadgets on Windows Live Spaces



http://discoverspaces.live.com?source=hmtag1&loc=us

I like dompdf from www.digitaljunkies.ca Its a class that takes html and 
creates a pdf from it

I saw online at http://us3.php.net/manual/en/pdf.installation.php that I could 
build PDF from some extension. However, I use Linux, and I don't think this 
installation using dll extension supports it. I ran the code and still get this 
error.




Any ideas?

Thanks for your help.



Alice

--



Bastien



Cat, the other other white meat



_

Search from any Web page with powerful protection. Get the FREE Windows Live 
Toolbar Today!

http://get.live.com/toolbar/overviewfor PECL based windows installation see 
http://us3.php.net/manual/en/install.pecl.downloads.php


another option is FPDF from www.fpdf.org another class

the classes are nice since they don't generally require the module to be 
installed. 

If you are on Linux, another option might be FOP... 
http://xmlgraphics.apache.org/fop/ 

  I checked out the first link you provided, and downloaded it. I don't
think I need to edit anything else from the file according to the
webpage http://www.digitaljunkies.ca/dompdf/install.php. I put the
entire extracted directory at my /var/www/html directory. Is there any
suggestion you could provide on how to "install" it? I don't see any commands 
that it provides in its manual. 



Thanks for your help.



Alice



_
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=hmtag1&loc=us

Re: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Bastien Koert
On Mon, Mar 16, 2009 at 11:32 AM, Alice Wei  wrote:

>
> On Mon, Mar 16, 2009 at 10:06 AM, Alice Wei  wrote:
>
>
>
> Hi,
>
>
>
>  I use Linux, and I had installed PHP using yum install php. I am trying to
> use the pdf_new function to create pdfs from existing text files, but I get
> this error
>
>
>
>PHP Fatal error:  Call to undefined function pdf_new()
>
>
>
> I have noticed that when I run the phpinfo() command, I cannot find the PDF
> phrase at all. My php.ini file does not even have these two lines
>
>
>
>  extension=php_pdf.dll
>
>  extension=php_cpdf.dll
>
>
>
> Could anyone suggest me what kind of command I should use if I need to
> build PDFs using PHP on a Linux system?
>
>
>
> Thanks in advance.
>
>
>
> Alice
>
>
>
>
>
>
>
> _
>
> Express yourself with gadgets on Windows Live Spaces
>
> http://discoverspaces.live.com?source=hmtag1&loc=us
> I like dompdf from www.digitaljunkies.ca Its a class that takes html and
> creates a pdf from it
> I saw online at http://us3.php.net/manual/en/pdf.installation.php that I
> could build PDF from some extension. However, I use Linux, and I don't think
> this installation using dll extension supports it. I ran the code and still
> get this error.
>
> Any ideas?
> Thanks for your help.
>
> Alice
> --
>
> Bastien
>
> Cat, the other other white meat
>
> _
> Search from any Web page with powerful protection. Get the FREE Windows
> Live Toolbar Today!
> http://get.live.com/toolbar/overview

for PECL based windows installation see
http://us3.php.net/manual/en/install.pecl.downloads.php

another option is FPDF from www.fpdf.org another class

the classes are nice since they don't generally require the module to be
installed.

If you are on Linux, another option might be FOP...
http://xmlgraphics.apache.org/fop/

-- 

Bastien

Cat, the other other white meat


RE: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Alice Wei

On Mon, Mar 16, 2009 at 10:06 AM, Alice Wei  wrote:



Hi,



  I use Linux, and I had installed PHP using yum install php. I am trying to 
use the pdf_new function to create pdfs from existing text files, but I get 
this error



PHP Fatal error:  Call to undefined function pdf_new()



I have noticed that when I run the phpinfo() command, I cannot find the PDF 
phrase at all. My php.ini file does not even have these two lines



  extension=php_pdf.dll

  extension=php_cpdf.dll



Could anyone suggest me what kind of command I should use if I need to build 
PDFs using PHP on a Linux system?



Thanks in advance.



Alice







_

Express yourself with gadgets on Windows Live Spaces

http://discoverspaces.live.com?source=hmtag1&loc=us
I like dompdf from www.digitaljunkies.ca Its a class that takes html and 
creates a pdf from it
I saw online at http://us3.php.net/manual/en/pdf.installation.php that I could 
build PDF from some extension. However, I use Linux, and I don't think this 
installation using dll extension supports it. I ran the code and still get this 
error. 

Any ideas?
Thanks for your help.

Alice
-- 

Bastien

Cat, the other other white meat

_
Search from any Web page with powerful protection. Get the FREE Windows Live 
Toolbar Today!
http://get.live.com/toolbar/overview

Re: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Bastien Koert
On Mon, Mar 16, 2009 at 10:06 AM, Alice Wei  wrote:

>
> Hi,
>
>  I use Linux, and I had installed PHP using yum install php. I am trying to
> use the pdf_new function to create pdfs from existing text files, but I get
> this error
>
>PHP Fatal error:  Call to undefined function pdf_new()
>
> I have noticed that when I run the phpinfo() command, I cannot find the PDF
> phrase at all. My php.ini file does not even have these two lines
>
>  extension=php_pdf.dll
>  extension=php_cpdf.dll
>
> Could anyone suggest me what kind of command I should use if I need to
> build PDFs using PHP on a Linux system?
>
> Thanks in advance.
>
> Alice
>
>
>
> _
> Express yourself with gadgets on Windows Live Spaces
> http://discoverspaces.live.com?source=hmtag1&loc=us


I like dompdf from www.digitaljunkies.ca Its a class that takes html and
creates a pdf from it

-- 

Bastien

Cat, the other other white meat