| Constructor and Description |
|---|
Image() |
public String[] getSupportedFileExtensions()
getSupportedFileExtensions in interface IDocumentpublic String[] getSupportedMIMETypes()
getSupportedMIMETypes in interface IDocumentpublic String getMIMEType()
getMIMEType in interface IDocumentpublic String[] getFileExtensionsForMIMEType(String MIMEType)
getFileExtensionsForMIMEType in interface IDocumentpublic String[] getMIMETypesForFileExtension(String fileExtension)
getMIMETypesForFileExtension in interface IDocumentpublic boolean check(String filePath) throws IOException
check in interface IDocumentIOExceptionpublic boolean check(InputStream inStream) throws IOException
check in interface IDocumentIOExceptionpublic int getPageCount()
getCurrentPageCount().getPageCount in interface IDocumentpublic CurrentPageCount getCurrentPageCount()
getCurrentPageCount in interface IDocumentpublic IPage getPage(int pageIndex) throws XDocException, IOException
getPage in interface IDocumentXDocExceptionIOExceptionpublic IPage getPage(int pageIndex, long timeoutInMS) throws InterruptedException, XDocException, IOException
getPage in interface IDocumentInterruptedExceptionXDocExceptionIOExceptionpublic String getFileName()
getFileName in interface IDocumentpublic DocumentInfo getDocumentInfo()
getDocumentInfo in interface IDocumentpublic void addDocumentListener(DocumentListener documentListener)
addDocumentListener in interface IDocumentpublic DocumentListener removeDocumentListener(DocumentListener documentListener)
removeDocumentListener in interface IDocumentpublic DocumentListener[] getDocumentListeners()
getDocumentListeners in interface IDocumentpublic LoadDocumentFutureTask loadDocumentAsync(String fileName, String password) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocumentAsync in interface IDocumentFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic LoadDocumentFutureTask loadDocumentAsync(InputStream inStream, String password) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocumentAsync in interface IDocumentFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic void loadDocument(InputStream inStream, String password) throws FormatNotSupportedException, InsufficientPermissionsException, XDocException, IOException
loadDocument in interface IDocumentFormatNotSupportedExceptionInsufficientPermissionsExceptionXDocExceptionIOExceptionpublic void loadDocument(String fileName, String password) throws FormatNotSupportedException, InsufficientPermissionsException, XDocException, IOException
loadDocument in interface IDocumentFormatNotSupportedExceptionInsufficientPermissionsExceptionXDocExceptionIOExceptionpublic void closeDocument()
throws IOException
closeDocument in interface IDocumentIOExceptionpublic Preferences getPreferences()
getPreferences in interface IDocumentpublic FormatKind getFormatKind()
getFormatKind in interface IDocumentpublic void copyFrom(IDocument inputDoc, PageRangeSettings pagesToCopySettings) throws XDocException, IOException
copyFrom in interface IDocumentXDocExceptionIOExceptionpublic void copyFrom(IDocument sourceDocument, PageRangeSettings pageRangeSettings, DigitizerSettings digitizerSettings) throws XDocException, IOException
copyFrom in interface IDocumentXDocExceptionIOExceptionpublic void save(String outputDir, String baseFileName) throws IOException, XDocException
save in interface IDocumentIOExceptionXDocExceptionpublic void save(OutputStream outputStream) throws XDocException, IOException
save in interface IDocumentXDocExceptionIOExceptionpublic EncoderSettings getEncoderSettings()
getEncoderSettings in interface IDocumentpublic void setEncoderSettings(EncoderSettings imageEncoderSettings) throws XDocException
setEncoderSettings in interface IDocumentXDocExceptionpublic FileInfo getFileInfo(String fileName, String password) throws XDocException, IOException
getFileInfo in interface IDocumentXDocExceptionIOExceptionpublic FileInfo getFileInfo(InputStream inStream, String password) throws XDocException, IOException
getFileInfo in interface IDocumentXDocExceptionIOException