SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: pdf generation

  1. #1
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    pdf generation

    I need to generate very complex pdf document using PHP. Can any one suggest, what's best component/extension??

  2. #2
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahh here is one which i think is the best: DomPDF from http://www.digitaljunkies.ca/dompdf But this requires PHP 5. Otherwise you can have ezpdf class too.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  3. #3
    Non-Member
    Join Date
    Jun 2007
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    pdf generation

    Rajug,

    How do you install/setup DomPDF?

  4. #4
    Made with a Mac! philm's Avatar
    Join Date
    Sep 2001
    Location
    Portsmouth, UK
    Posts
    735
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  5. #5
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Salchester View Post
    Rajug,

    How do you install/setup DomPDF?
    Everything you need to make it function able, all you will have there in the site. But remember once again that it needs PHP 5. But if you have PHP 5 then you can magically create PDF files from your HTML.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  6. #6
    Non-Member
    Join Date
    Jun 2007
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do I need to do with the .zip file downloaded from http://www.digitaljunkies.ca/dompdf (0.5.1)

  7. #7
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Basic Installation:

    Untar/unzip the source package in a directory accessible by your webserver.
    Edit dompdf_config.inc.php to fit your installation. If you leave the DOMPDF_PDF_BACKEND setting at 'auto' dompdf will use PDFLib if it is installed, otherwise it will use the bundled R&OS CPDF class.

    Give your webserver write permission on the path specified in DOMPDF_FONT_DIR (lib/fonts by default). Under *nix, ideally you can make the webserver group the owner of this directory and give the directory group write permissions. For example, on Debian systems, apache runs as the www-data user:
    $ chgrp www-data lib/fonts
    $ chmod g+w lib/fonts

    If your user is not a member of the www-data group or you do not have root priviledges, you can make the directory world writable and set the sticky bit:
    $ chmod 1777 lib/fonts
    from: http://www.digitaljunkies.ca/dompdf/install.php
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  8. #8
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Salchester View Post
    What do I need to do with the .zip file downloaded from http://www.digitaljunkies.ca/dompdf (0.5.1)
    Most of the downloaded open sources have some either manuals, tutorials, readme files, or something else. Even there may be some notes in the code comment too. Since you cannot use the zip file directly, of course at firstly you have to unzip it if you are in windows or untar it if you are in Linux system.

    Try to read the http://www.digitaljunkies.ca/dompdf/usage.php page carefully. And don't ask how to use it because there is a test file bundled with it.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •