From d341f85dbce9dd02ef41a56da78f2478dbc64383 Mon Sep 17 00:00:00 2001 From: X39 Date: Wed, 28 Feb 2024 02:14:17 +0100 Subject: [PATCH] Update QuickStart section in README with library registration instructions The README.md has been updated to include instructions on how to register the library with the dependency injection container at startup before generating a PDF document from the template. This ensures the correct use of the `Generator` class. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 826395e..f01ddc6 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,15 @@ Next, create an XML template. Here is a simple example: ``` -Now, you can use the `Generator` class to generate a PDF document from the template: +After registering the library with your dependency injection container at startup: + +```csharp +// ... +services.AddPdfTemplateServices(); +// ... +``` + +You can use the following code to generate a PDF document from the template: ```csharp // IServiceProvider serviceProvider