Search code examples
pdftextcellmigradoc

MigraDoc Table cell text overlap


I want PDF with table and I am using MigraDoc.DocumentObjectModel.Tables.Table to create table. Table cell content overlapping when content has "text with no space". Is there any direct solution rather than manually creating text wrap function?


Solution

  • Text will break at spaces, at hyphens, at soft hyphens, and at zero-width non-joiners.

    If you do not care where the linebreak occurs, just insert a zero-width non-joiner between each pair of characters or at suitable locations (e.g. for URLs after each slash or dot).

    Soft hyphens between syllables will look better for human-readable text.