Creating PDFs in PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bryan

    Creating PDFs in PHP

    Hello all,

    I'm using 1 and 1 to host a website. I'm needing to create a PDF file
    dynamically using data from one of my MySQL databases, but it looks
    like 1 and 1 doesn't support the PDFlib library. I've also tried using
    some third-party software that can connect to a database over the
    network, but 1 and 1 doesn't allow connections to their databases
    outside of 1 and 1 sites.

    Does anyone know of any other options I have? For example, is there a
    way I could somehow include the PDFlib library in my web space and
    reference it from my PHP scripts or does it have to be compiled in?

    Thanks in advance!

  • mvandenb@gmail.com

    #2
    Re: Creating PDFs in PHP

    First GOOGLE IS YOU FRIEND. Now recite that 10 times and continue on.

    1and1 dose not allow connection to your database from any other source
    then their web servers (not sure if they restrict it also to only where
    you site is being hosted, I should try that though). This is simply for
    security and a good policy in my mind.

    As for you PDF problem you need to find a PDF creator that is just
    users a base class (that is said really badly but have a look at the
    links below). Hopefully one of the following will do what you need:

    Download PHP Pdf creation - R&OS for free. MOVED TO GITHUB https://github.com/ole1986/pdf-php




    (first 2 links on a Google search with "pdf php")

    Comment

    • Allodoxaphobia

      #3
      Re: Creating PDFs in PHP

      On 28 Dec 2006 07:34:23 -0800, mvandenb@gmail. com wrote:
      First GOOGLE IS YOU FRIEND.
      So is proofreading. :-)

      Not that _I_ ever screw up.........

      Comment

      • seaside

        #4
        Re: Creating PDFs in PHP


        mvandenb@gmail. com schrieb:
        Especially this lib works nice and doesn't require to know much about
        PDF.

        I'd propose to start using this lib.

        Comment

        • Bryan

          #5
          Re: Creating PDFs in PHP

          Thanks for the suggestions. Just to let everyone know, both links
          posted are for the same PDF creator and it worked perfectly.

          By the way, I know Google is my friend... but I'd rather see what
          people are using and recommend.

          Thanks!

          On Dec 28, 8:34 am, mvand...@gmail. com wrote:
          First GOOGLE IS YOU FRIEND. Now recite that 10 times and continue on.
          >
          1and1 dose not allow connection to your database from any other source
          then their web servers (not sure if they restrict it also to only where
          you site is being hosted, I should try that though). This is simply for
          security and a good policy in my mind.
          >
          As for you PDF problem you need to find a PDF creator that is just
          users a base class (that is said really badly but have a look at the
          links below). Hopefully one of the following will do what you need:
          >
          Download PHP Pdf creation - R&OS for free. MOVED TO GITHUB https://github.com/ole1986/pdf-php

          >

          >
          (first 2 links on a Google search with "pdf php")

          Comment

          • iulian.ilea

            #6
            Re: Creating PDFs in PHP


            Bryan wrote:
            Thanks for the suggestions. Just to let everyone know, both links
            posted are for the same PDF creator and it worked perfectly.
            >
            By the way, I know Google is my friend... but I'd rather see what
            people are using and recommend.
            >
            Thanks!
            >
            On Dec 28, 8:34 am, mvand...@gmail. com wrote:
            First GOOGLE IS YOU FRIEND. Now recite that 10 times and continue on.

            1and1 dose not allow connection to your database from any other source
            then their web servers (not sure if they restrict it also to only where
            you site is being hosted, I should try that though). This is simply for
            security and a good policy in my mind.

            As for you PDF problem you need to find a PDF creator that is just
            users a base class (that is said really badly but have a look at the
            links below). Hopefully one of the following will do what you need:

            Download PHP Pdf creation - R&OS for free. MOVED TO GITHUB https://github.com/ole1986/pdf-php




            (first 2 links on a Google search with "pdf php")
            fPDF (http://www.fpdf.org) it's great too.

            Comment

            • larry@portcommodore.com

              #7
              Re: Creating PDFs in PHP


              I have been using FPDF mainly because it has available for it FPDI
              which lets you include other PDFs in FPDF (for filling PDF forms, etc.)

              FPDF


              FPDI


              Comment

              Working...