Lock aspect ration
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user