B2016-079: Page number transitions to Word sections were incorrect if printing with duplex foldouts

This commit is contained in:
Kathy Ruffing 2016-03-16 12:25:04 +00:00
parent 77591553c2
commit c668bbaca6

View File

@ -908,9 +908,19 @@ namespace Volian.Print.Library
public void CreateWordDocPdf(PdfContentByte cb, SectionInfo mySection) public void CreateWordDocPdf(PdfContentByte cb, SectionInfo mySection)
{ {
if (mySection.PageNumber == -1) // If page num transition goes to a section, need the pagenumber of section. if (mySection.PageNumber == -1) // If page num transition goes to a section, need the pagenumber of section.
mySection.PageNumber = _MyHelper.CurrentPageNumber; {
if ((mySection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DontCountFoldoutPgs) == E_DocStructStyle.DontCountFoldoutPgs)
mySection.PageNumber = _MyHelper.CurrentPageNumberNoFoldouts;
else
mySection.PageNumber = _MyHelper.CurrentPageNumber;
}
else else
mySection.PageNumberNextPass = _MyHelper.CurrentPageNumber; {
if ((mySection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DontCountFoldoutPgs) == E_DocStructStyle.DontCountFoldoutPgs)
mySection.PageNumberNextPass = _MyHelper.CurrentPageNumberNoFoldouts;
else
mySection.PageNumberNextPass = _MyHelper.CurrentPageNumber;
}
int profileDepth = ProfileTimer.Push(">>>> CreateWordDocPdf"); int profileDepth = ProfileTimer.Push(">>>> CreateWordDocPdf");
_MyHelper.MySection = mySection; _MyHelper.MySection = mySection;
try try