From e314d24620f8533057e45c8e581f17387061e9c0 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 28 Sep 2011 13:31:40 +0000 Subject: [PATCH] Support 7LPI for grids --- PROMS/Volian.Print.Library/Grid2Pdf.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/Grid2Pdf.cs b/PROMS/Volian.Print.Library/Grid2Pdf.cs index f924ed31..59693b73 100644 --- a/PROMS/Volian.Print.Library/Grid2Pdf.cs +++ b/PROMS/Volian.Print.Library/Grid2Pdf.cs @@ -562,10 +562,17 @@ namespace Volian.Print.Library float w = MyTable.ColLeft[c2 + 1] - x; float y = MyTable.RowTop[r1]; float h = MyTable.RowTop[r2 + 1] - y; - BordersToPdf(myColumnText, left, top, x, w, y, h); + VlnSvgPageHelper _MyPageHelper = myColumnText.Canvas.PdfWriter.PageEvent as VlnSvgPageHelper; + if (_MyPageHelper.YMultiplier != 1F) + { + Console.WriteLine("'---YMultiplier',{0}", _MyPageHelper.YMultiplier); + Console.WriteLine("'---MultipliedLeading',{0}", MyPara.MultipliedLeading); + } + BordersToPdf(myColumnText, left, top, x, w, y, h * _MyPageHelper.YMultiplier); 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 + MyPara.MultipliedLeading *= _MyPageHelper.YMultiplier; myColumnText1.AddElement(MyPara); myColumnText1.Go(); myColumnText.Canvas.RestoreState();