Thanks for the quick response. Perhaps I simplified my example a bit too much. The part that's not displaying the barcode font is a mail merge that returns the PDF to the browser as a byte array. I'm using Doc.Save, but as a memory stream so my web service can pass a byte array back to my web page. Everything else in the mail merge works fine, it's just the barcode displays the literal text *SIC1* instead of the barcode.
Here's my .NET code
...
// merge the letter template with the data
doc.MailMerge.Execute(myDataTable);
// convert the document to a PDF so can return a byte array to the front end
MemoryStream xmlStream = new MemoryStream();
doc.Save(xmlStream, SaveFormat.AsposePdf);
//Seek to the beginning so it can be read by Aspose.Pdf.
xmlStream.Seek(0, SeekOrigin.Begin);
//Load the XML document into Aspose.Pdf
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
//Make sure the images that were saved by Aspose.Words into Windows temporary
//folder are automatically deleted by Aspose.Pdf when they are no longer needed.
pdf.IsImagesInXmlDeleteNeeded = true;
pdf.BindXML(xmlStream, null);
pdf.IsTruetypeFontMapCached = true;
pdf.TruetypeFontMapPath = ConfigurationManager.AppSettings["Aspose.TruetypeFontMapPath"];
if (pdf.TruetypeFontMapPath == null) {
pdf.TruetypeFontMapPath = System.IO.Path.GetTempPath();
}
// store the completed letter as byte array in the value property of the return object
rba.Value = pdf.GetBuffer();
return rba;
..
then later,
Response.ContentType = "Application/pdf";
Response.BinaryWrite(rba.Value);
Response.End();
I'm also not sure what you mean by "first install the font over your system"
I just dragged the .TTF file into the FONTS folder and it automatically installed. I can tell it's installed because it works in Word. Is there something else I'm missing with the installation?