|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pdflib.pCOS
public final class pCOS
pCOS - PDF Information Retrieval Tool
Note that this is only a syntax summary. For complete information
please refer to the pCOS API reference manual which is available
in the PDF file pCOS-manual.pdf in the pCOS distribution.
Constructor Summary | |
---|---|
pCOS()
Create a new pCOS context. |
Method Summary | |
---|---|
void |
close_document(int doc)
Close a PDF document. |
void |
create_pvf(java.lang.String filename,
byte[] data,
java.lang.String optlist)
Create a named virtual read-only file from data provided in memory. |
int |
delete_pvf(java.lang.String filename)
Delete a named virtual file and free its data structures (but not the contents). |
void |
delete()
Delete a pCOS context and release all its internal resources. |
java.lang.String |
get_apiname()
Get the name of the API function which caused the last exception. |
java.lang.String |
get_errmsg()
Get a detailed description of the last exception. |
int |
get_errnum()
Return the error number of the last error. |
double |
get_number(int doc,
java.lang.String path)
Deprecated. Use pcos_get_number(). |
byte[] |
get_stream(int doc,
java.lang.String optlist,
java.lang.String path)
Deprecated. Use pcos_get_stream(). |
java.lang.String |
get_string(int doc,
java.lang.String path)
Deprecated. Use pcos_get_string(). |
int |
open_document_mem(byte[] data,
java.lang.String optlist)
Deprecated. Use create_pvf()/delete_pvf(). |
int |
open_document(java.lang.String filename,
java.lang.String optlist)
Open a PDF document from file. |
double |
pcos_get_number(int doc,
java.lang.String path)
Get pCOS path value with numerical type. |
byte[] |
pcos_get_stream(int doc,
java.lang.String optlist,
java.lang.String path)
Get pCOS stream object contents. |
java.lang.String |
pcos_get_string(int doc,
java.lang.String path)
Get pCOS path value with string type. |
void |
set_option(java.lang.String optlist)
Set some options. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public pCOS() throws pCOSException
pCOSException
- May throw an exception in case
of memory shortage.Method Detail |
---|
public final void close_document(int doc) throws pCOSException
pCOSException
- May throw an exception for
various reasons.public final void create_pvf(java.lang.String filename, byte[] data, java.lang.String optlist) throws pCOSException
pCOSException
- PDF output cannot be finished after an exception.public final void delete()
public final int delete_pvf(java.lang.String filename) throws pCOSException
pCOSException
public final java.lang.String get_apiname() throws pCOSException
pCOSException
public final java.lang.String get_errmsg() throws pCOSException
pCOSException
public final int get_errnum() throws pCOSException
pCOSException
public final int open_document(java.lang.String filename, java.lang.String optlist) throws pCOSException
pCOSException
- May throw an exception for
various reasons.public final int open_document_mem(byte[] data, java.lang.String optlist) throws pCOSException
pCOSException
- May throw an exception for
various reasons.public final double pcos_get_number(int doc, java.lang.String path) throws pCOSException
pCOSException
- May throw an exception for
various reasons.public final double get_number(int doc, java.lang.String path) throws pCOSException
pCOSException
- May throw an exception for
various reasons.public final java.lang.String pcos_get_string(int doc, java.lang.String path) throws pCOSException
pCOSException
- May throw an exception for
various reasons.public final java.lang.String get_string(int doc, java.lang.String path) throws pCOSException
pCOSException
- May throw an exception for
various reasons.public final byte[] pcos_get_stream(int doc, java.lang.String optlist, java.lang.String path) throws pCOSException
pCOSException
- May throw an exception for
various reasons.public final byte[] get_stream(int doc, java.lang.String optlist, java.lang.String path) throws pCOSException
pCOSException
- May throw an exception for
various reasons.public final void set_option(java.lang.String optlist) throws pCOSException
pCOSException
- May throw an exception for
various reasons.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |