This properties supports all formats except Email and Html. Width and height are the same for all pages except the Cells formats.
The following code snippet shows how to get information about a document:
//Get file info for the file from local diskusing(Annotatorannotator=newAnnotator("input.docx")){IDocumentInfoinfo=annotator.Document.GetDocumentInfo();intwidth=info.PagesInfo[0].Width;intheight=info.PagesInfo[0].Height;Console.WriteLine("\nFile type: {0}\nNumber of pages: {1}\nDocument size: {2} bytes",info.FileType,info.PageCount,info.Size);}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.