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

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. WeasyPrint

    The awesome document factory

    Is there a reason you didn't consider something like Weasyprint?

    https://weasyprint.org

    I've gone through a number of systems to convert CV's, business cards, and other docs and it hasn't let me down yet.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. react-print-pdf

    Build and generate PDF using React 📄 UI kit for PDFs and print documents. Simple, reusable components and templates to create great invoices, docs, brochures. Use your favorite front-end framework React to build your next PDF.

  4. energy-label-service

    Energy Label Generation Service

    Really interesting product. I do agree that the pricing seems steep ($0.25/document on Pro on the most generous tier) but I don't know enough about pricing B2B products to know if that would be a blocker.

    I agree that HTML -> PDF can be a really powerful tool. I worked on the UK government's tool to generate energy efficiency labels for consumer goods [0] and we ended up doing PDF generation with SVG templates, using Open HTML to PDF for the conversion. That ended up working very well, though as you allude to there can be some gotchas (eg unsupported CSS features) that you need to work around.

    A few questions:

    - Do the rendered documents support PDF's various accessibility features?

    - How suitable is this for print PDF generation? For example, what version of the PDF spec do you target? What's your colour profile support like? Do you support the different PDF page boxes (MediaBox, CropBox, BleedBox, TrimBox, ArtBox)?

    [0] https://github.com/UKGovernmentBEIS/energy-label-service

  5. Open HTML to PDF

    An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!

  6. gofpdf

    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.

  7. doconce

    Lightweight markup language - Document Once

    Funny name! The reason I find it funny is I know some people who made Doconce: https://github.com/doconce/doconce :D

  8. gotenberg

    A developer-friendly API for converting numerous document formats into PDF files, and more!

    We'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/

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. pdf-lib

    Create and modify PDF documents in any JavaScript environment

    I'm facing that same pain point of programmatic PDF filling. I noodled around in the PDF format and learned it's a bit difficult to deal with fonts and formatting. But I think this client-side library works well enough, as a start: https://pdf-lib.js.org/#:~:text=a%20single%20document.-,Fill...

    I've also heard of one paid API that I forgot but seemed to work well, and this related service https://www.jotform.com/, and I also considered porting some server-side libraries to WASM. One day I'll collect all the libraries and findings in a blog post.

    Are you looking to programmatically fill any PDF form by detecting the fields? Or are you filling one known PDF template?

  11. react-pdf

    📄 Create PDF files using React

    https://github.com/diegomura/react-pdf is good as well if you want to use React.

  12. pandoc

    Universal markup converter

    Congrats on the launch, I guess, but there are so many free options that I can't think of a situation where paying $0.25 per document would be justified...? Just to name a few:

    Back in the days, I used to use XSL-FO [0] and it was okay. It was not very precise but it rarely if ever broke, and was perfectly integrated with an XML/XSLT solution. Yeah, this was a long time ago.

    Last month I used html-to-pdfmake [1] and it's also not very precise and more fragile, but very efficient and fast.

    Yet another approach would be to pro grammatically generate .rtf files (for example) and use Pandoc [2] to produce PDFs (I have not tried this in production but don't see why it wouldn't work).

    [0] https://en.wikipedia.org/wiki/XSL_Formatting_Objects

    [1] https://www.npmjs.com/package/html-to-pdfmake

    [2] https://pandoc.org/

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Create PDFs with Tailwind

    3 projects | dev.to | 21 Mar 2024
  • Htmldocs: Typeset and Generate PDFs with HTML/CSS

    11 projects | news.ycombinator.com | 17 Jan 2024
  • Generate PDF from HTML

    2 projects | /r/javahelp | 2 Dec 2022
  • Diving deeper into custom PDF and ePub generation

    2 projects | news.ycombinator.com | 20 Sep 2022
  • HTML to PureScript converter

    1 project | /r/purescript | 1 Aug 2022

Did you know that Python is
the 2nd most popular programming language
based on number of references?