Live data from Hacker News

Launch HN: Onedoc (YC W24) – A better way to create PDFs

github.com

171–180 of 191 posts

Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs

#171

Congrats on the launch. I was a user of htmldocs back in the day, good to see more products in the space. One of the features I wish I had with htmldocs was the ability to automatically store generated documents in my own S3. I'd rather not introduce another cloud to my data stack just to host PDFs.

Thanks! We are looking to extend our set of feature and integration, offering self-storing on S3 could definitely be one of them! Good call

Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs

#172

Earlier quoted context omitted.

I was looking at https://www.onedoclabs.com/pricing which says $0.005 per document, not page.

We indeed price starting at $0.005 per document, but have slightly updated the pricing following the good input we received yesterday from the community - hence the slight discrepancy in comments.

FYI there is a typo on the pricing page under the pro plan.

"Generate up to 1'500 documents per month without watermark"

1,500 instead of 1'500

Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs

#173
post #172

Earlier quoted context omitted.

We indeed price starting at $0.005 per document, but have slightly updated the pricing following the good input we received yesterday from the community - hence the slight discrepancy in comments.

FYI there is a typo on the pricing page under the pro plan. "Generate up to 1'500 documents per month without watermark" 1,500 instead of 1'500

Got it, thanks!

Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs

#174

Earlier quoted context omitted.

Thanks! We try to make our product as accessible as possible for anyone to use (or at least to test). It's good to hear that our efforts have been worthwhile!

The text says "Instantly generate dynamic documents based on real-time data." but when I changed the react code to give the QR code a red color and clicked render it took far longer, maybe 5-6sec to render again.

We'll adjust the wording until we have a faster renderer. Also, the playground might take a bit longer to render since there's a queue and it's been heavily used! We're on it, thanks!

Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs

#175

The pricing is a little expensive. Have you heard of https://htmldocs.com/ I've been using them for a year now and it's free

We've adjusted our pricing based on your comments and advice. It's not 100% free, but it now seems to make more sense to most of you. What do you think?

Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs

#176

This is definitely a somewhat painful process. I have done it with puppeteer / chromium on Debian, and it works very well after the headache of figuring it out. Having to pay 50 cents per PDF and deal with a 3rd party vendor would not provide value for our needs.

We've updated our pricing, and it can go as low as $0.005 per document. True, you'll still need to work with a third-party vendor, but isn't it worth considering if the features are competitive and the interface is user-friendly? It would be interesting to know what might convince you to switch from Puppeteer to another solution—or if you're completely satisfied and wouldn't switch regardless of the offerings, which is perfectly fine.

Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs

#177

If I would want to put an image in footer on every page, would it reuse the same resource? How do you do shadows, spam rectangles or attach an image + mask, or maybe you bake that into the image itself? Many pdf tools are so bad at, the result can be even more than x10 in size and I don't even mean saving entire pages as JPEGs

Elements that are placed in page regions are shared between pages with the exception of CSS generated content such as running headers. Shadows are attached as an XObject image with a SMask indeed :)

Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs

#178
post #16

I had to deal a lot with PDF generation over the past few years and I was very unhappy with the eco-system that was available: 1. HTML-to-PDF: The web has a great layout system that works well for dynamic content. So using that seems like a good idea. BUT it is not very efficient as a lot of these libraries simply spin up a headless browser or deal with virtual doms. 2. PDF Libraries (like jsPDF): They mostly just ha…

I'm with you.. We ended up writing a similar wrapper around https://github.com/jung-kurt/gofpdf library. We haven't open sourced it yet. But it's made it a lot easier to deal with rendering a PDF, especially over pagebreaks ect.

A while ago I created a pdf report generation engine for Python, supporting Jinja2 template syntax, and server and client-side generation of content. Page formatting is handled by https://pagedjs.org/, and PDF generation is performed via a separate api daemon based on chrome-headless: https://zipreport.github.io/zipreport/ It is not fast, but it works quite well.

Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs

#179

How is this better than writing out an HTML file, then using headless chrome to export to PDF, like this: "C:\Program Files\Google\Chrome\Application\chrome.exe" --headless --disable-gpu --print-to-pdf=C:\temp\foo.pdf --no-margins --print-to-pdf-no-header C:\temp\test.mhtml

This brings its own set of challenges. Headers and footers are strictly limited in terms of features, you cannot add footnotes, the notion of page spreads is harder to implement. Then you need to combine that with having a Chrome instance at hand + exposing the needed assets for URL resolution. Definitely not difficult let alone impossible, but not the easiest way to get started :)

Some/most of these problems can be solved by using pagedjs and something like https://github.com/zipreport/zipreport-server

Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs

#180

Earlier quoted context omitted.

Curious, with ~$0.005 per document, what volumes do you do that pricing becomes a no-go for you?

In the long term, ~$0.005 per page (as opposed to document, which I assume hatchedlake meant) say on a mortgage document (~300 pages per) it adds up. The other alternative, which is to build this in-house (say 3 months and custom build, edge cases, such goodies), is more desirable (for us).

Unrelated, out of curiosity. In a 300 page mortgage document, there’s probably >90% of boilerplate with a few pages of custom content. Hypothetically, you could generate those <10% and then stitch it together with the rest onsite.
Post reply on HN