Declined
Last Updated: 23 Dec 2025 12:37 by ADMIN
Ron Weingarten
Created on: 12 Mar 2019 15:59
Category: WordsProcessing
Type: Bug Report
2
WordsProcessing: Incorrect calculation of line spacing when converting document with Exact or atLeast line spacing to PDF

The calculations are wrong, leading to single lines on a page. As a result, the content of the PDF document is laid out on a bigger number of pages.

Workaround: Change the line spacing and its type before exporting to PDF:

foreach (var paragraph in this.document.EnumerateChildrenOfType<Paragraph>())
{
	HeightType? heightType = paragraph.Properties.LineSpacingType.GetActualValue();
	if (heightType == HeightType.Exact || heightType == HeightType.AtLeast) 
	{
		paragraph.Properties.LineSpacingType.LocalValue = Telerik.Windows.Documents.Flow.Model.Styles.HeightType.Auto;
		paragraph.Properties.LineSpacing.LocalValue = 2;
	}
}

 

1 comment
ADMIN
Peshito
Posted on: 23 Dec 2025 12:37

Hello,

This item is declined as it is no longer reproducible.

Regards,
Peshito
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.