Add input validation, PDF metadata support, NuGet packaging, and documentation#37
Draft
Add input validation, PDF metadata support, NuGet packaging, and documentation#37
Conversation
- Add argument validation to PdfDocument, PdfPage, and ExcelToPdfConverter using .NET 9 throw helpers (ArgumentNullException.ThrowIfNull, ArgumentException.ThrowIfNullOrEmpty, ArgumentOutOfRangeException.ThrowIfLessThanOrEqual) - Add Title, Author, Subject, Keywords, Creator metadata properties to PdfDocument - Write PDF Info dictionary in PdfWriter when any metadata property is set Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…rter Add 12 new tests to PdfDocumentTests.cs covering: - AddPage argument validation (zero width, negative height) - Save argument validation (null/empty file path, null stream) - AddText/AddTextWrapped argument validation (null text, zero maxWidth) - Metadata properties (title, all properties, no metadata, special chars) Add 5 new tests to ExcelToPdfConverterTests.cs covering: - Convert argument validation (null/empty path, null stream) - ConvertToFile argument validation (null excel path, null pdf path) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…P.md Co-authored-by: shps951023 <12729184+shps951023@users.noreply.github.com>
Co-authored-by: shps951023 <12729184+shps951023@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Finish work on issue resolution
Add input validation, PDF metadata support, NuGet packaging, and documentation
Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses several open issues to round out the v0.1.0 feature set: argument validation on public APIs, PDF document metadata, improved NuGet package metadata, and comprehensive documentation.
Input validation (#26)
ArgumentNullException.ThrowIfNull,ArgumentException.ThrowIfNullOrEmpty,ArgumentOutOfRangeException.ThrowIfLessThanOrEqual)PdfDocument,PdfPage, andExcelToPdfConverterentry pointsPDF metadata (#25)
PdfDocumentexposesTitle,Author,Subject,Keywords,CreatorpropertiesPdfWriterconditionally emits a PDF Info dictionary when any metadata is set, referenced in the trailerNuGet packaging (#5, #35)
Authors,RepositoryUrl,RepositoryType,PackageProjectUrl,PackageReadmeFileto.csproj<None Include="../../README.md" Pack="true" />Documentation (#1, #7)
ROADMAP.mdtracking v0.1.0 (done), v0.2.0/v0.3.0 (planned)Tests
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.