@@ -566,7 +566,7 @@ namespace QuestPDF.Drawing
static IEnumerable<SkPdfTag> GetSkiaTagFor(Element element)
{
- if (element is SemanticTag semanticTag && semanticTag.Id > 0)
+ if (element is SemanticTag { Id: > 0 } semanticTag)
var result = SkPdfTag.Create(semanticTag.Id, semanticTag.TagType, semanticTag.Alt, semanticTag.Lang);
result.SetChildren(GetSkiaTagFor(semanticTag.Child).ToArray());
@@ -37,12 +37,10 @@ namespace QuestPDF.Elements
layers.Layer()
.ZIndex(int.MinValue)
- .ArtifactBackground()
.Background(BackgroundColor);
layers
.Layer()
.Repeat()
.DebugPointer(DebugPointerType.DocumentStructure, DocumentStructureTypes.Background.ToString())
.Element(Background);
@@ -85,7 +83,6 @@ namespace QuestPDF.Elements
- .ArtifactPaginationWatermark()
.DebugPointer(DebugPointerType.DocumentStructure, DocumentStructureTypes.Foreground.ToString())
.Element(Foreground);