I need to retrieve metadata properties from a .one files using Aspose.Note.
Could you let me know how I can do?
It is requested to kindly mention what properties do you want to read. Moreover, please find below the sample code for loading and reading .ONE file:
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "Aspose.one");
// Get all Page nodes
IList<Page> pages = oneFile.GetChildNodes<Page>();
foreach (Page page in pages)
{
Console.WriteLine("LastModifiedTime: {0}", page.LastModifiedTime);
Console.WriteLine("CreationTime: {0}", page.CreationTime);
Console.WriteLine("Title: {0}", page.Title);
Console.WriteLine("Level: {0}", page.Level);
Console.WriteLine("Author: {0}", page.Author);
Console.WriteLine();
}
Furthermore, please feel free to write back to us if you require additional information.