PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) HTML/CSS rendering issues word-wrap: break-word doesn’t seem to work for tables

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26423

    Hi,

    I have the following code and I am trying to get the long word in the table to wrap so that it doesn’t overflow from the pdf.

    Wrapping in the table works if one uses table-layout: fixed, but pd4ml doesn’t support this so in the pdf the end result is overflow.

    Is there some other way to get the text in the table to wrap?


    Title1 Title2
    short LongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWordLongWord

    #28118

    I used your sample HTML code and got a correct result. See attached.

    Which verion of PD4ML do you use?

    #28119

    Thanks for the quick response.

    I have version 3.6.0fx1.

    Now that I see that you got it to work I looked into my problem again more closely. It turns out the application wasn’t using the css word-wrap in the pdf because the plcase where I put it wasn’t included to the html the pdf was made out of.

    I moved the word-wrap definition and got it to work. I also discovered that pd4ml doesn’t require the property table-layout:fixed, this is only needed to make the tables wrap in the browser view.

    Thanks for the support!

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

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