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)