How to extract the Style and Font Information's of a Document and apply those to another Document

Hello Team,
Could you please help me on how to extract the common style and font information of one document and apply that properties to another document

@KeerthanaRamesh214 You can access document styles via Document.Styles collection. You can also access font formatting of individual nodes using Inline.Font property. Default font used by the document is accessible through StyleCollection.DefaultFont property.

Yes how can I apply the most common style and Font to another document

@KeerthanaRamesh214 If you would like to change font of the whole document, you can use code like this:

Document doc = new Document(@"C:\Temp\in.docx");
doc.Accept(new FontChanger("Times New Roman"));
internal class FontChanger : DocumentVisitor
{
    public FontChanger(string fontName)
    {
        mFontName = fontName;
    }

    /// <summary>
    /// Called when a FieldEnd node is encountered in the document.
    /// </summary>
    public override VisitorAction VisitFieldEnd(FieldEnd fieldEnd)
    {
        //Simply change font name
        ResetFont(fieldEnd.Font);
        return VisitorAction.Continue;
    }

    /// <summary>
    /// Called when a FieldSeparator node is encountered in the document.
    /// </summary>
    public override VisitorAction VisitFieldSeparator(FieldSeparator fieldSeparator)
    {
        ResetFont(fieldSeparator.Font);
        return VisitorAction.Continue;
    }

    /// <summary>
    /// Called when a FieldStart node is encountered in the document.
    /// </summary>
    public override VisitorAction VisitFieldStart(FieldStart fieldStart)
    {
        ResetFont(fieldStart.Font);
        return VisitorAction.Continue;
    }

    /// <summary>
    /// Called when a Footnote end is encountered in the document.
    /// </summary>
    public override VisitorAction VisitFootnoteEnd(Footnote footnote)
    {
        ResetFont(footnote.Font);
        return VisitorAction.Continue;
    }

    /// <summary>
    /// Called when a FormField node is encountered in the document.
    /// </summary>
    public override VisitorAction VisitFormField(FormField formField)
    {
        ResetFont(formField.Font);
        return VisitorAction.Continue;
    }

    /// <summary>
    /// Called when a Paragraph end is encountered in the document.
    /// </summary>
    public override VisitorAction VisitParagraphEnd(Paragraph paragraph)
    {
        ResetFont(paragraph.ParagraphBreakFont);
        return VisitorAction.Continue;
    }

    /// <summary>
    /// Called when a Run node is encountered in the document.
    /// </summary>
    public override VisitorAction VisitRun(Run run)
    {
        ResetFont(run.Font);
        return VisitorAction.Continue;
    }

    /// <summary>
    /// Called when a SpecialChar is encountered in the document.
    /// </summary>
    public override VisitorAction VisitSpecialChar(SpecialChar specialChar)
    {
        ResetFont(specialChar.Font);
        return VisitorAction.Continue;
    }

    private void ResetFont(Aspose.Words.Font font)
    {
        font.Name = mFontName;
    }

    private string mFontName = "Arial";
}

What about the styles …?

And one more is there anything like common linespacing of a document I need that as well and need to apply it to another document…

@KeerthanaRamesh214 If formatting in the source document is specified via styles and the destination document has styles with the same names, you can simply use ImportFormatMode.UseDestinationStyles. In this case Aspose.Words uses the destination document styles and copy new styles only.

Usually default formatting is applied via Normal style. So you can use the Normal style properties to get default document formatting. Also you can use StyleCollection.DefaultParagraphFormat property to get default paragraph properties.
but you should note that often formatting is applied explicitly to nodes.