Skip to content

Commit b9bcfa5

Browse files
committed
Make DecodeParameterResolver class public
1 parent 5a06e1e commit b9bcfa5

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public void OnlyExposedApiIsPublic()
9898
"UglyToad.PdfPig.CrossReference.TrailerDictionary",
9999
"UglyToad.PdfPig.Exceptions.PdfDocumentEncryptedException",
100100
"UglyToad.PdfPig.Filters.BaseFilterProvider",
101+
"UglyToad.PdfPig.Filters.DecodeParameterResolver",
101102
"UglyToad.PdfPig.Filters.DefaultFilterProvider",
102103
"UglyToad.PdfPig.Filters.IFilter",
103104
"UglyToad.PdfPig.Filters.IFilterProvider",

src/UglyToad.PdfPig/Filters/DecodeParameterResolver.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,18 @@
55
using Tokens;
66
using UglyToad.PdfPig.Util;
77

8-
internal static class DecodeParameterResolver
9-
{
8+
/// <summary>
9+
/// Decode parameter resolver.
10+
/// </summary>
11+
public static class DecodeParameterResolver
12+
{
13+
/// <summary>
14+
/// Get the filter parameters from a stream dictionary.
15+
/// </summary>
16+
/// <param name="streamDictionary">The stream dictionary.</param>
17+
/// <param name="index">If the filter element is an <see cref="ArrayToken"/>, the index in the array to take the dictionary from.</param>
18+
/// <exception cref="ArgumentNullException"></exception>
19+
/// <exception cref="ArgumentOutOfRangeException"></exception>
1020
public static DictionaryToken GetFilterParameters(DictionaryToken streamDictionary, int index)
1121
{
1222
if (streamDictionary is null)

0 commit comments

Comments
 (0)