Make LinkAnnotation internal to fix unit tests

This commit is contained in:
BobLd
2026-02-01 15:38:54 +00:00
parent 13825b9424
commit 629891e80e
2 changed files with 2 additions and 2 deletions

View File

@@ -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.
/// </summary>
public class LinkAnnotation
internal sealed class LinkAnnotation
{
/// <summary>
/// Gets the border style for the link annotation.

View File

@@ -855,7 +855,7 @@
/// </summary>
/// <param name="link">The link annotation to add</param>
/// <returns>This page builder for method chaining</returns>
public PdfPageBuilder AddLink(LinkAnnotation link)
private PdfPageBuilder AddLink(LinkAnnotation link)
{
links.Add((link.ToToken(), link.Action));
return this;