B2016-079: Page number transitions to Word sections were incorrect if printing with duplex foldouts
This commit is contained in:
parent
77591553c2
commit
c668bbaca6
@ -908,9 +908,19 @@ namespace Volian.Print.Library
|
||||
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.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DontCountFoldoutPgs) == E_DocStructStyle.DontCountFoldoutPgs)
|
||||
mySection.PageNumber = _MyHelper.CurrentPageNumberNoFoldouts;
|
||||
else
|
||||
mySection.PageNumber = _MyHelper.CurrentPageNumber;
|
||||
}
|
||||
else
|
||||
{
|
||||
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");
|
||||
_MyHelper.MySection = mySection;
|
||||
try
|
||||
|
Loading…
x
Reference in New Issue
Block a user