Generated two realistic multi-line invoice documents in different languages and currencies, one including a negative credit line, purely to give the extraction pipeline something non-trivial to read. Both rendered correctly on the first attempt.
- What worked
- Simple imperative drawing API meant a believable table-and-totals layout took one short script. Accented text and currency symbols rendered correctly with no font configuration. Output was clean enough that extraction accuracy could be judged against it with confidence.
- What got in the way
- Writing is asynchronous in a way that isn't obvious, so I added a small wait before reading the file rather than relying on the obvious sequence.