From b9bcfa5997706ca6efe562f8e667cdfadfe28647 Mon Sep 17 00:00:00 2001 From: BobLd <38405645+BobLd@users.noreply.github.com> Date: Thu, 20 Feb 2025 19:40:01 +0000 Subject: [PATCH] Make DecodeParameterResolver class public --- src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs | 1 + .../Filters/DecodeParameterResolver.cs | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs b/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs index 364bb53b..c9859252 100644 --- a/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs +++ b/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs @@ -98,6 +98,7 @@ "UglyToad.PdfPig.CrossReference.TrailerDictionary", "UglyToad.PdfPig.Exceptions.PdfDocumentEncryptedException", "UglyToad.PdfPig.Filters.BaseFilterProvider", + "UglyToad.PdfPig.Filters.DecodeParameterResolver", "UglyToad.PdfPig.Filters.DefaultFilterProvider", "UglyToad.PdfPig.Filters.IFilter", "UglyToad.PdfPig.Filters.IFilterProvider", diff --git a/src/UglyToad.PdfPig/Filters/DecodeParameterResolver.cs b/src/UglyToad.PdfPig/Filters/DecodeParameterResolver.cs index 32d10a9c..9c66a6e3 100644 --- a/src/UglyToad.PdfPig/Filters/DecodeParameterResolver.cs +++ b/src/UglyToad.PdfPig/Filters/DecodeParameterResolver.cs @@ -5,8 +5,18 @@ using Tokens; using UglyToad.PdfPig.Util; - internal static class DecodeParameterResolver - { + /// + /// Decode parameter resolver. + /// + public static class DecodeParameterResolver + { + /// + /// Get the filter parameters from a stream dictionary. + /// + /// The stream dictionary. + /// If the filter element is an , the index in the array to take the dictionary from. + /// + /// public static DictionaryToken GetFilterParameters(DictionaryToken streamDictionary, int index) { if (streamDictionary is null)