B2019-059 – replaced a hard coded 12 with SixLinesPerInch variable
B2019-059 – only one blank line after a figure
This commit is contained in:
@@ -244,7 +244,7 @@ namespace Volian.Print.Library
|
||||
if (ex == value) return true;
|
||||
return false;
|
||||
}
|
||||
public static float FigureAt(PdfContentByte cb, iTextSharp.text.Image image, float x, float y, float width, float height, string debugText, float yBottommargin, bool hasBorder, int itmID)
|
||||
public static float FigureAt(PdfContentByte cb, iTextSharp.text.Image image, float x, float y, float width, float height, string debugText, float yBottommargin, bool hasBorder, int itmID, float sixLinesPerInch)
|
||||
{
|
||||
if (cb.PdfDocument.PageNumber != _lastPageNum) // C2018-004 create meta file for baseline compares
|
||||
{
|
||||
@@ -254,7 +254,7 @@ namespace Volian.Print.Library
|
||||
VlnSvgPageHelper _MyPageHelper = cb.PdfWriter.PageEvent as VlnSvgPageHelper;
|
||||
PdfLayer textLayer = _MyPageHelper == null ? null : _MyPageHelper.TextLayer;
|
||||
float left = x + Offset.X;
|
||||
float top = y + Offset.Y+ 12;
|
||||
float top = y + Offset.Y + sixLinesPerInch;
|
||||
float bottom = top - height;
|
||||
image.ScaleAbsoluteWidth(width);
|
||||
image.ScaleAbsoluteHeight(height);
|
||||
@@ -286,7 +286,7 @@ namespace Volian.Print.Library
|
||||
DrawPdfDebug(cb, left, top, left + width, top-height, dbt, 0);
|
||||
}
|
||||
|
||||
return bottom;
|
||||
return bottom;
|
||||
}
|
||||
private static float _GridTopAdjust = -10;
|
||||
public static float GridTopAdjust
|
||||
|
Reference in New Issue
Block a user