empira / PDFsharp

PDFsharp and MigraDoc Foundation for .NET 6 and .NET Framework
https://docs.pdfsharp.net/
Other
398 stars 91 forks source link

MigraDoc support for rendering barcodes and PDFSharp support for Code 128 barcodes #93

Open danports opened 4 months ago

danports commented 4 months ago

This PR is a combination of code from two forum posts plus some necessary updates to get the code to compile against the latest version:

It could use some polishing, particularly in the Code 128 implementation, but I just wanted to open this PR before I went any further to see if you guys would be open to these changes - I'm not really sure why this support was never added to MigraDoc/PDFSharp earlier. I have done some testing and it works well for my use case, though I haven't tested all of the options.