Page Num Transition (for grids)

This commit is contained in:
2014-01-22 12:06:56 +00:00
parent cfb0981a22
commit 4e445bbe20
9 changed files with 245 additions and 26 deletions

View File

@@ -172,7 +172,19 @@ namespace Volian.Print.Library
public string Print(string pdfFolder)
{
if (_MyItem is ProcedureInfo)
return Print(_MyItem as ProcedureInfo, pdfFolder);
{
if (!_MyItem.ActiveFormat.PlantFormat.FormatData.TransData.UseTransitionModifier)
return Print(_MyItem as ProcedureInfo, pdfFolder);
else
{
// if the plant uses transition modifiers and/or page num in transition format,
// need to do two passes. First pass, sets the pagenumbers for each item,
// 2nd pass fills in the page numbers in transitions.
Print(_MyItem as ProcedureInfo, pdfFolder);
ProcedureInfo.RefreshPageNumTransitions(_MyItem as ProcedureInfo);
return Print(_MyItem as ProcedureInfo, pdfFolder);
}
}
return "";
}
private string BuildMSWordPDF(SectionInfo section)

View File

@@ -299,6 +299,7 @@ namespace Volian.Print.Library
public float ParagraphToPdf(PdfContentByte cb, float yPageStart, float yTopMargin, float yBottomMargin)
{
if (MyItemInfo.PageNumber == 0) MyItemInfo.PageNumber = MyPageHelper.CurrentPageNumber;
if (Processed) return yPageStart;
//float localYPageStart = yPageStart;
Processed = true;