[Python] Python reportLab platypus: bottom image

Discussão em 'Python' iniciado por Stack, Agosto 27, 2025.

  1. Stack

    Stack Membro Participativo

    I'm working with the reportlab library and I have doubts about adding an image using a SimpleDocTemplate.

    I have dynamic content and I don't know how much space it occupies. What happens is that I want to add a logo at the bottom of the page (always in the same place). The way I'm doing it is to add things to a list: e.g [text, spacer, table, spacer, logo] and then build it. The place of the logo depends on other variables.

    Could you help me to accomplish this behavior?

    I know that this can be done using absolute positioning (e.g using drawImage in a canvas class) but I don't know how to combine the way I'm doing it with this.

    Thanks in advance

    Continue reading...

Compartilhe esta Página