From 629891e80eef352abe56013e9815e216759e8d43 Mon Sep 17 00:00:00 2001 From: BobLd <38405645+BobLd@users.noreply.github.com> Date: Sun, 1 Feb 2026 15:38:54 +0000 Subject: [PATCH] Make LinkAnnotation internal to fix unit tests --- src/UglyToad.PdfPig/Writer/LinkAnnotation.cs | 2 +- src/UglyToad.PdfPig/Writer/PdfPageBuilder.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UglyToad.PdfPig/Writer/LinkAnnotation.cs b/src/UglyToad.PdfPig/Writer/LinkAnnotation.cs index b1994e4d..c35c98ca 100644 --- a/src/UglyToad.PdfPig/Writer/LinkAnnotation.cs +++ b/src/UglyToad.PdfPig/Writer/LinkAnnotation.cs @@ -9,7 +9,7 @@ namespace UglyToad.PdfPig.Writer /// Represents a link annotation that can be added to a PDF page. /// Link annotations provide clickable areas that can trigger actions such as navigating to another page or opening a URL. /// - public class LinkAnnotation + internal sealed class LinkAnnotation { /// /// Gets the border style for the link annotation. diff --git a/src/UglyToad.PdfPig/Writer/PdfPageBuilder.cs b/src/UglyToad.PdfPig/Writer/PdfPageBuilder.cs index c3bacccd..d725ae18 100644 --- a/src/UglyToad.PdfPig/Writer/PdfPageBuilder.cs +++ b/src/UglyToad.PdfPig/Writer/PdfPageBuilder.cs @@ -855,7 +855,7 @@ /// /// The link annotation to add /// This page builder for method chaining - public PdfPageBuilder AddLink(LinkAnnotation link) + private PdfPageBuilder AddLink(LinkAnnotation link) { links.Add((link.ToToken(), link.Action)); return this;