Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » PDFGeneration - Anyone tried it??

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4
Go to End
Author Topic: 7166 Views
  • BLU42 Media
    Avatar
    Community Member
    71 Posts

    PDFGeneration - Anyone tried it?? Link to this post

    Hi-

    I need to set up some report pages and have my client be able to print them to PDF files. Has anyone tried the PDFGeneration module? Or, if you see this Sam, could you shed some light on its usage?

    Thanks!
    John

  • Peter_SS
    Avatar
    Community Member
    19 Posts

    Re: PDFGeneration - Anyone tried it?? Link to this post

    i have similar problem does anyone uses the PDF Generation module?

  • UncleCheese
    Avatar
    4085 Posts

    Re: PDFGeneration - Anyone tried it?? Link to this post

    That module is not very good. A lot of work to get the requirements in place, and very little return on investment. I spent a good week or two researching the landscape of PDF generation, and finally settled on something decent, but even then you have to be really careful about your markup.. using attributes to define presentation, inline styles, etc. There really aren't any PDF generators out there that are very tolerant of modern layouts.

    Let me know if you're interested and I can send you some code.

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: PDFGeneration - Anyone tried it?? Link to this post

    Hey UC,

    Any chance you'd share it with me too? I'm moving away from the terible FPDF that I have inherited.

    Barry

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: PDFGeneration - Anyone tried it?? Link to this post

    UncleCheese what did you end up settling on? I've been using http://github.com/antialize/wkhtmltopdf for a couple of upcoming projects and initial results are pretty decent.

  • BLU42 Media
    Avatar
    Community Member
    71 Posts

    Re: PDFGeneration - Anyone tried it?? Link to this post

    I tried using the module too... I couldn't get it to work properly. I ended up using DOMPDF. It has some limitations, though I was quite impressed with it's functionality. We needed PDF generation for a table that spanned several pages with images in some of the cells and it handled it perfectly well.

    -John

  • UncleCheese
    Avatar
    4085 Posts

    Re: PDFGeneration - Anyone tried it?? Link to this post

    @everyone -- Give me a few days to track down all the code and package it up. It's not exactly a snippet. There are several dependencies and example usages you'll need to see. Keep checking this thread, and I'll get something up soon.

    @willr
    I used DOMPDF with some success. Of all the products I tested, that was the one that gave the most consistent and predictable results. But I still had to basically learn exactly how it wanted the HTML and CSS, set up page breaks where needed, and about a week's worth of various other headaches. I also had to hack it to pieces in order to get SS to autoload the classes (the class names didn't match the file names).. so that was a big mess, too.

    But in the end, it got us what we wanted, and we have a really sophisticated application that generates proposals on the fly for clients all over the world. Very cool app: http://www.desalt.net

    The link you sent looks familiar. I'd be really surprised if I didn't try it, but I'll take another look.

  • Peter_SS
    Avatar
    Community Member
    19 Posts

    Re: PDFGeneration - Anyone tried it?? Link to this post

    Thanks Uncle Cheese!. I've been waiting for a nice SS PDF Generator module.

    7166 Views
Page: 1 2 3 4
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.