Results 1 to 7 of 7

Thread: Convet Data to Php file

  1. #1
    Join Date
    Jan 2012
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Convet Data to Php file

    Hi,

    I create web application of employee management system.

    I generate different report in this system. data will fetched from database and display in web page.

    but i also want to convert it in to .PDF file. so we can download report and print out with hard copy.

    Any one can help how can i convert that data into PDF file.

    thanks,
    Crish

  2. #2
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  3. #3
    Join Date
    Jan 2012
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pdf create

    Hi,

    I can't understand above links code.

    How can i use with my database.

    I fetched data from mysql which i want to output in PDF file format with table structure.

    Please give me proper code or example so i can use it with my system easily.


    Thanks for reply.
    crish

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Creating a PDF with PHP will not be easy. You'll need to learn to deal with a library like that, or you won't be able to do this. I've had similar projects and it's difficult and honestly often the libraries are buggy and which one you'll want to use will depend on exactly what features (or layout options) you'll need in the PDF and which library supports that.
    The only alternative would be to hire someone to do this for you.

    However, this certainly isn't impossible-- take some time to get to know the library and look at the demo files. You will find a lot of information with a basic search as well, although it all will be difficult in general.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Jan 2012
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face Pdf create

    Hi,

    If convert it into PDF not possible. so not problem.

    But i want just option in my system which provide print out hard copy with proper structure which i defined.

    Have you any idea or example?

    Please give me that or link.

    Thanks,
    Crish.

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    You can do this with a PDF. But it won't be easy, as I said. You'll need to learn how to use a library like that. If that's not possible, you could hire someone.

    Alternatively you could look into a print stylesheet (CSS) but that won't give you paper-layout control, just a different layout for printing than what is shown on screen.


    Of course you could also create the PDFs manually (if that isn't too much work) and link them to the pages.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #7
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    If you want to print a lot of data, in different PDFs, is PDF really the most effective way to print the information?
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

Tags for this Thread

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
  •