Center dialog over PROMS window
Overlay bottom of dialog with printing status dialog to hide buttons. Correct spelling of DebugPagination.txt file Fix table layout - Linespacing and text within borders Set the yOffset to an integer value after a Table - This was causing some very strange pagination problems. Output one blank line after a figure.
This commit is contained in:
@@ -197,7 +197,8 @@ namespace Volian.Print.Library
|
||||
}
|
||||
iTextSharp.text.Paragraph myPara = RtfToParagraph(str);
|
||||
myColumnText1.SetSimpleColumn(0, 0, w - 2, MyContentByte.PdfDocument.PageSize.Top); // Padding = 4
|
||||
myPara.MultipliedLeading = 1.2F;
|
||||
myPara.MultipliedLeading = 1.00F; // RHM 20120925 - Line spacing should be 6 lines per inch.
|
||||
myPara.SpacingAfter = 8; // RHM 20120925 - Add a line to properly space text from lines.
|
||||
myColumnText1.AddElement(myPara);
|
||||
//myColumnText1.Canvas.SetColorFill(PrintOverride.OverrideTextColor(System.Drawing.Color.Black));
|
||||
float posBefore = myColumnText1.YLine;
|
||||
@@ -567,12 +568,14 @@ namespace Volian.Print.Library
|
||||
BordersToPdf(myColumnText, left, top, x, w, y, h );
|
||||
float hAdjust = VeritcalTextAlignment(h);
|
||||
iTextSharp.text.pdf.ColumnText myColumnText1 = new iTextSharp.text.pdf.ColumnText(myColumnText.Canvas);
|
||||
myColumnText1.SetSimpleColumn(1 + left + x, top - y - h, left + x + w, 1 + top - y - hAdjust); // 2 == Default Padding
|
||||
float adjustTextLocation = mult * 4; // RHM 20120925 Move text down about 1 half line from the border
|
||||
myColumnText1.SetSimpleColumn(1 + left + x, top - y - h , left + x + w, 1 + top - y - hAdjust - adjustTextLocation); // 2 == Default Padding
|
||||
MyPara.MultipliedLeading *= _MyPageHelper.YMultiplier;
|
||||
myColumnText1.AddElement(MyPara);
|
||||
myColumnText1.Go();
|
||||
myColumnText.Canvas.RestoreState();
|
||||
}
|
||||
private static float _SixLinesPerInch = 12; // twips
|
||||
#endregion
|
||||
#region Private Text Methods
|
||||
private float VeritcalTextAlignment(float h)
|
||||
|
@@ -972,6 +972,7 @@ namespace Volian.Print.Library
|
||||
yForCheckoff += Height - SixLinesPerInch; // place checkoff on last row of text
|
||||
yoff += (Height + (2 * SixLinesPerInch));
|
||||
CalculateXOffset(itemInfo, maxRNO, formatInfo);
|
||||
yoff = (float)Math.Ceiling(yoff); // RHM 20120925 - Make sure that yOff is an integer value after a grid
|
||||
}
|
||||
else if (itemInfo.IsFigure) // if a figure we've got to determine the size:
|
||||
{
|
||||
@@ -1003,7 +1004,7 @@ namespace Volian.Print.Library
|
||||
//yForCheckoff = yoff + Height - SixLinesPerInch;
|
||||
if (dropCheckoff)
|
||||
yForCheckoff += Height - SixLinesPerInch; // place checkoff on last row of text
|
||||
yoff += (Height + (2 * SixLinesPerInch));
|
||||
yoff += (Height + (SixLinesPerInch)); // RHM 20120925 - Eliminate extra space after Figure
|
||||
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user