|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Document
The Document interface provides a lot of methods to get basic information about the document.
Method Summary | |
---|---|
void |
closeDocument()
Please close the file after finishing your tests. |
int |
countPages()
The method gets the page count of the document. |
String |
decryptDocument(String passwd)
The method trys to decrypt the document with a given password and returns the content if it is possible. |
List |
getAllBookmarks()
This method returns all the bookmarks of the testing document. |
Font[] |
getAllFontsInDocument()
For testing the different fonts of a document you can get the hole fonts as an array. |
Font[] |
getAllFontsOnPage(int page)
For testing the different fonts of a document you can get the fonts for a selected page by using this method. |
String |
getAuthor()
The method gets the author of the document if it was set in the document information. |
Content |
getContent()
The method gets the content of the document if it is not decrypted. |
Calendar |
getCreationDate()
The method gets the creation date of the document but be carefull it is a very specific Calendari.e. |
String |
getCreator()
The method gets the cretor of the document if it was set in the document information. |
int |
getEnryptionLength()
The method gets the encryption length of the document if it is encrypted. |
String |
getKeywords()
The method gets the keywords of a document if they are set in the document information. |
String |
getProducer()
The method gets the producer of the document if this is set in the document information. |
String |
getSubject()
The method gets the subject of the document if it is set in the document information. |
String |
getTitle()
The method gets the title of the document if it is set in the document information. |
float |
getVersion()
The method gets the version of the document if it is set in the document information. |
boolean |
isDocumentEncrypted()
The method checks if the document is encrypted. |
boolean |
isOwnerPasswd(String passwd)
The method checks if the supposed owner password is the owner password of the document. |
boolean |
isUserPasswd(String passwd)
The method checks if the supposed user password is the user password of the document. |
Method Detail |
---|
void closeDocument()
int countPages()
String decryptDocument(String passwd)
passwd
- The owner or the user password of the pdf file to decrypt the
document.
String getCreator()
String getAuthor()
Content getContent()
Calendar getCreationDate()
int getEnryptionLength()
String getKeywords()
String getProducer()
String getSubject()
String getTitle()
float getVersion()
boolean isDocumentEncrypted()
boolean isOwnerPasswd(String passwd)
passwd
- The supposed owner password.
boolean isUserPasswd(String passwd)
passwd
- The supposed user password.
Font[] getAllFontsInDocument()
Font[] getAllFontsOnPage(int page)
page
- The supposed page to get the fonts from.
List getAllBookmarks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |