I have got it working so that when viewing the PDF it shows the barcode correctly. Based on using:
XmlNamespaceManager
nsmgr = new XmlNamespaceManager(xmlDoc.NameTable);
nsmgr.AddNamespace("apdf", "Aspose.Pdf");
foreach
(XmlElement barcodeFontSegmentNode in xmlDoc.SelectNodes("//apdf:Segment[@FontName='Free
3 of 9 Extended Regular']", nsmgr))
{
barcodeFontSegmentNode.SetAttribute("IsUnicode",
"true");
barcodeFontSegmentNode.SetAttribute("TruetypeFontFileName",
@"C:\WINDOWS\Fonts\FRE3OF9X.TTF");
}
But now when I actually try and print the PDF to a printer the printer warms up and nothing comes out. If I go to advanced button and tick the check box "Print as image" it actually works.
Is there a setting I can set in the PDF that will automatically set this setting?
Thanks very much,
Jeremy