diff --git a/zesje/pdf_generation.py b/zesje/pdf_generation.py index ed4e5b2b0123d10bbc54016f114ff1b9316afa19..3657250487ecf15acbb4aa40b2da21c13e38937a 100644 --- a/zesje/pdf_generation.py +++ b/zesje/pdf_generation.py @@ -173,13 +173,13 @@ def generate_checkbox(canvas, x, y, label): margin = 5 # Margin between elements and sides markboxsize = fontsize - 2 # Size of checkboxes boxes x_label = x + 1 # location of the label - y_label = y + margin # remove fontsize from the y label since we draw from the bottom left up + y_label = y + margin # remove fontsize from the y label since we draw from the bottom left up box_y = y - markboxsize # check that there is a label to print if (label and not (len(label) == 0)): canvas.setFont('Helvetica', fontsize) canvas.drawString(x_label, y_label, label[0]) - #box_y = box_y - margin - fontsize + # box_y = box_y - margin - fontsize # canvas.lines([ (x, y, x +15, y), (x, y, x, y +15)]) canvas.rect(x, box_y, markboxsize, markboxsize)