Re:Launch HN: Onedoc (YC W24) – A better way to create PDFs
by Titou325 on Monday March 11, 2024 @12:31PM
(#39670251)
We actually provide helpers to do that in our React library https://react.onedoclabs.com/components/shell#pagebreak
CSS actually implements the break-before property to control this https://developer.mozilla.org/en-US/docs/Web/CSS/break-befor... which is also supported by the Print to PDF dialog in modern browsers.
Re:Launch HN: Onedoc (YC W24) – A better way to create PDFs
by pedro120 on Monday March 11, 2024 @12:34PM
(#39670311)
That's what we are trying to solve at Onedoc, we want developers to be able to have full control over the PDF layout as they write content. react-print is built with the intention of creating the illusion that React was meant for PDFs.
Re:Launch HN: Onedoc (YC W24) – A better way to create PDFs
by Titou325 on Monday March 11, 2024 @12:31PM
(#39670252)
We actually provide helpers to do that in our React library https://react.onedoclabs.com/components/shell#pagebreak
CSS actually implements the break-before property to control this https://developer.mozilla.org/en-US/docs/Web/CSS/break-befor... which is also supported by the Print to PDF dialog in modern browsers.
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.