Added MaxWidth property that allows for defining width of PSI data and supports multi-line text (introduced for wstalr)

Adjust top margin for multiline pagelist items (introduced for wstalr)
Support multi-line PSI item, using ‘MaxWidth’ pagelist property (introduced for wstalr)
This commit is contained in:
2015-05-06 12:25:57 +00:00
parent 2521041932
commit d6557f578a
3 changed files with 122 additions and 4 deletions

View File

@@ -1410,6 +1410,7 @@ namespace Volian.Print.Library
// 792: 72 * 11 inches - TopRow - Top is high value
float _PointsPerPage = 792;
float yTopMargin = _PointsPerPage - (float)myItemInfo.MyDocStyle.Layout.TopMargin;
yTopMargin -= _MyHelper.AdjustTopMarginForMultiLinePageListItems;
// the following line was modified to comment out the - 2 * SixLinesPerInch. this fixed a pagination problem with WCN EMG E-3.
float yBottomMargin = Math.Max(0, yTopMargin - (float)myItemInfo.MyDocStyle.Layout.PageLength); // - 2 * vlnPrintObject.SixLinesPerInch);
vlnParagraph.PathPrefix = myItemInfo.Path;