diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 60982a30..b8594f72 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -4170,6 +4170,16 @@ namespace Volian.Print.Library { Width = ic.Image_Width; Height = ic.Image_Height; + + // B2022-041: extra whitespace after resized image. Make same adjustment here that gets made in ParagrphToPdf + float mult = 1.0F; + if (Width > (vlnParagraph.wMax - 12)) mult = (vlnParagraph.wMax - 24) / Width; + if (Height > (vlnParagraph.hMax - 36)) mult = Math.Min(mult, (vlnParagraph.hMax - 36) / Height); + if (mult < 1.0F) + { + Width = Width * mult; + Height = Height * mult; + } } yoff = AdjustLocIfLongerRNO(itemInfo, yoff, yoffRightParent); bool noborder = MyItemInfo.FormatStepData.Type.ToUpper().Contains("BORDERLESS");