NevronOpenVision
Nevron.Nov.Dom Namespace / NDocumentFormatRegistry<TDocumentFormat> Class / GetFromFileAsync Method
The file to analyze.
Specifies whether the file is going to be used for reading or for writing.
In This Topic
    GetFromFileAsync Method
    In This Topic
    Gets the document format from the specified file. If the file format couldn't be recognized from the given file, the default file format of the document registry is returned.
    Syntax
    public NPromise<TDocumentFormat> GetFromFileAsync( 
       NFile file,
       System.bool forReading
    )

    Parameters

    file
    The file to analyze.
    forReading
    Specifies whether the file is going to be used for reading or for writing.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also