Hi,
I am using Aspose words to fetch an existing word document and save it as a memory stream of pdf type.
And then I am using Aspose.Email.Attachment to create a pdf attachment.
The barcode images are not being exported, we see *text* in place of image.
I have the barcode ttf file at some location. How do I show the barcode image?
Here is my code:
var file = File.Open(filePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
//Load it into aspose document object
Document doc = new Document(file);
MemoryStream ms = new MemoryStream();
//Save it as a PDF type of memory stream
doc.Save(ms, SaveFormat.Pdf);
Attachment at = new Attachment(ms, new Aspose.Email.Mime.ContentType("application/pdf"));