diff --git a/Source/QuestPDF/Drawing/DocumentGenerator.cs b/Source/QuestPDF/Drawing/DocumentGenerator.cs index 0dd2899..05a458e 100644 --- a/Source/QuestPDF/Drawing/DocumentGenerator.cs +++ b/Source/QuestPDF/Drawing/DocumentGenerator.cs @@ -254,7 +254,7 @@ namespace QuestPDF.Drawing { foreach (var textBlockElement in textBlock.Items.OfType()) { - textBlockElement.Element.ApplyDefaultImageConfiguration(settings); + textBlockElement.Element.ApplyDefaultImageConfiguration(imageRasterDpi, imageCompressionQuality); } } }); diff --git a/Source/QuestPDF/Infrastructure/DocumentSettings.cs b/Source/QuestPDF/Infrastructure/DocumentSettings.cs index 650408f..a6dd944 100644 --- a/Source/QuestPDF/Infrastructure/DocumentSettings.cs +++ b/Source/QuestPDF/Infrastructure/DocumentSettings.cs @@ -25,7 +25,7 @@ /// When generating images, this parameter also controls the resolution of the generated content. /// Default value is 144. /// - public int RasterDpi { get; set; } = DefaultRasterDpi * 2; + public int ImageRasterDpi { get; set; } = DefaultRasterDpi * 2; public ContentDirection ContentDirection { get; set; } = ContentDirection.LeftToRight;