From 312e94a4bd806f9f6fcc46e6aa4ce5795ae454da Mon Sep 17 00:00:00 2001 From: MarcinZiabek Date: Mon, 15 May 2023 01:19:17 +0200 Subject: [PATCH] After-merge adjustments --- Source/QuestPDF/Drawing/DocumentGenerator.cs | 2 +- Source/QuestPDF/Infrastructure/DocumentSettings.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;