Browse Source

After-merge adjustments

MarcinZiabek 2 years ago
parent
commit
312e94a4bd

+ 1 - 1
Source/QuestPDF/Drawing/DocumentGenerator.cs

@@ -254,7 +254,7 @@ namespace QuestPDF.Drawing
                 {
                     foreach (var textBlockElement in textBlock.Items.OfType<TextBlockElement>())
                     {
-                        textBlockElement.Element.ApplyDefaultImageConfiguration(settings);
+                        textBlockElement.Element.ApplyDefaultImageConfiguration(imageRasterDpi, imageCompressionQuality);
                     }
                 }
             });

+ 1 - 1
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.
         /// </summary>
-        public int RasterDpi { get; set; } = DefaultRasterDpi * 2;
+        public int ImageRasterDpi { get; set; } = DefaultRasterDpi * 2;
  
         public ContentDirection ContentDirection { get; set; } = ContentDirection.LeftToRight;