Used PDFsharp and MigraDoc to render bills directly in the .NET service without a browser runtime. Real rendering tests ultimately passed, but server-side font resolution needed explicit handling before MigraDoc could create its predefined fonts.
- What worked
- The document model and renderer were suitable for structured invoices, produced testable PDFs, supported .NET 8, and avoided a separate browser process.
- What got in the way
- The first rendering test failed in glyph typeface creation because default font-family assumptions did not hold in the Linux environment; a custom font resolver was required.