Earlier quoted context omitted.
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.
Yes, page breaks are probably the most significant difference between the layout of a web page and a PDF document, and thereby a major drawback when using HTML-to-PDF. There is little to no tooling for this in the web. If you want granular control over how your PDF will look with content that is more than one page long, you will have a hard time using html.
Launch HN: Onedoc (YC W24) – A better way to create PDFs
41–50 of 191 posts
Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs
#42That forms a solid foundation that I find it hard to imagine paying for. The things where you might still command a premium are basically safety mechanisms/CI checks/library components that ensure the PDF renders correctly in the presence of variable-length content, etc. as well as maybe PDF-specific features like metadata and fillable forms. Naive ways to format headers, footers, tables/grids/flexboxes etc. often fail in PDFs because of unexpected layout complications. So having a methodology, process, and validation system for ensuring that a mission critical piece of information appears on a PDF in the presence of these constraints could be attractive.
Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs
#43We're using Gotenberg[1] to convert a rendered web page (with Elixir/Phoenix, in our case) to PDF. Works like a charm and we can use our existing frontend code/styling (including SVG graph generators) which is a huge bonus. 1: https://gotenberg.dev/
Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs
#44May be this is just me but this looks extremely costly to me! It will cost $2,500 to generate 50,000 PDFs. Are edits/corrections additional cost?
This is a good point, and we are still trying to figure out how to price things fairly. Depending on the type of PDF, whether it is a simple receipt or a large multi-pages report, associated costs are very different on our side. At this time, we rely on other proprietary software that we are aiming to replace but that incur high costs on our side as well. Edits and corrections on generated PDFs is not provided as the…
Their PDF conversion is pretty good (I use it for PPT/Word -> PDF conversion), though your product is obviously different and has different/better capabilities for programmatic PDF creation. Still, a reference point.
Pricing page: https://www.convertapi.com/prices
Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs
#45Earlier quoted context omitted.
Yes, our focus is on programmatic interactions with PDFs, form filling is on our roadmap, alongside programmatic digital signature and many more.
Amazing, is there anywhere I can follow along to find out when form filling will be available?
Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs
#46May be this is just me but this looks extremely costly to me! It will cost $2,500 to generate 50,000 PDFs. Are edits/corrections additional cost?
You can choose which API to use: Headless Chrome, Wkhtmltopdf, Libreoffice, etc.
Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs
#47Can we not have an alternative to PDFs? I get that they're more standardized but why would everyone let adobe have the hammer for a file type that's so important
Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs
#48FYI: the open source state of the art in this area is Playwright (the successor to Puppeteer) with Paged.js ( https://pagedjs.org/ ). I highly recommend that everyone check out and donate to paged.js, it's a fantastic project with lots to like. It certainly blows commercial alternatives like Prince XML out of the water. That forms a solid foundation that I find it hard to imagine paying for. The things where you migh…
Your second point is very interesting, seems like some kind of .assert('text').isVisible() API. We may want to dig into that further!
Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs
#49FYI: the open source state of the art in this area is Playwright (the successor to Puppeteer) with Paged.js ( https://pagedjs.org/ ). I highly recommend that everyone check out and donate to paged.js, it's a fantastic project with lots to like. It certainly blows commercial alternatives like Prince XML out of the water. That forms a solid foundation that I find it hard to imagine paying for. The things where you migh…
Re: Launch HN: Onedoc (YC W24) – A better way to create PDFs
#50 "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