Live data from Hacker News

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

github.com

141–150 of 191 posts

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

#141

Earlier quoted context omitted.

Typst is a typesetting language that makes programmatic layout and processing JSON input pretty darn simple. I make invoices by having a Typst template read line items from a JSON file. https://github.com/typst/typst

Just spent my Sunday creating my invoice template in typst as well. I enjoyed it, and I could do what I wanted quickly!

Never used it actually, is it in between LaTeX and Markdown with the possibility to process JSON input?

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

#142

Earlier quoted context omitted.

Just spent my Sunday creating my invoice template in typst as well. I enjoyed it, and I could do what I wanted quickly!

Never used it actually, is it in between LaTeX and Markdown with the possibility to process JSON input?

I'd describe Typst as somebody wanted a TeX reimplementation in Rust with better syntax and modern ideas, and made that their Masters projects.

It's markdown-like (but definitely not exactly CommonMark, don't expect that), with # acting as escape into the world of layout and programming. Templates are just functions that return a datatype called a content block, and so on.

https://typst.app/docs/tutorial/writing-in-typst/

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

#143

Earlier quoted context omitted.

Never used it actually, is it in between LaTeX and Markdown with the possibility to process JSON input?

I'd describe Typst as somebody wanted a TeX reimplementation in Rust with better syntax and modern ideas, and made that their Masters projects. It's markdown-like (but definitely not exactly CommonMark, don't expect that), with # acting as escape into the world of layout and programming. Templates are just functions that return a datatype called a content block, and so on. https://typst.app/docs/tutorial/writing-in-t…

Ok very interesting, i'll give it a try! Thanks for sharing

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

#144
Definitely a problem I experienced. Big fan of browserless.io. Though I didnt see any comment on the biggest problem in this space: SSRF.

Most HTML-to-PDF are deeply insecure and I am more than happy to pay someone else to deal with isolation and security. Report generators are often used to leak cloud secrets via the metadata API.

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

#145
post #144

Definitely a problem I experienced. Big fan of browserless.io. Though I didnt see any comment on the biggest problem in this space: SSRF. Most HTML-to-PDF are deeply insecure and I am more than happy to pay someone else to deal with isolation and security. Report generators are often used to leak cloud secrets via the metadata API.

True. Security is a significant concern, and in our discussions with businesses, we realised that most of them do not want any kind of data leaving their own systems. This is especially true in the biotech/healthcare industry, but also in legal and banking. That's why we're considering an on-premises solution for the future (as we're focusing on B2B). However, I assume most people were talking about personal use cases or non-sensitive documents, hence the fact that no one mentioned SSRF (yet ;)).

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

#146
post #144

Definitely a problem I experienced. Big fan of browserless.io. Though I didnt see any comment on the biggest problem in this space: SSRF. Most HTML-to-PDF are deeply insecure and I am more than happy to pay someone else to deal with isolation and security. Report generators are often used to leak cloud secrets via the metadata API.

Also big fan of browserless. Do you run it yourself? We run the browserless docker containers on prem.

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

#147
post #58

Love the demo on the homepage with the render button. Really helps explain the product!

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.

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

#150
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
Post reply on HN