java.lang.Object | |
↳ | com.pdftron.pdf.model.FileInfo |
Facility class for file.
FileInfo(JSONObject)
function
if you insert new params or change variable names. Otherwise existing users may lose entire data.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FileInfo(FileInfo another)
Class constructor
| |||||||||||
FileInfo(int type, File file)
Class constructor
| |||||||||||
FileInfo(int type, File file, int lastPage)
Class constructor
| |||||||||||
FileInfo(int type, File file, boolean isSecured, int lastPage)
Class constructor
| |||||||||||
FileInfo(int type, String fileUri, String filename, boolean isSecured, int lastPage)
Class constructor
| |||||||||||
FileInfo(JSONObject jsonObject)
Class constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
boolean |
exists()
Whether this file exists
| ||||||||||
String | getAbsolutePath() | ||||||||||
int | getBookmarkDialogCurrentTab() | ||||||||||
String | getBytes() | ||||||||||
String | getExtension() | ||||||||||
File | getFile() | ||||||||||
int[] | getFileCount() | ||||||||||
String | getFileName() | ||||||||||
int |
getFileType()
Gets file type
| ||||||||||
int | getHScrollPos() | ||||||||||
String | getIdentifier() | ||||||||||
int | getLastPage() | ||||||||||
String | getModifiedDate() | ||||||||||
String | getName() | ||||||||||
PDFViewCtrl.PagePresentationMode | getPagePresentationMode() | ||||||||||
int | getPageRotation() | ||||||||||
String | getParentDirectoryPath() | ||||||||||
Long | getRawModifiedDate() | ||||||||||
int | getReflowTextSize() | ||||||||||
int | getSectionFirstPos() | ||||||||||
long | getSize() | ||||||||||
String | getSizeInfo() | ||||||||||
int |
getType()
Returns the file type.
| ||||||||||
int | getVScrollPos() | ||||||||||
double | getZoom() | ||||||||||
int | hashCode() | ||||||||||
boolean | isDirectory() | ||||||||||
boolean | isHeader() | ||||||||||
boolean | isHidden() | ||||||||||
boolean | isPackage() | ||||||||||
boolean | isReflowMode() | ||||||||||
boolean | isRtlMode() | ||||||||||
boolean | isSecured() | ||||||||||
void |
setBookmarkDialogCurrentTab(int index)
Sets the index of selected tab in bookmark dialog.
| ||||||||||
void |
setHScrollPos(int hScrollPos)
Sets the horizontal scroll position.
| ||||||||||
void |
setHeader(boolean isHeader)
Sets if this is header.
| ||||||||||
void |
setHidden(boolean isHidden)
Sets if this is hidden
| ||||||||||
void |
setIsPackage(boolean value)
Sets if the file is a package.
| ||||||||||
void |
setIsSecured(boolean value)
Sets if the file is secured.
| ||||||||||
void |
setLastPage(int lastPage)
Sets the last page.
| ||||||||||
void |
setPagePresentationMode(PDFViewCtrl.PagePresentationMode pagePresentationMode)
Sets the page presentation mode.
| ||||||||||
void |
setPageRotation(int rotation)
Sets the page rotation.
| ||||||||||
void |
setReflowMode(boolean inReflowMode)
Sets reflow mode.
| ||||||||||
void |
setReflowTextSize(int textSize)
Sets the text size in reflow mode.
| ||||||||||
void |
setRtlMode(boolean isRtlMode)
Sets right-to-left mode.
| ||||||||||
void |
setSectionFirstPos(int sectionFirstPos)
Sets first position in section.
| ||||||||||
void |
setVScrollPos(int vScrollPos)
Sets the horizontal scroll position.
| ||||||||||
void |
setZoom(double zoom)
Sets the zoom level.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Class constructor
Class constructor
Class constructor
Class constructor
Class constructor
Whether this file exists
Gets file type
Returns the file type.
Sets the index of selected tab in bookmark dialog.
index | The index of selected tab in bookmark dialog |
---|
Sets the horizontal scroll position.
hScrollPos | The horizontal scroll position |
---|
Sets if this is header.
isHeader | True if it is header |
---|
Sets if this is hidden
isHidden | True if hidden |
---|
Sets if the file is a package.
value | True if the file is a package |
---|
Sets if the file is secured.
value | True if the file is secured |
---|
Sets the last page.
lastPage | The last page |
---|
Sets the page presentation mode.
pagePresentationMode | The page presentation mode. |
---|
Sets the page rotation.
rotation | The page rotation |
---|
Sets reflow mode.
inReflowMode | True if reflow mode is enabled, False otherwise |
---|
Sets the text size in reflow mode.
textSize | The text size ranging from 0 to 100 |
---|
Sets right-to-left mode.
isRtlMode | True if right-to-left mode is enabled |
---|
Sets first position in section.
sectionFirstPos | The first position in section |
---|
Sets the horizontal scroll position.
vScrollPos | The vertical scroll position |
---|
Sets the zoom level.
zoom | The zoom level |
---|