Live data from Hacker News

Ask HN: Is PDF generation a real pain for developers?

news.ycombinator.com

1–10 of 31 posts

Ask HN: Is PDF generation a real pain for developers?

#1
Recently we launched a PDF generation service on cloud by the name of Pagify http://pagify.io for developers. Our main assumptions were:

1) It is tedious to code the layout and design of the PDF using code libraries such as FPDF, Prawn etc.

2) When it came to generating large no of PDFs it is difficult to scale.

3) Developer wants to focus on the core offering of their web product rather that spending their time on stuff like PDF generation, email, image processing, payments etc.

4) In cloud development model off-the-shelf components are preferred in the form of cloud services or cloud API over code packages or software. So PDF generation offered as a service instead of code library is better.

Targeting these assumptions Pagify offers a designer within the browser where users can design their PDF template and use an API to generate PDFs.

But after launching on HN and betalist we received mixed feedback on Pagify. Do you think our assumptions are correct? And does Pagify solve this problem?

Thanks, Kush.

Re: Ask HN: Is PDF generation a real pain for developers?

#5
The target market that will pay for PDF generation is probably not developers.

A competent developer can generate PDF's with the mentioned libraries rather quickly. We deal with a lot of PDF generation where I work, and it is not something that enters our minds to outsource because it's pretty fast and easy to do. For us, the generated PDF's do not need great design or layout, they just need the info in a printable format.

That said, you may find a better audience with less tech savvy users that have a lot of reporting needs. I can't really think of a target audience off the top of my head. Good luck to you.

Re: Ask HN: Is PDF generation a real pain for developers?

#7
Ive used FPDF/FPDI most of the time I used it to generate preformatted mailing labels (the best output method that is compatible with any printer, just format it with scaling "off" in mind.) Maybe a letter or report or two...

But the main thing that drew me to PDF utilities was to programmatically fill out pre-existing PDF forms. With FPDI i would load in the form and then overlay the data on top of it. Not as easy as charts and tables, as some data exists as one line per row and other might have several lines per row of data. different positions, etc. (here's a fun form I had worked with: http://www.cdss.ca.gov/cdssweb/entres/forms/English/CD9600.P... depending of family size or care situation could be multiple pages...) If you can crack stuff like that in an easy-ish to use API, I think you would catch more developers interest.

Re: Ask HN: Is PDF generation a real pain for developers?

#8

    It is tedious to code the layout and design of the
    PDF using code libraries such as FPDF, Prawn etc.
I recently used Prince[1] to generate a PDF version of a web-based book. The PDF needed to be suitable for professional printing (crop marks, bleed, trim, etc.). Prince was the only solution I could find that came even close to being adequate for the job, and it exceeded my expectations. Creating the HTML for Prince wasn't tedious at all. It was almost a pleasure because Prince includes better support for print-related CSS3 properties than any rendering engine I've encountered. There's a web-based service named DocRaptor[2] that is powered by Prince.

[1] http://www.princexml.com/

[2] http://docraptor.com/

Re: Ask HN: Is PDF generation a real pain for developers?

#9
I work in the DOCCM (Document Output for Customer Communications Management) space, which in a certain light is just generating PDFs (well, perhaps a bit more complex than that...). Enterprise deals in this space will have 6 or 7 zeros, so yes, there is a market for generating PDFs. There are already some cloud providers out there (like exari - it's been a while but I remember their stuff being pretty cool.)

That's a bit different from vanilla PDF generation, but perhaps a good portion of that is down to marketing. How you position this could be important. You've got your salesforce version - nice :-) That should mean you're selling direct to a business user, so have you worked out what their pain point is? Do they think of it as "generating PDFs" (you've branded it as "Great Reports", so obviously you think they don't!) I don't know anything about report generation on SF, but I'd be shocked if there wasn't already some competition - have you looked in to that? What's your point of difference?

Down to your assumptions: 1) I've only ever used FOP & yes it is tedious, but it gives you a lot of power, and that power is going to be hard to replicate.

2) Generating large no of PDFs is hard to scale. For a cloud service, though, you need to work out how you're going to deliver a large number of PDFs over the wire. (You'll easily be able to generate more bytes of PDF per $ of CPU than you'll be able to transfer per $ of bandwidth.)

3) That sounds like a safe assumption (almost a tautology).

4) I'm not so sold on this. If I can get equivalent functionality from a library, I'll use the library. I don't want to add a dependency on an external service (making my own service more fragile) unless it offers a significant benefit. Stripe saves me SO MUCH TROUBLE it's a no brainer. There's is no way I would even think of trying to replicate what they've got. The barriers are significant. What are the barriers to me using a library instead of Pagify? Not nearly as great.

Gut feeling, the SF report generation product is much more compelling, but check out the competition in that space.

Re: Ask HN: Is PDF generation a real pain for developers?

#10

It is tedious to code the layout and design of the PDF using code libraries such as FPDF, Prawn etc. I recently used Prince[1] to generate a PDF version of a web-based book. The PDF needed to be suitable for professional printing (crop marks, bleed, trim, etc.). Prince was the only solution I could find that came even close to being adequate for the job, and it exceeded my expectations. Creating the HTML for Prince w…

Hi,

You can try using FlyingSaucer (https://code.google.com/p/flying-saucer/) It takes in HTML and gives PDF. It also supports print related CSS3 properties and its open source. May be it cannot compete with Prince, but it is a good open source alternative

Post reply on HN