|
|
@@ -4,6 +4,7 @@ using System.IO;
|
|
|
using System.Linq.Expressions;
|
|
|
using System.Reflection;
|
|
|
using System.Text.RegularExpressions;
|
|
|
+using QuestPDF.Drawing;
|
|
|
using QuestPDF.Infrastructure;
|
|
|
using QuestPDF.Skia;
|
|
|
|
|
|
@@ -65,6 +66,11 @@ namespace QuestPDF.Helpers
|
|
|
{
|
|
|
return size.Width < -Size.Epsilon || size.Height < -Size.Epsilon;
|
|
|
}
|
|
|
+
|
|
|
+ internal static bool IsEmpty(this Element element)
|
|
|
+ {
|
|
|
+ return element.Measure(Size.Zero).Type == SpacePlanType.Empty;
|
|
|
+ }
|
|
|
|
|
|
internal static int ToQualityValue(this ImageCompressionQuality quality)
|
|
|
{
|