Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

2
Votes
This method will generate an autotagged pdf. If you look in a pdf reader that has accessibility tools, you'll see that it tags every single line in the barcode as a separate tag. I've also attached the pdf that has been autotagged

using System.IO;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Barcode;

public void SyncFusion()
{
var syncFusionDoc = new PdfDocument();
syncFusionDoc.AutoTag = true;
var page = syncFusionDoc.Pages.Add();
var barcode = new PdfCode128BBarcode();

barcode.Text = "AbCdEfG";

barcode.Draw(page);

using (MemoryStream stream = new MemoryStream())
{
syncFusionDoc.Save(stream);

stream.Position = 0;
syncFusionDoc.Close(true);
FileStream fs = new FileStream(@"C:\Users\<user>\Downloads\syncfusion.pdf", FileMode.OpenOrCreate);
stream.CopyTo(fs);
fs.Flush();
}
}