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!>
Thanks for joining our community and helping improve Syncfusion products!
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();
}
}