Support 7LPI for grids
This commit is contained in:
parent
f78e7f6a5a
commit
e314d24620
@ -562,10 +562,17 @@ namespace Volian.Print.Library
|
|||||||
float w = MyTable.ColLeft[c2 + 1] - x;
|
float w = MyTable.ColLeft[c2 + 1] - x;
|
||||||
float y = MyTable.RowTop[r1];
|
float y = MyTable.RowTop[r1];
|
||||||
float h = MyTable.RowTop[r2 + 1] - y;
|
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);
|
float hAdjust = VeritcalTextAlignment(h);
|
||||||
iTextSharp.text.pdf.ColumnText myColumnText1 = new iTextSharp.text.pdf.ColumnText(myColumnText.Canvas);
|
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
|
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.AddElement(MyPara);
|
||||||
myColumnText1.Go();
|
myColumnText1.Go();
|
||||||
myColumnText.Canvas.RestoreState();
|
myColumnText.Canvas.RestoreState();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user