From aab71bdd7efcd7e4d76021e200cf045d9d0721f6 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 26 May 2016 20:42:18 +0000 Subject: [PATCH] Fixed issue where word section page size was being used for the duplex foldout on the preceding page. B2016-135 --- PROMS/Volian.Print.Library/PromsPrinter.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index cf0e94a8..29beabdd 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -449,9 +449,16 @@ namespace Volian.Print.Library // , nextSection == null ? "" : nextSection.DisplayNumber + " " + nextSection.DisplayText // , sectionChange, wordMargins,_PageCountOfWordSection); } - MyContentByte.PdfDocument.SetPageSize(rct); + // Bug Fix: B2016-135 when using a large page size word section, that large page size was being used for the foldout page + // save this for the next section which will be the large page size word section. + if (_MyFoldoutReader.Count > 0) + MyContentByte.PdfDocument.SetPageSize(NxtRCT); + else + MyContentByte.PdfDocument.SetPageSize(rct); + NxtRCT = rct; MyContentByte.PdfDocument.NewPage(); } + private iTextSharp.text.Rectangle NxtRCT = PageSize.LETTER; private SectionInfo GetNextSection(SectionInfo currentSection) { if (currentSection.Sections != null)