I have an paragraph with 2 columns containing 2 images (the same size). Within the browser the images are places correctly. Weasyprint set these images not horizontalky but vertically. Is this bug known?
Guillaume Ayoub
@liZe
@jjsa:matrix.org Hi! Could you please share your example?
Bonjour, j'ais intallés MacOS dans une machine virtuelle et installé weasyprint. Les consignes sur la documentation du site courtbouillon ne sont pas correctes, pip n'est pas pésent par contre pip3. L'installation de weasyprint peu également s'effectuée sans environement virtuel, ceci pirrair être mentionné.
Guillaume Ayoub
@liZe
@jjsa:matrix.org Bonjour ! Nous avons mis pip3 à la place de pip dans la documentation.
Pour l’installation, il est bien sûr possible d’installer WeasyPrint sans utiliser d’environnement virtuel, mais il est plus simple et moins risqué pour les débutants d’utiliser un environnement virtuel, c’est pour cela que nous avons mis cela en avant.
Question regarding WeasyPrint: I looking for a pdf generator which can add graphic with overlay text on the bottom of the last page (first page=last if only one page). So far I haven't found a solid solution. Can WeasyPrint do this?
Guillaume Ayoub
@liZe
@maxillirator:matrix.org You could use an absolute block at the end of your HTML, it will be displayed only on the last page, where you want.
Thanks for response, found a solution but don't think this would work. Absolut position breaks height calculations which could result in overwrite if I have flowing elements. I.e. unpredictability.
just wondering if weasyprint can have support for non page canvas based rendering?
basically what we are doing is we use wkhtmltoimage to render html and print on roll paper receipt (80mm supermarket receipt)
in this use case there is no frame in our rendering scenaro
so I wonder if weasyprint can also support something similar to wkhtmltoimage on a virtual borderless canvas?
Guillaume Ayoub
@liZe
Hi @gw1120:matrix.org
If your goal is to get one canvas whose height depends on the content, WeasyPrint is probably not what you’re looking for: Kozea/WeasyPrint#193
It may be possible to "hack" WeasyPrint to get what you want (some comments in this issue are quite creative), but to be honest it will be much easier to get what you want with a headless browser
hey @liZe, j’ai fait une fausse manip et dupliqué tout les événements dans mon radicale, tu sais si y’a moyen de dédupliquer plus facilement que un par un ?