From 68cf8a4145c628dc8dc33b987debbcb9d9090823 Mon Sep 17 00:00:00 2001 From: Michael Babienco Date: Mon, 2 Mar 2026 16:34:40 +0900 Subject: [PATCH] Lock aspect ration --- src/ViewModels/MainViewModel.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ViewModels/MainViewModel.cs b/src/ViewModels/MainViewModel.cs index 2b9f187..19e248e 100644 --- a/src/ViewModels/MainViewModel.cs +++ b/src/ViewModels/MainViewModel.cs @@ -778,6 +778,7 @@ class MainViewModel : BaseViewModel, IFontResolver, ICanCheckShutdown paragraph.Format.Alignment = ParagraphAlignment.Center; var image = paragraph.AddImage(convertedPdfImagePath); image.Width = imageWidth; + image.LockAspectRatio = true; for (var j = 1; j < pgCount; j++) { section.AddPageBreak();