Skip to content

refactor: update README to clarify library functionality and remove o…#46

Merged
shps951023 merged 1 commit intomainfrom
v2
Mar 1, 2026
Merged

refactor: update README to clarify library functionality and remove o…#46
shps951023 merged 1 commit intomainfrom
v2

Conversation

@shps951023
Copy link
Copy Markdown
Member

…bsolete sections

Copilot AI review requested due to automatic review settings March 1, 2026 15:34
@shps951023 shps951023 merged commit 8f2e6af into main Mar 1, 2026
4 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the README to reposition MiniPdf as an Excel-to-PDF converter and removes previously documented/obsolete capabilities and sections.

Changes:

  • Update the library description and feature list to focus on Excel-to-PDF conversion.
  • Remove Text-to-PDF usage examples and other sections (build/test instructions, project structure).
  • Keep a single Excel-to-PDF usage example in the README.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
# MiniPdf

A minimal, zero-dependency .NET library for generating PDF documents from text and Excel (.xlsx) files.
A minimal, zero-dependency .NET library for converting Excel (.xlsx) files to PDF.
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README now positions MiniPdf as Excel-to-PDF only, but the NuGet package metadata still describes “generating PDF documents from text and Excel files” and includes text in tags (src/MiniPdf/MiniPdf.csproj). Consider aligning the README wording with the packaged description/tags so users see consistent functionality across NuGet and GitHub.

Copilot uses AI. Check for mistakes.
Comment thread README.md
Comment on lines 25 to 29
## Usage

### Simple Text PDF

```csharp
using MiniPdf;

var doc = new PdfDocument();
var page = doc.AddPage(); // US Letter size by default

page.AddText("Hello, World!", x: 50, y: 700, fontSize: 24);
page.AddText("This is MiniPdf.", x: 50, y: 670, fontSize: 12);

doc.Save("output.pdf");
```

### Auto-Wrapped Text

```csharp
var doc = new PdfDocument();
var page = doc.AddPage();

var longText = "This is a long paragraph that will automatically wrap "
+ "within the specified width boundary on the page.";

page.AddTextWrapped(longText, x: 50, y: 700, maxWidth: 500, fontSize: 12);

doc.Save("wrapped.pdf");
```

### Excel to PDF

```csharp
using MiniPdf;

Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The usage section’s code sample (below) calls ExcelToPdfConverter and ExcelToPdfConverter.ConversionOptions, but those types are internal in the library (src/MiniPdf/ExcelToPdfConverter.cs). As published on NuGet, consumers won’t be able to compile the README example. Update the sample to use the public API (MiniPdf.ConvertToPdf(...)), or make the converter/options types public (or expose public overloads that accept options).

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants