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:
parent
c183ddd2e9
commit
cc6f0ed9fd
Binary file not shown.
@ -842,6 +842,11 @@ namespace VEPROMS
|
|||||||
// pdf name from printing has the path, remove it.
|
// pdf name from printing has the path, remove it.
|
||||||
string pdfname = locpdfname.Substring(locpdfname.LastIndexOf(@"\") + 1);
|
string pdfname = locpdfname.Substring(locpdfname.LastIndexOf(@"\") + 1);
|
||||||
MergedPdfProc mpp = new MergedPdfProc(myProc.DisplayText, pdfname);
|
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>();
|
if (_MergedPfd.MergedPdfs == null) _MergedPfd.MergedPdfs = new List<MergedPdfProc>();
|
||||||
mpp.PageCount = PromsPrinter.ProcPageCount;
|
mpp.PageCount = PromsPrinter.ProcPageCount;
|
||||||
_MergedPfd.MergedPdfs.Add(mpp);
|
_MergedPfd.MergedPdfs.Add(mpp);
|
||||||
|
@ -361,6 +361,18 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
#region CoverNoMergedPageNum
|
||||||
|
[Category("Miscellaneous")]
|
||||||
|
[Description("Cover Page Do Not Show Page Count")]
|
||||||
|
private LazyLoad<bool> _CoverNoMergedPageNum; // F2021-046: flag if cover page section doesn't print page number on first page of merged pdf:
|
||||||
|
public bool CoverNoMergedPageNum
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return LazyLoad(ref _CoverNoMergedPageNum, "@CoverNoMergedPageNum");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
#region AlignHLSTabWithSect
|
#region AlignHLSTabWithSect
|
||||||
[Category("Miscellaneous")]
|
[Category("Miscellaneous")]
|
||||||
[Description("Align HLS Tab With Sect")]
|
[Description("Align HLS Tab With Sect")]
|
||||||
|
@ -32,6 +32,12 @@ namespace Volian.Print.Library
|
|||||||
get { return _PdfFileName; }
|
get { return _PdfFileName; }
|
||||||
set { _PdfFileName = value; }
|
set { _PdfFileName = value; }
|
||||||
}
|
}
|
||||||
|
private bool _FirstPageNoPageNum = false;
|
||||||
|
public bool FirstPageNoPageNum
|
||||||
|
{
|
||||||
|
get { return _FirstPageNoPageNum; }
|
||||||
|
set { _FirstPageNoPageNum = value; }
|
||||||
|
}
|
||||||
public MergedPdfProc(string title, string pfname)
|
public MergedPdfProc(string title, string pfname)
|
||||||
{
|
{
|
||||||
_Title = title;
|
_Title = title;
|
||||||
@ -140,8 +146,9 @@ namespace Volian.Print.Library
|
|||||||
mergedPageNumber += 1;
|
mergedPageNumber += 1;
|
||||||
doc.SetPageSize(paperSize);
|
doc.SetPageSize(paperSize);
|
||||||
doc.NewPage();
|
doc.NewPage();
|
||||||
PdfImportedPage page = writer.GetImportedPage(reader, currentPageNumber); // gets a page that is 'ready' to be written to combined pdf
|
PdfImportedPage page = writer.GetImportedPage(reader, currentPageNumber); // gets a page that is 'ready' to be written to combined pdf
|
||||||
if (doPageNum) // get the string & fill in with <page> and <of> numbers
|
// F2021-046: flag if cover page section doesn't print page number on first page of merged pdf:
|
||||||
|
if (doPageNum && (!(mpp.FirstPageNoPageNum && currentPageNumber == 1))) // get the string & fill in with <page> and <of> numbers
|
||||||
{
|
{
|
||||||
bool landscape = false;
|
bool landscape = false;
|
||||||
if (LandscapePages != null && LandscapePages.Contains(currentPageNumber - 1)) landscape = true;
|
if (LandscapePages != null && LandscapePages.Contains(currentPageNumber - 1)) landscape = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user