SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Jan 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML to PDF (i know its been discussed)

    I know this topic has been discussed many times but I still cannot find a reasonable solution.

    I am looking for a HTML to PDF generator script that does not require anything more than the standard PHP configuration you will find on most shared web hosts.

    It needs to support UTF8 well.

    I have tried FPDF (has issues with UTF8)

    I have tried TCPDF (extension of FPDF) and it seems a bit too complex as far as the feature set for more than I need. It would be great if there was simply a script where you set the CHARSET, font, and perhaps font sizes, and then assign the HTML you want in the document.

  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)
    Try out dompdf but it needs to be installed pdf library and DOM in your PHP. But works fine for you. I have used it for more than 3/4 projects and working fine.
    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)
    Quote Originally Posted by rajug View Post
    Try out dompdf but it needs to be installed pdf library and DOM in your PHP. But works fine for you. I have used it for more than 3/4 projects and working fine.
    How do you install DomPDF. I'm using Apache Server with PHP5?
    Also, how do I include the library inside code, can you give me an example?

  4. #4
    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)
    You don't have to do anything to install it. Just put that folder in your document root and run the samplehtml.php file. If it run then its working. Please check their site http://www.digitaljunkies.ca for further infromation. There are lots of instructions which lead you to the right direction.

    Cheers!

    Good luck.
    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
  •