The method Write is the one that should be used there, but it's adding a lot of spacing between text and wouldn't allow me to add a background (I'd say the spacing is a bug in Write).
Yes, there was a bug in method
Write. But I have fixed it at last. And there is now an additional method
WriteCell allowing to specify a background color.
Cell isn't breaking line when it reaches the right margin, but it allows me to put a background (which currently I disabled due to the white border that erases the previous text).
The method
Cell still takes a cell margin into account, but method
Write resp
WriteCell now uses internally a cell margin of 0.
2 will have to wait for a fixed Write, a fixed and smarter Cell, a fixed Write with a background option or a new function doing that.
I'll just commit that change and with my head in my hands I'll sit and cry.
Version
0.6 of
wxPdfDocument including the fixes mentioned above and several other enhancements is available for download. The API documentation has been updated accordingly.
Have fun with the new release!
Regards,
Ulrich