14
Views
1
Comments
Solved
[Ultimate PDF] Ordered and Unordered lists add unwanted extra lines
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive
Service Studio Version
11.54.68 (Build 63464)
Platform Version
11.28.0 (Build 43201)

We use TinyEdit from the Forge to enable users to prepare parts of text to create documents. We feed the HTML into a screen that uses the UltimatePDF webblock to create a PDF. 

We recently upgraded to versions 12.0.1 and 12.0.6 and found out that whenever LISTS are used, both Ordered and Unordered, the resulting PDF now shows unwanted extra lines. Both before the list starts, en between every list item. 

The text as stored in the database, before being fed into UltimatePDF is this: 

The first picture show the HTML text that is fed into UltimatePDF. 

The second picture shows 

  1. How data is entered via TinyEdit
  2. How it is displayed on screen 
  3. the resulting PDF document. 

Any ideas on how to fix this?


Cool regards,
Peter van Munster 



UltimatePDFIssueText.png
UltimatePDFIssue.png
2016-04-21 20-09-55
J.
 
MVP
Solution

It has to do with the css, it tries to style it better for pdf's

.screen-container {

    white-space: pre-wrap;

}

The solution might be, if you have the markup surrounded with a div-container with a class named 'markup-container' you should add a css to your pdf-screen something like this:

.screen-container .markup-container {

    white-space: normal;

}

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.