F2021-046: Cover Page – remove merge page num, but include in overall count

F2021-046: BNPP Alarm Cover Page – remove merge page num, but include in overall count
This commit is contained in:
2021-09-27 15:42:31 +00:00
parent c183ddd2e9
commit cc6f0ed9fd
4 changed files with 26 additions and 2 deletions

View File

@@ -842,6 +842,11 @@ namespace VEPROMS
// pdf name from printing has the path, remove it.
string pdfname = locpdfname.Substring(locpdfname.LastIndexOf(@"\") + 1);
MergedPdfProc mpp = new MergedPdfProc(myProc.DisplayText, pdfname);
// F2021-046: flag if cover page section doesn't print page number on first page of merged pdf:
if (myProc.Sections != null)
{
foreach (ItemInfo ii in myProc.Sections) if (ii.MyDocStyle != null && ii.MyDocStyle.CoverNoMergedPageNum) mpp.FirstPageNoPageNum = true;
}
if (_MergedPfd.MergedPdfs == null) _MergedPfd.MergedPdfs = new List<MergedPdfProc>();
mpp.PageCount = PromsPrinter.ProcPageCount;
_MergedPfd.MergedPdfs.Add(mpp);