PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) HTML/CSS rendering issues Text truncation issue when using &nbsp

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27074

    Hi,

    We are using PD4ML 3.9.2 library for converting HTML documents to PDF. The HTML template will have multiple   characters. Note the HTML template cannot be changed.

    The issue here is that the PDF generated has truncated text because of &nbsp. We wrap the html template with the pd4ml:transform tag.

    But when we use pd4ml.addStyle(“BODY{word-wrap: break-word}”, true); in our generation tool , the data in the html template is retained.

    Could you please suggest a better way/workaround on how to fix this. Also could you please let us know as to why &nbsp truncates the data.

    PD4ML configurations that we use
    – A4 , landscape mode
    – HTML width set is 950
    – Insets 0, 0, 0, 0
    – No image split.

    -Thanks in advance.

    #29874

    I guess the content is truncated not because of   – probably it simply does not fit given htmlWidth.

    If the content is placed to a table, also try
    TD {word-wrap: break-word}

    An HTML source of the problematic document would help a lot to analyze the problem reason.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.