Skip to content

Commit

Permalink
Make DecodeParameterResolver class public
Browse files Browse the repository at this point in the history
  • Loading branch information
BobLd committed Feb 20, 2025
1 parent 5a06e1e commit b9bcfa5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public void OnlyExposedApiIsPublic()
"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",
Expand Down
14 changes: 12 additions & 2 deletions src/UglyToad.PdfPig/Filters/DecodeParameterResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@
using Tokens;
using UglyToad.PdfPig.Util;

internal static class DecodeParameterResolver
{
/// <summary>
/// Decode parameter resolver.
/// </summary>
public static class DecodeParameterResolver
{
/// <summary>
/// Get the filter parameters from a stream dictionary.
/// </summary>
/// <param name="streamDictionary">The stream dictionary.</param>
/// <param name="index">If the filter element is an <see cref="ArrayToken"/>, the index in the array to take the dictionary from.</param>
/// <exception cref="ArgumentNullException"></exception>
/// <exception cref="ArgumentOutOfRangeException"></exception>
public static DictionaryToken GetFilterParameters(DictionaryToken streamDictionary, int index)
{
if (streamDictionary is null)
Expand Down

0 comments on commit b9bcfa5

Please sign in to comment.