+ Reply to Thread
Results 1 to 2 of 2

Thread: Creating a PDF with PHP?

  1. #1
    rob_wasley35 is offline x10Hosting Member rob_wasley35 is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    1

    Question Creating a PDF with PHP?

    I wrote a script to create a simple pdf, and when i try running it on my site all i get is...
    Code:
    Fatal error:  Call to undefined function  pdf_new() in /home/halfdown/public_html/test/pdftest.php on line 2
    Does the PHP libraries support the creation of PDF files?
    If so then can someone tell me what i may be doing wrong?

  2. #2
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: Creating a PDF with PHP?

    If I remember correctly, the native PDFlib is not available on free hosting, hence the error that its instantiating function is not defined.
    However, you can instead use one of these: http://www.fpdf.org/ or http://www.tcpdf.org/ . My personal preference is to use TCPDF and I did successfully get it to work on free hosting without any major issues.

+ Reply to Thread

Similar Threads

  1. creating
    By akinzid61 in forum Free Hosting
    Replies: 1
    Last Post: 10-25-2010, 08:59 AM
  2. Help With Creating a CMS
    By Wizet in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 11-08-2009, 07:01 PM
  3. PHP creating HTML
    By bardman in forum Programming Help
    Replies: 3
    Last Post: 05-16-2009, 04:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers