SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: PDF generator

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

    PDF generator

    Hi guys,
    I need some functionality where the user can print/save the web page as a pdf. There are a variety of solutions out there, but Im not sure which one is best. Can anyone recommend a good paid solution - one which doesnt contain any adverts and is really easy to implement? To clarify: I want a 'print page' link on the webpage which - when clicked - saves/prints the page as a pdf.
    Thanks

  2. #2
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,547
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    If you can install software on your server (i.e a dedicated / vps server) then you can use wkhtmltopdf to easily convert html to a pdf

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2007
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unfortunately I cant install stuff on the server :/

  4. #4
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,547
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    Something like jsPDF (a javascript library that can create a PDF on the browser) might be worth a look if you can live with its limitations.

  5. #5
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    5,000
    Mentioned
    101 Post(s)
    Tagged
    0 Thread(s)
    If your users don't mind installing any software on their computer and are using Windows, they could use PDFCreator or a similar program. You'd have an option to generate a "printer friendly" version of a page. The user would use the PDF creating software to generate a PDF copy of the page.

    What server-side scripting language is being used?
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator


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
  •