Lock aspect ration

This commit is contained in:
2026-03-02 16:34:40 +09:00
parent e80d252b25
commit 68cf8a4145
+1
View File
@@ -778,6 +778,7 @@ class MainViewModel : BaseViewModel, IFontResolver, ICanCheckShutdown
paragraph.Format.Alignment = ParagraphAlignment.Center; paragraph.Format.Alignment = ParagraphAlignment.Center;
var image = paragraph.AddImage(convertedPdfImagePath); var image = paragraph.AddImage(convertedPdfImagePath);
image.Width = imageWidth; image.Width = imageWidth;
image.LockAspectRatio = true;
for (var j = 1; j < pgCount; j++) for (var j = 1; j < pgCount; j++)
{ {
section.AddPageBreak(); section.AddPageBreak();