Closed survtur closed 1 year ago
Yes and no. In the most common usecase, you'd create a Paragraph
and you'd have to specify the Font
upfront. However, the code in HTMLToPDF
takes a typing.List[Font]
and tries them sequentially.
I don't know. I haven't tried that yet.
I don't know. I haven't tried that yet.
Yes. The examples contain code snippets that place a LayoutElement
at exact coordinates.
Normally borb
gives you an assert if content does not fit in its bounding box. You could wrap a try/except
around this and create your own method based on that.
Bold and italic are supported. Underline, superscript and subscript are not (yet).
You can convert HTML to a LayoutElement
.
I'm looking for library to create PDF and I just find out that borb exists. I saw borb-examples document but some questions stays unclear for me. Could you please tell me if borb allows to:
Does borb allows to make some kind of priority list for fonts that should be used in paragraph? To act the same way browsers do it - if some character or emoji not in first font, then take this character from the second font, then third etc.
Does it support SVGinOT fonts with color emoji?
Does it works well with emoji sequences (zwj-combo, color skins and other modifiers)?
Are there a way to put image in particular coordinates?
Are there a way to put text block with few paragraps with certain font-size and check is it fit or not?
Use bold/italic/underline/strikethrough/subscript/superscript font effects? Is it the same easy way as HTML?
Is it possible just use html to format text?