Using the following code and the attached word document, we are not getting bar codes to render in the output file. Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("xxxx");
using (var stream = new FileStream(infile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
using (var wordDocument = new WordDocument(stream, infile.EndsWith("x", StringComparison.CurrentCultureIgnoreCase)
? FormatType.Docx
: FormatType.Doc))
{
using (var converter = new DocIORenderer())
{
converter.Settings.ChartRenderingOptions.ImageFormat = ExportImageFormat.Jpeg;
converter.Settings.EmbedFonts = true;
converter.Settings.PreserveFormFields = true;
converter.Settings.PdfConformanceLevel = Syncfusion.Pdf.PdfConformanceLevel.Pdf_A2B;
var pdfDocument = converter.ConvertToPDF(wordDocument);
using (var outStream = new FileStream(outfile, FileMode.Create))
{
pdfDocument.Save(outStream);
outStream.Flush(true);
outStream.Close();
pdfDocument.Close(true);
}
}
}
}
Is there planned support for this?