java.lang.Object | |
↳ | com.pdftron.pdf.PDFNetInternalTools |
The class PDFNetInternalTools. Encapsulates the conversion of a single document from one format to another. DocumentConversion instances are created through methods belonging to the Convert class. See Convert.WordToPDFConversion for an example.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | e_callback | ||||||||||
int | e_console | ||||||||||
int | e_debug | ||||||||||
int | e_debugger | ||||||||||
int | e_disabled | ||||||||||
int | e_disk | ||||||||||
int | e_error | ||||||||||
int | e_fatal | ||||||||||
int | e_info | ||||||||||
int | e_trace | ||||||||||
int | e_warning |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static boolean |
checkDocIntegrity(PDFDoc doc)
Ensure that a document is well formed, and that its in-memory representation matches its backing filter.
| ||||||||||
static boolean |
configureLogFromJsonString(String config_string)
Attempt to configure the logging ssytem with a json configuration file.
| ||||||||||
static void |
disableLogBackend(int backend)
Disable a particular log backend.
| ||||||||||
static boolean |
enableLogBackend(int backend)
Enable a particular log backend.
| ||||||||||
static String |
getDefaultConfigFile()
Get the default configuration json file.
| ||||||||||
static String |
getPDFViewTileSummary()
Get a summary of the held tiles of all the know instances of PDFViewImplTiled.
| ||||||||||
static boolean |
isLogSystemAvailable()
Find out whether the logging system is built into this particular binary.
| ||||||||||
static void |
logMessage(int threshold, String message, String filename, int line_number)
Log a message to a particular stream using the core logging routines.
| ||||||||||
static void |
logStreamMessage(int threshold, String stream, String message, String filename, int line_number)
Log a message to a particular stream using the core logging routines.
| ||||||||||
static String |
runUniversalConversionTests(String path_with_docs)
Run universal conversion tests on all the documents found in the given path.
| ||||||||||
static void |
setAnalyticsHandler(AnalyticsHandlerCallback handler)
Set the current analytics handler.
| ||||||||||
static void |
setAssertHandler(AssertHandlerCallback handler)
Set the current assert handler.
| ||||||||||
static void |
setCutoffLogThreshold(int threshold)
set the global log cutoff.
| ||||||||||
static void |
setDefaultLogThreshold(int threshold)
set the log level for streams that do not otherwise have their level set.
| ||||||||||
static boolean |
setLogFileName(String log_filename)
Set the filename to log to.
| ||||||||||
static boolean |
setLogLocation(String log_directory, String log_filename)
Set the directory and filename to log to.
| ||||||||||
static void |
setThresholdForLogStream(String stream_name, int stream_threshold)
set the log level for some particular stream.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Ensure that a document is well formed, and that its in-memory representation matches its backing filter.
doc | -- The document to check. |
---|
PDFNetException |
---|
Attempt to configure the logging ssytem with a json configuration file.
config_string | -- Configuration Data in json form. |
---|
PDFNetException |
---|
Disable a particular log backend.
backend | -- The log backend to disable. |
---|
PDFNetException |
---|
Enable a particular log backend.
backend | -- The log backend to enable. |
---|
PDFNetException |
---|
Get the default configuration json file. You could then modify it and pass it into ConfigureLogFromJsonString.
PDFNetException |
---|
Get a summary of the held tiles of all the know instances of PDFViewImplTiled.
PDFNetException |
---|
Find out whether the logging system is built into this particular binary.
PDFNetException |
---|
Log a message to a particular stream using the core logging routines.
threshold | -- the importance of this log message. |
---|---|
message | -- the message to be logged. |
filename | -- the filename from which the log message originates. |
line_number | -- the line number from which the log message originates. |
PDFNetException |
---|
Log a message to a particular stream using the core logging routines.
threshold | -- the importance of this log message. |
---|---|
stream | -- the name of the stream to which the message belongs (a category label). |
message | -- the message to be logged. |
filename | -- the filename from which the log message originates. |
line_number | -- the line number from which the log message originates. |
PDFNetException |
---|
Run universal conversion tests on all the documents found in the given path.
path_with_docs | -- The path to search within for documents to convert. |
---|
PDFNetException |
---|
Set the current analytics handler.
handler | -- an instance of an analytics handler. |
---|
PDFNetException |
---|
Set the current assert handler.
handler | -- an instance of an assert handler. |
---|
PDFNetException |
---|
set the global log cutoff. *No* log statements with a level less than this will pass.
threshold | -- The threshold. Entries with a priority greater than or equal to this level will be logged. |
---|
PDFNetException |
---|
set the log level for streams that do not otherwise have their level set.
threshold | -- Entries with a priority greater than or equal to this level will be logged. |
---|
PDFNetException |
---|
Set the filename to log to.
log_filename | -- the name of the file to log into. |
---|
PDFNetException |
---|
Set the directory and filename to log to. If the directory does not exist, it will be created.
log_directory | -- the path of the directory to log into. |
---|---|
log_filename | -- the name of the file to log into. |
PDFNetException |
---|
set the log level for some particular stream.
stream_name | -- the name of the stream you wish to configure. |
---|---|
stream_threshold | -- the stream threshold. Entries with a priority greater than or equal to this level will be logged. |
PDFNetException |
---|