Skip to content

Commit

Permalink
♻️ bump dependencies & cleanup code (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianMindee authored Aug 30, 2024
1 parent 773d394 commit ba70fd4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
15 changes: 1 addition & 14 deletions src/Mindee/Extraction/PdfExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class PdfExtractor
/// <summary>
/// Initializes a new instance of the <see cref="PdfExtractor"/> class.
/// </summary>
/// <param name="localInput">Path of the local file.</param>
/// <param name="localInput">Instance of a LocalInputSource, provided by the user.</param>
public PdfExtractor(LocalInputSource localInput)
{
this.Filename = localInput.Filename;
Expand Down Expand Up @@ -153,18 +153,5 @@ public List<ExtractedPdf> ExtractInvoices(IList<InvoiceSplitterV1PageGroup> page

return ExtractSubDocuments(correctPageIndexes);
}

/// <summary>
///
/// </summary>
/// <param name="byteArray"></param>
/// <returns></returns>
public static SKImage ByteArrayToSkImage(byte[] byteArray)
{
using (var stream = new SKManagedStream(new MemoryStream(byteArray)))
{
return SKImage.FromEncodedData(stream);
}
}
}
}
2 changes: 1 addition & 1 deletion src/Mindee/Mindee.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.8" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
<PackageReference Include="Docnet.Core" Version="2.3.1" />
<PackageReference Include="RestSharp" Version="111.3.0" />
<PackageReference Include="RestSharp" Version="112.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.4" />
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
Expand Down
1 change: 0 additions & 1 deletion tests/Mindee.UnitTests/Extraction/PdfExtractorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using Mindee.Input;
using Mindee.Parsing.Common;
using Mindee.Product.InvoiceSplitter;
using Xunit.Abstractions;

namespace Mindee.UnitTests.Extraction
{
Expand Down

0 comments on commit ba70fd4

Please sign in to comment.