Well, I have this doubt because I have not found good documentation about it, there is a specific doubt at the moment and it is with the images.
from reportlab.lib import colors
from reportlab.lib.units import cm
from reportlab.lib.enums import TA_JUSTIFY, TA_CENTER
from reportlab.lib.pagesizes import letter, landscape
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle, Image
...
#Logo
url_logo = EmpresaImagenes.objects.get(id=1).logo
if url_logo!='':
im = Image(url_logo, 3*cm, 3*cm)
im.hAlign ='RIGHT'
Story.append(im)
because if I leave only Image(url_logo)
the image goes beyond the actual size, if I put Image(url_logo, 3*cm, 3*cm)
it adjusts to 3cm x 3cm, but if I just want to adjust the height of the image and that the width is proportional?
I would like to know if anyone knows an API, guide, tutorial or similar (or several) that are (are) quite complete about ReportLab? (in English or Spanish)
I am learning and I need to do several things with ReportLab.