Hello all,
I'm creating a pdf document using MigraDoc (package PdfSharp-MigraDoc version 6.1.1).
Document contains several tables. Unfortunately MigraDoc cannot auto-detect the needed column width, so I have to measure every string in every cell. I've found hier on the forum a solution with XGraphics measuring text width but MigraDoc does not offer a feature to create an XGraphics object containing all current style settings - only PdfSharp does. But I cannot extract a PdfSharp object from my MigraDoc object...
Now the question is: what is the simpliest way to measure text width using current style settings?
Thanks a lot in advance
|