mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
start adding support for reading encrypted documents
This commit is contained in:
19
src/UglyToad.PdfPig/Encryption/NoOpEncryptionHandler.cs
Normal file
19
src/UglyToad.PdfPig/Encryption/NoOpEncryptionHandler.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace UglyToad.PdfPig.Encryption
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using Tokens;
|
||||
|
||||
internal class NoOpEncryptionHandler : IEncryptionHandler
|
||||
{
|
||||
public static NoOpEncryptionHandler Instance { get; } = new NoOpEncryptionHandler();
|
||||
|
||||
private NoOpEncryptionHandler()
|
||||
{
|
||||
}
|
||||
|
||||
public IReadOnlyList<byte> Decrypt(StreamToken stream)
|
||||
{
|
||||
return stream.Data;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user