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

Free Support Forum - aspose.com

The bar symbols are overlapped with the line in the output image

Hi Team,

The converted PDF having the issue of The bar symbol in input document are overlapped with the line in the output image. please ,help me to resolve the issue.

The input Doc258.zip (50.0 KB)

The processed pdfOutput.zip (42.4 KB)

Thanks & regards,
Priyanga G


Thanks for your inquiry. We have reproduced and logged ticket WORDSNET-16252 against your reported issue for further investigation and resolution. We will notify you as soon as this issue is resolved or we have any further information to share with you. We are sorry for the inconvenience.

Currently you can set the Run.Font.Size to 7 and resolve the character overlapping issue Doc258_PDF_Output.zip (42.4 KB). Please have a look at this sample code.

Document doc = new Document(dataDir + @"Doc258.docx");

// Current solution
NodeCollection maths = doc.GetChildNodes(NodeType.OfficeMath, true);
foreach (OfficeMath math in maths)
    if ((math.ParentNode.NodeType != NodeType.OfficeMath))
        math.DisplayType = OfficeMathDisplayType.Display;
        math.Justification = OfficeMathJustification.Center;
        foreach (Run run in math.GetChildNodes(NodeType.Run, true))
            // Set font size to 7
            run.Font.Size = 7;

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.SaveFormat = SaveFormat.Pdf;
//pdfSaveOptions.EmbedFullFonts = true;

doc.Save(dataDir + "Doc258_docx_out.pdf", pdfSaveOptions);

Thank you for your cooperation.

The issues you have found earlier (filed as WORDSNET-16252) have been fixed in this Aspose.Words for .NET 18.4 update and this Aspose.Words for Java 18.4 update.