|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pdftools.NativeLibrary com.pdftools.expa.ExpaInitialize com.pdftools.expa.Document
public class Document
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.pdftools.expa.ExpaInitialize |
---|
ExpaInitialize.CONTENTOBJECT, ExpaInitialize.ORIENTATION, ExpaInitialize.Rectangle, ExpaInitialize.TransformMatrix |
Nested classes/interfaces inherited from class com.pdftools.NativeLibrary |
---|
NativeLibrary.COLORCONVERSION, NativeLibrary.COLORSPACE, NativeLibrary.COMPRESSION, NativeLibrary.DITHERINGMODE, NativeLibrary.ERRORCODE, NativeLibrary.FONTTYPE, NativeLibrary.PERMISSION, NativeLibrary.RENDEREROPTION, NativeLibrary.RENDERINGMODE, NativeLibrary.ROTATEMODE, NativeLibrary.STRIPTYPE |
Field Summary |
---|
Fields inherited from class com.pdftools.NativeLibrary |
---|
VERSION |
Constructor Summary | |
---|---|
Document()
Deprecated. replaced by Document(String, String) and Document(byte[], String) |
|
Document(byte[] pDocumentBytes,
java.lang.String szPassword)
|
|
Document(java.lang.String strFilename,
java.lang.String strPassword)
|
Method Summary | |
---|---|
void |
close()
close an open document. |
void |
destroyObject()
Release handle for the process. |
java.lang.String |
getAuthor()
get the Author of the document. |
java.util.Date |
getCreationDate()
get the creation date of the document. |
int |
getCurrentOutlineLevel()
get the level of the current outline |
ColorSpace |
getFirstColorSpaceResource()
get the first color space resource |
Font |
getFirstFontResource()
get the first font resource. |
Image |
getFirstImageResource()
get the first image resource. |
OutlineItem |
getFirstOutlineItem()
get the first outline item resource |
java.lang.String |
getInfoEntry(java.lang.String strkey)
get the value of a custom entry of the document. |
java.lang.String |
getKeywords()
get the keywords of the document. |
int |
getLastError()
get the latest error code. |
int |
getMajorVersion()
get the major version of the document. |
int |
getMinorVersion()
get the minor version of the document. |
java.util.Date |
getModDate()
get the modification date of the document. |
ColorSpace |
getNextColorSpaceResource()
get the next color space resource |
Font |
getNextFontResource()
get the next font resource. |
Image |
getNextImageResource()
get the next image resource. |
OutlineItem |
getNextOutlineItem(int nMaxLevel,
boolean bReturnOpenOnly)
get the next outline item resource |
Page |
getPage()
get the page interface. |
int |
getPageCount()
get the number of pages of an open document |
int |
getPageNo()
get the currently selected page of an open document. |
java.lang.String |
getSubject()
get the subject of the document. |
java.lang.String |
getTitle()
get the title of the document. |
boolean |
isEncrypted()
get the information if the document is encrypted. |
boolean |
open(java.lang.String strFilename,
java.lang.String strPassword)
open a PDF random access disk file |
boolean |
openMem(byte[] pDocumentBytes,
java.lang.String szPassword)
open a PDF memory block |
boolean |
setPageNo(int iPageNo)
set the currently selected page of an open document. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Document()
Document(String, String)
and Document(byte[], String)
public Document(java.lang.String strFilename, java.lang.String strPassword)
public Document(byte[] pDocumentBytes, java.lang.String szPassword)
Method Detail |
---|
public void destroyObject()
public boolean open(java.lang.String strFilename, java.lang.String strPassword)
strFilename
- the file name and optionally the file pathstrPassword
- the user or the owner password of the encrypted PDF document
public boolean openMem(byte[] pDocumentBytes, java.lang.String szPassword)
pDocumentBytes
- the memory block containing the PDF file given as a one dimensional byte arraystrPassword
- the user or the owner password of the encrypted PDF document
public void close()
public int getLastError()
public boolean isEncrypted()
public int getMajorVersion()
public int getMinorVersion()
public java.lang.String getTitle()
public java.lang.String getAuthor()
public java.lang.String getSubject()
public java.lang.String getKeywords()
public java.util.Date getModDate()
public java.util.Date getCreationDate()
public java.lang.String getInfoEntry(java.lang.String strkey)
public int getPageCount()
public boolean setPageNo(int iPageNo)
iPageNo
- the page no to be set
public int getPageNo()
public Page getPage()
public Font getFirstFontResource()
public Font getNextFontResource()
public Image getFirstImageResource()
public Image getNextImageResource()
public ColorSpace getFirstColorSpaceResource()
public ColorSpace getNextColorSpaceResource()
public OutlineItem getFirstOutlineItem()
public OutlineItem getNextOutlineItem(int nMaxLevel, boolean bReturnOpenOnly)
nMaxLevel
- The maximum level of the depth of the oulinesbReturnOpenOnly
- Return only outlines which are opened
public int getCurrentOutlineLevel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |