Slides.SetSize: Straight Connectors distorts Slide Content

I have a slide with a Predefined Page Setup. I am trying to set this slide width and height to 8.5"x11" using SetSize mothod as below and converting to PDF.

Presentation.SlideSize.SetSize((8.572) ,(1172),SlideSizeScaleType.EnsureFit);

Straight Connectors used in the slide comes outside content and distorts the slide and PDF with the new size.
Aspose.Slides version is 17.11 and PDF is 9.0

Can someone help me in resolving the issue.

Thanks in Advance.

@sunitham,

I have observed following code sample from you where you are setting slide size and it seems fine.

I request you to please try using Aspose.Slides for .NET 18.6 on your end first. If there is still an issue then please provide the working sample example, source presentation, generated output and desired output. We will be able to investigate the issue further on our end on provision of requested information.