Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Html to Pdf - need to preserve whitespace and word-wrap appropriately

$
0
0
Trying to have a section in my HTML that preserves existing whitespace (particularly carriage returns) but also maintains appropriate width via normal word-wrap.  Found that CSS class below seems to work fine in both Chrome and IE10, but when rendered through Aspose, the white-space setting gets ignored, so words and paragraphs are collapsed.  Any workaround that doesn't involve changing the content of the tag?  Full sample HTML attached.

        .pre {
word-break: break-all; /* webkit */
  word-wrap: normal;
  white-space: pre-wrap;
        }




Viewing all articles
Browse latest Browse all 3131

Trending Articles