Don’t print bottom continue message over bottom box line & added yoffset to debug printout
This commit is contained in:
parent
a66144e181
commit
f3a7fb527e
@ -1064,8 +1064,8 @@ namespace Volian.Print.Library
|
|||||||
{
|
{
|
||||||
if (!Rtf2Pdf.PdfDebug) return "No Path";
|
if (!Rtf2Pdf.PdfDebug) return "No Path";
|
||||||
int profileDepth = ProfileTimer.Push(">>>> vlnParagraph.DebugInfo");
|
int profileDepth = ProfileTimer.Push(">>>> vlnParagraph.DebugInfo");
|
||||||
string retval = string.Format("DebugID = {0}, ID={1} Type={2} TypeName='{3}' StepLevel={4} ShortPath={5} Width={6} Left={7}",
|
string retval = string.Format("DebugID = {0}, ID={1} Type={2} TypeName='{3}' StepLevel={4} ShortPath={5} Width={6} Left={7} YOffset={8}",
|
||||||
DebugId, MyItemInfo.ItemID, MyItemInfo.FormatStepType, MyItemInfo.FormatStepData == null ? "NoStepData" : MyItemInfo.FormatStepData.Type, MyItemInfo.StepLevel, MyItemInfo.ShortPath, Width, XOffset);
|
DebugId, MyItemInfo.ItemID, MyItemInfo.FormatStepType, MyItemInfo.FormatStepData == null ? "NoStepData" : MyItemInfo.FormatStepData.Type, MyItemInfo.StepLevel, MyItemInfo.ShortPath, Width, XOffset, YOffset);
|
||||||
ProfileTimer.Pop(profileDepth);
|
ProfileTimer.Pop(profileDepth);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
@ -2024,7 +2024,7 @@ namespace Volian.Print.Library
|
|||||||
break;
|
break;
|
||||||
case E_ContBottomLoc.BtwnTextAndBottom: // place continue string between end of text & bottom of page
|
case E_ContBottomLoc.BtwnTextAndBottom: // place continue string between end of text & bottom of page
|
||||||
msg_yLocation = msg_yLocation + yLocation - ((yLocation - yBottomMargin) / 2); // +SixLinesPerInch; // (need this for IP3)
|
msg_yLocation = msg_yLocation + yLocation - ((yLocation - yBottomMargin) / 2); // +SixLinesPerInch; // (need this for IP3)
|
||||||
if (msg_yLocation < yBottomMargin) msg_yLocation = yBottomMargin;
|
msg_yLocation = Math.Max(msg_yLocation, yBottomMargin+SixLinesPerInch);
|
||||||
break;
|
break;
|
||||||
case E_ContBottomLoc.BottomOfPage: // place continue message at bottom of page
|
case E_ContBottomLoc.BottomOfPage: // place continue message at bottom of page
|
||||||
//msg_yLocation = yBottomMargin + 2 * SixLinesPerInch + (float)docstyle.Layout.FooterLength; // 2 lines above bottom margin
|
//msg_yLocation = yBottomMargin + 2 * SixLinesPerInch + (float)docstyle.Layout.FooterLength; // 2 lines above bottom margin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user