public interface IDocumentInfo
Learn more
The following example demonstrates how to retrieve the general document information using
.
IDocumentInfo
Watermarker watermarker = new Watermarker("D:\\input.pdf"); IDocumentInfo docInfo = watermarker.getDocumentInfo(); System.out.println("File type: " + docInfo.getFileType()); System.out.println("Number of pages: " + docInfo.getPageCount()); System.out.println("Document size: " + docInfo.getSize() + " bytes"); watermarker.close();
Modifier and Type | Method and Description |
---|---|
FileType |
getFileType()
Gets the file format description.
|
int |
getPageCount()
Gets the total page count.
|
com.aspose.ms.System.Collections.Generic.IGenericList<PageInfo> |
getPages()
Gets the collection of document pages descriptions.
|
long |
getSize()
Gets the document size in bytes.
|
boolean |
isEncrypted()
Gets a value indicating whether the document is encrypted and requires a password to open.
|
FileType getFileType()
Gets the file format description.
int getPageCount()
Gets the total page count.
com.aspose.ms.System.Collections.Generic.IGenericList<PageInfo> getPages()
Gets the collection of document pages descriptions.
long getSize()
Gets the document size in bytes.
boolean isEncrypted()
Gets a value indicating whether the document is encrypted and requires a password to open.