cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Styler rule to combat when the Title of a topic is to close to the bottom of the page

bfriesen
18-Opal

Styler rule to combat when the Title of a topic is to close to the bottom of the page

We have an issue where we are often left with a level 2 or 3 title and short description stuck on the bottom of a page, while the rest of the topic is on the next page.

 

bfriesen_0-1732126964253.png

What are my options? My thought is to create a rule that would check the room left on the page, and if the title element was within the last 3 in. of the bottom of the page it would start the topic on a new page. Is that possible?

 

Bryon

1 REPLY 1
SimonTaylor
13-Aquamarine
(To:bfriesen)

Hi Bryon

You're going to need to use an APP source edit to test the baseline position of the title and, if it is greater than some threshold, output a page break or set the top margin to something large to force it over to the next page.

Something like

if (formatting.currentState.yBase > new fLength("200mm") {

  formatting.output(""); //For the page break or block.marginTop = "40mm" for the top margin

}

Put that edit in a property set and apply that to the title, then you can reuse it and it doesn't lock up your title from being styled.

Hope that helps

Simon

Announcements

Top Tags