When I create a new pdf document (Aspose.Pdf.dll file version 4.1.0.0), the fonts are not included in the pdf. Only when I make a call to the GetTextHeight function the fonts are included.
Attached are the fonts we used.
CODE:
TextInfo StandardFontBold = new TextInfo();
StandardFontBold.FontName = "HelveticaNeue-Bold";
StandardFontBold.FontPfmFile = "HLB_____.PFM";
StandardFontBold.FontOutlineFile ="HLB_____.PFB";
StandardFontBold.IsFontEmbedded = true;
StandardFontBold.FontSize = 9f;
StandardFontBold.LineSpacing = 4f;
StandardFontBold.Color = black;
Pdf pdf = createNewPdf("PDFName", 20f / MM, 15f / MM, 61f / MM, 19.7f / MM);
Section section = pdf.Sections.Add();
Text titleText = new Text("Hello World!", StandardFontBold);
//Uncomment the line below to inlcude fonts
//titleText.GetTextHeight(pdf, 0f);
titleText.Margin.Bottom = 4.6f / MM;
pdf.DefaultFontName = StandardFontBold;
section.Paragraphs.Add(titleText);
pdf.Save(fileLocation);