Skip to content

Commit

Permalink
Update QuickStart section in README with library registration instruc…
Browse files Browse the repository at this point in the history
…tions

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.
  • Loading branch information
X39 committed Feb 28, 2024
1 parent f12e216 commit d341f85
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,15 @@ Next, create an XML template. Here is a simple example:
</template>
```

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
Expand Down

0 comments on commit d341f85

Please sign in to comment.