We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Barcode font not displayed - Converting Word to PDF using Aspose.Words.dll

Hi i am using Aspose.Words.dll to convert word Doc to PDF

Here is my code

var fileName = System.AppDomain.CurrentDomain.BaseDirectory + Guid.NewGuid().ToString();
File.WriteAllBytes(fileName + ".docx", wordBytes);
var doc = new Aspose.Words.Document(fileName + ".docx");
doc.Save(fileName + ".pdf");

If i run the above code it successfully convert Word to PDF but my problem is i have barcode font in my word but that was not show as barcode in PDF. It display the word.

I have tried like below also,

var saveOptions = new PdfSaveOptions();
saveOptions.EmbedFullFonts = true;
doc.Save(fileName + ".pdf", saveOptions);

But nothing will happen.

Can any on help me to solve this issue?


Hi Pandian,

Thanks for your inquiry. Could you please attach your input Word document along with barcode font here for testing? I will investigate the issue on my side and provide you more information.


Here i have attached the font, Word document & output PDF file. Please find that

Also, I have listed the steps to reproduce the issue.

  • Create a word Document and type any thing in that. Then change that letters to the font i have attached.
  • Then Save the word file with any name like “Sample.docx” in your Directory. (ex: “C:\Sample.docx”)
  • Then try the below code
var wordBytes = File.ReadAllBytes(@"C:\Sample.docx");
File.WriteAllBytes(@"C:\Input.docx", wordBytes);
var doc = new Aspose.Words.Document(@"C:\Input.docx");

Now you can see there is no Barcode in the output pdf.


Hi Pandian,

Thanks for sharing the detail. Perhaps, you are using an older version of Aspose.Words; as with Aspose.Words v14.6.0, I am unable to reproduce this problem on my side. Steps to test this issue.

  1. Open input document in MS Word and change the font of text to IDAutomationC128L.
  2. Use following code example to convert Word document Pdf.
Document doc = new Document(MyDir + "Input-SampleDocument.docx");
doc.Save(MyDir + "Out.pdf");

I would suggest you please upgrade to the latest version of Aspose.Words i.e. v14.6.0
and let us know how it goes on your side. I hope, this will help. I
have attached the input/output documents with this post for your kind reference.