| Constructor and Description |
|---|
DOCX() |
public String getFileName()
getFileName in interface IDocumentpublic void closeDocument()
throws IOException
closeDocument in interface IDocumentIOExceptionpublic 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 void addDocumentListener(DocumentListener documentListener)
addDocumentListener 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 XDocException, InterruptedException, IOException
getPage in interface IDocumentXDocExceptionInterruptedExceptionIOExceptionpublic DocumentInfo getDocumentInfo()
getDocumentInfo 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, IncorrectPasswordException, XDocException, IOException
loadDocument in interface IDocumentFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic void loadDocument(String fileName, String password) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocument in interface IDocumentFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic Preferences getPreferences()
getPreferences in interface IDocumentpublic FormatKind getFormatKind()
getFormatKind in interface IDocumentpublic void copyFrom(IDocument sourceDocument, PageRangeSettings pageRangeSettings) throws XDocException, IOException
copyFrom in interface IDocumentXDocExceptionIOExceptionpublic void save(String outputDir, String baseFileName) throws XDocException, IOException
save in interface IDocumentXDocExceptionIOExceptionpublic void copyFrom(IDocument inputDoc, PageRangeSettings pagesToCopySettings, DigitizerSettings digitizerSettings) throws XDocException, IOException
copyFrom in interface IDocumentXDocExceptionIOExceptionpublic void save(OutputStream outputStream) throws XDocException, IOException
save in interface IDocumentXDocExceptionIOExceptionpublic EncoderSettings getEncoderSettings()
getEncoderSettings in interface IDocumentpublic void setEncoderSettings(EncoderSettings encoderSettings)
setEncoderSettings in interface IDocumentpublic FileInfo getFileInfo(String fileName, String password) throws FileCorruptException, XDocException, IOException
getFileInfo in interface IDocumentFileCorruptExceptionXDocExceptionIOExceptionpublic FileInfo getFileInfo(InputStream inStream, String password) throws FileCorruptException, XDocException, IOException
getFileInfo in interface IDocumentFileCorruptExceptionXDocExceptionIOException