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

Free Support Forum - aspose.com

OMR Font Not Rendering in Chrome PDF Viewer

When we create a PDF using Aspose PDF with OMR font it will not render in the Chrome PDF Viewer. Only the letters are displayed. It renders correctly in Adobe. Any suggestions on how to get the OMR font to render in the Chrome PDF Viewer? Here is the code I am using and the document.printBubbleSheetPDF.aspx (5) (002).pdf (220.2 KB)

        Dim defaultOMRInfo As New TextInfo
        defaultOMRInfo.FontName = "OMR Bubbles"
        defaultOMRInfo.FontSize = 12
        defaultOMRInfo.IsTrueTypeFontBold = False
        defaultOMRInfo.Alignment = AlignmentType.Left
        defaultOMRInfo.CharSpace = formFontSize - 2
        defaultOMRInfo.IsFontEmbedded = True

@jlserpe

Thanks for contacting support.

We have tested the scenario in our environment with following code snippet, while using Aspose.Pdf for .NET 17.8 and were unable to notice the issue which you have mentioned. For your reference, we have also attached a PDF, generated over our end.

Dim doc As New Document()
Dim page As Page = doc.Pages.Add()
Dim tf As New TextFragment("The quick brown fox jumps over the lazy dog.")
tf.TextState.Font = FontRepository.FindFont("OMR Bubbles")
tf.TextState.FontSize = 20
tf.TextState.Font.IsEmbedded = True
tf.TextState.CharacterSpacing = 10
tf.TextState.HorizontalAlignment = HorizontalAlignment.Left
page.Paragraphs.Add(tf)
doc.Save(dataDir + "Bubbles.pdf")

Bubbles.pdf (7.9 KB)

You may check attached file by viewing it in Chrome PDF Viewer, that font renders correctly inside the document. Please try using latest version of the API and in case if you still face any issue, please let us know.