Hello everyone,
I've been struggling with ReportLab for some time now.
I personally find the ReportLab online documentation very simple and offers me no help when it comes to more complex PDFs.
I have been trying for 2 weeks to generate a proper, multi-page invoice (first with dummy variables and later with user input)...
My goal is the following: I want to create an invoice that adheres to DIN 5008 Form B. I.e. fixed positions for sender, recipient, invoice details, footer and “main block” (text field). This should also work for longer invoices/delivery notes/documents.
My problem: I just can't manage to keep to the positioning of the above positions in BaseDocTemplate or SimpleDocTemplate. Multi-page documents blow up my PDF. I have already tried to solve the problem using frames, which doesn't work properly either, and now I'm really at a loss. I need a template or a procedure from you on how to create fixed (static) elements on the first page, such as sender, recipient, invoice details and footer exactly positioned (true to x,y coordinates) and generate a table between them that automatically makes line breaks and page breaks. On the next page, the main block continues with the table and the footer + possibly the number of pages. I would be very grateful for any tips, snippets, templates, procedures or references to resources.