With GroupDocs.Watermark you can retrieve the following information about a file:
FileType represents the document file type (PDF, Word document, Excel spreadsheet, PowerPoint presentation, image etc.).
PageCount represents the number of pages in a document.
FileSize represents the document file size.
PagesInfo represents the page information.
The following code samples show how to get file information:
Get file info for the file from a local disk
constwatermarker=newgroupdocs.watermark.Watermarker(documentPath);constdocumentInfo=watermarker.getDocumentInfo();console.log('File type:',documentInfo.getFileType().toString());console.log('Number of pages:',documentInfo.getPageCount());console.log('Document size:',documentInfo.getSize(),'bytes');
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.