DocuTrust.NET 1.0.1

dotnet add package DocuTrust.NET --version 1.0.1
                    
NuGet\Install-Package DocuTrust.NET -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DocuTrust.NET" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DocuTrust.NET" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="DocuTrust.NET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DocuTrust.NET --version 1.0.1
                    
#r "nuget: DocuTrust.NET, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DocuTrust.NET@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DocuTrust.NET&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=DocuTrust.NET&version=1.0.1
                    
Install as a Cake Tool

DocuTrust.NET 🛡️

Accelerate your .NET file handling with confidence.

<p align="center"> <img src="https://github.com/user-attachments/assets/e7a6dc47-ab26-41e7-b3cf-ab805e570631" width="400" alt="DocuTrust.NET Logo" /> </p>

<p align="center"> <img src="https://img.shields.io/badge/License-Attribution%201.0-blue.svg" alt="License"> <img src="https://img.shields.io/badge/.NET-8.0-purple.svg" alt=".NET Version"> <a href="https://www.nuget.org/packages/DocuTrust.NET/"> <img src="https://img.shields.io/nuget/v/DocuTrust.NET.svg" alt="NuGet"> </a> </p>

Why DocuTrust.NET?

Every time I started a new .NET project, I found myself wiring up the same libraries — PDF reading, Word documents, file validation. After doing this twice in real projects, I decided to wrap them into a single cohesive library so I (and others) never have to repeat that setup again.

Built by Saud Saad Al-Rashidi, a Health Informatics student at SEU, DocuTrust.NET is born from real-world requirements to simplify file security and content extraction.

Features

  • File Signature Validation: Verify files by magic bytes, not just extensions.
  • Hardened PDF Scanning: Deep behavioral analysis to detect embedded JavaScript and malicious structural anomalies.
  • Office Document Intelligence: Scan both modern (OpenXML) and legacy (OLE) Word, Excel, and PowerPoint files for VBA macros, DDE fields, and suspicious external links.
  • Content Extraction: Easy-to-use API for pulling text out of PDFs and Office documents.
  • ASP.NET Core Ready: Seamless dependency injection integration.

Installation

dotnet add package DocuTrust.NET

Quick Start

using DocuTrust.Extensions;
using DocuTrust.Core.Abstractions;

// 1. Register in Program.cs
builder.Services.AddDocuTrust();

// 2. Inject and Use
public class MyService(IDocuTrustFileValidator validator)
{
    public async Task CheckFile(IFormFile file)
    {
        var result = await validator.ValidateFileAsync(file, ".pdf");
        if (result.IsValid)
        {
            Console.WriteLine($"Validated: {result.ActualMimeType}");
        }
    }
}

Documentation

Dependencies

License

DocuTrust.NET is licensed under the DocuTrust Open Attribution License v1.0. Commercial use is permitted, provided that attribution is given:

Uses DocuTrust.NET by sa3od34ki@gmail.com

Contact

Developed by Saud Saad Al-Rashidi
Email: sa3od34ki@gmail.com

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 108 4/29/2026
1.0.0 91 4/29/2026