5 ms·
This was a very useful guide for me a couple years ago. I had to print html documents (thankfully, just a reasonably-well-defined subset) from a .NET Winforms a
by jpfed 8y ago
This was a very useful guide for me a couple years ago. I had to print html documents (thankfully, just a reasonably-well-defined subset) from a .NET Winforms app, but driving a browser to do it was too slow and flaky. So I used the OP as the starting point for a C# layout engine.
- aliswe 8y agoIs it open source? Thinking about the logic for auto boxing text nodes adjacent to elements...
- emmanueloga_ 8y agoCan you elaborate on "auto boxing text nodes" ? Not sure what you mean. Are you trying to shape paragraphs of text? (like [1]). By the way, anything having to do with text is more complicated to handle that one would imagine [2]. 1: https://github.com/bramstein/typeset#variable-line-width https://github.com/bramstein/typeset#variable-line-width 2: https://xxyxyz.org/line-breaking/ https://xxyxyz.org/line-breaking/
- aliswe 8y agoThis is what I'm referring to: https://www.google.com/search?q=css+anonymous+block+box https://www.google.com/search?q=css+anonymous+block+box Ie. when having text adjacent to an element (which is a block element), that text is automatically inserted into a box which can't be styled or referred to, but yet help to layout the document. <div> I'm in a box <div></div> Me too </div>
- benbristow 8y agowkhtmltopdf could have been a shout