This commit is contained in:
parent
538b139cb4
commit
73f50dff80
@ -124,6 +124,21 @@ namespace Volian.Print.Library
|
|||||||
if (textLayer != null) cb.EndLayer();
|
if (textLayer != null) cb.EndLayer();
|
||||||
return bottom;
|
return bottom;
|
||||||
}
|
}
|
||||||
|
public static float GridAt(PdfContentByte cb, vlnTable myGrid, float x, float y, float width, float height, string debugText, float yBottomMargin, bool hasBorder)
|
||||||
|
{
|
||||||
|
VlnSvgPageHelper _MyPageHelper = cb.PdfWriter.PageEvent as VlnSvgPageHelper;
|
||||||
|
PdfLayer textLayer = _MyPageHelper == null ? null : _MyPageHelper.TextLayer;
|
||||||
|
float left = x + Offset.X;
|
||||||
|
float top = y + Offset.Y;
|
||||||
|
float right = left + width;
|
||||||
|
float bottom = top - height;
|
||||||
|
ColumnText myColumnText = new ColumnText(cb);
|
||||||
|
myColumnText.SetSimpleColumn(left, top, left + width, yBottomMargin);
|
||||||
|
if (textLayer != null) cb.BeginLayer(textLayer);
|
||||||
|
myGrid.ToPdf(myColumnText, left, top);
|
||||||
|
if (textLayer != null) cb.EndLayer();
|
||||||
|
return bottom;
|
||||||
|
}
|
||||||
private static void DrawPdfDebug(PdfContentByte cb, float left, float top, float right, float bottom, string debugText, float yDescent)
|
private static void DrawPdfDebug(PdfContentByte cb, float left, float top, float right, float bottom, string debugText, float yDescent)
|
||||||
{
|
{
|
||||||
VlnSvgPageHelper _MyPageHelper = cb.PdfWriter.PageEvent as VlnSvgPageHelper;
|
VlnSvgPageHelper _MyPageHelper = cb.PdfWriter.PageEvent as VlnSvgPageHelper;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user