You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/sites/groupdocs/parser/english/java/com.groupdocs.parser.exceptions/unsupporteddocumentformatexception/_index.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ Thrown during document load, when the document format is not recognized or not s
18
18
| Constructor | Description |
19
19
| --- | --- |
20
20
|[UnsupportedDocumentFormatException()](#UnsupportedDocumentFormatException--)| Initializes a new instance of the [UnsupportedDocumentFormatException](../../com.groupdocs.parser.exceptions/unsupporteddocumentformatexception) class. |
21
+
|[UnsupportedDocumentFormatException(String message)](#UnsupportedDocumentFormatException-java.lang.String-)| Initializes a new instance of the [UnsupportedDocumentFormatException](../../com.groupdocs.parser.exceptions/unsupporteddocumentformatexception) class with the message. |
@@ -26,3 +27,16 @@ public UnsupportedDocumentFormatException()
26
27
27
28
Initializes a new instance of the [UnsupportedDocumentFormatException](../../com.groupdocs.parser.exceptions/unsupporteddocumentformatexception) class.
public UnsupportedDocumentFormatException(String message)
33
+
```
34
+
35
+
36
+
Initializes a new instance of the [UnsupportedDocumentFormatException](../../com.groupdocs.parser.exceptions/unsupporteddocumentformatexception) class with the message.
Copy file name to clipboardExpand all lines: content/sites/groupdocs/parser/english/java/com.groupdocs.parser.options/filetype/_index.md
+57Lines changed: 57 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,11 @@ Represents the file type. Provides methods to obtain list of all file types supp
85
85
|[OST](#OST)| OST or Offline Storage Files represent user's mailbox data in offline mode on local machine upon registration with Exchange Server using Microsoft Outlook. |
86
86
|[ONE](#ONE)| File represented by .ONE extension are created by Microsoft OneNote application. |
87
87
|[ZIP](#ZIP)| ZIP file extension represents archives that can hold one or more files or directories. |
88
+
|[SEVENZ](#SEVENZ)| 7z is an archiving format for compressing files and folders with a high compression ratio. |
89
+
|[RAR](#RAR)| Files with .rar extension represent archive files that are created for storing information in compressed or normal form. |
90
+
|[TAR](#TAR)| Files with .tar extension are archives created with Unix-based utility for collecting one or more files. |
91
+
|[GZ](#GZ)| Files with .gz extension are compressed files created with gzip compression application. |
92
+
|[BZ2](#BZ2)| Compressed file using Bzip2 algorithm. |
88
93
|[TIF](#TIF)| TIF, Tagged Image File Format, represents raster images that are meant for usage on a variety of devices that comply with this file format standard. |
89
94
|[TIFF](#TIFF)| TIFF, Tagged Image File Format, represents raster images that are meant for usage on a variety of devices that comply with this file format standard. |
90
95
|[JPG](#JPG)| A JPG is a type of image format that is saved using the method of lossy compression. |
@@ -737,6 +742,58 @@ ZIP file extension represents archives that can hold one or more files or direct
Files with .rar extension represent archive files that are created for storing information in compressed or normal form. Learn more about this file format [here][].
Copy file name to clipboardExpand all lines: content/sites/groupdocs/parser/english/java/com.groupdocs.parser.options/loadoptions/_index.md
+75Lines changed: 75 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,11 +40,16 @@ See the usage examples there.
40
40
|[LoadOptions(FileFormat fileFormat, String password)](#LoadOptions-com.groupdocs.parser.options.FileFormat-java.lang.String-)| Initializes a new instance of the [LoadOptions](../../com.groupdocs.parser.options/loadoptions) class with default encodings. |
41
41
|[LoadOptions(FileFormat fileFormat, String password, Charset charset, Charset defaultAnsiCharset)](#LoadOptions-com.groupdocs.parser.options.FileFormat-java.lang.String-java.nio.charset.Charset-java.nio.charset.Charset-)| Initializes a new instance of the [LoadOptions](../../com.groupdocs.parser.options/loadoptions) class with custom encodings. |
42
42
|[LoadOptions(FileFormat fileFormat, String password, Charset charset, Charset defaultAnsiCharset, Duration timeout)](#LoadOptions-com.groupdocs.parser.options.FileFormat-java.lang.String-java.nio.charset.Charset-java.nio.charset.Charset-java.time.Duration-)| Initializes a new instance of the [LoadOptions](../../com.groupdocs.parser.options/loadoptions) fully customized class. |
43
+
|[LoadOptions(FileType fileType)](#LoadOptions-com.groupdocs.parser.options.FileType-)| Initializes a new instance of the [LoadOptions](../../com.groupdocs.parser.options/loadoptions) class with empty Password and default encodings. |
44
+
|[LoadOptions(FileType fileType, String password)](#LoadOptions-com.groupdocs.parser.options.FileType-java.lang.String-)| Initializes a new instance of the [LoadOptions](../../com.groupdocs.parser.options/loadoptions) class with password and default encodings. |
45
+
|[LoadOptions(FileType fileType, String password, Charset charset, Charset defaultAnsiCharset)](#LoadOptions-com.groupdocs.parser.options.FileType-java.lang.String-java.nio.charset.Charset-java.nio.charset.Charset-)| Initializes a new instance of the [LoadOptions](../../com.groupdocs.parser.options/loadoptions) class with custom encodings. |
46
+
|[LoadOptions(FileType fileType, String password, Charset charset, Charset defaultAnsiCharset, Duration timeout)](#LoadOptions-com.groupdocs.parser.options.FileType-java.lang.String-java.nio.charset.Charset-java.nio.charset.Charset-java.time.Duration-)| Initializes a new instance of the [LoadOptions](../../com.groupdocs.parser.options/loadoptions) fully customized class. |
43
47
## Methods
44
48
45
49
| Method | Description |
46
50
| --- | --- |
47
51
|[getFileFormat()](#getFileFormat--)| Gets the file format. |
52
+
|[getFileType()](#getFileType--)| Gets the file type. |
48
53
|[getPassword()](#getPassword--)| Gets the password. |
49
54
|[getCharset()](#getCharset--)| Gets the encoding of the document. |
50
55
|[getDefaultAnsiCharset()](#getDefaultAnsiCharset--)| Gets the default ANSI encoding which is used for encoding detection. |
@@ -143,6 +148,66 @@ Initializes a new instance of the [LoadOptions](../../com.groupdocs.parser.optio
143
148
| defaultAnsiCharset | java.nio.charset.Charset | The default ANSI encoding which is used for encoding detection. |
144
149
| timeout | java.time.Duration | The Duration that represents the number of milliseconds to wait. |
Initializes a new instance of the [LoadOptions](../../com.groupdocs.parser.options/loadoptions) fully customized class.
201
+
202
+
**Parameters:**
203
+
| Parameter | Type | Description |
204
+
| --- | --- | --- |
205
+
| fileType |[FileType](../../com.groupdocs.parser.options/filetype)| The type of the file. |
206
+
| password | java.lang.String | The password to open the password-protected file. |
207
+
| charset | java.nio.charset.Charset | The encoding of the document. |
208
+
| defaultAnsiCharset | java.nio.charset.Charset | The default ANSI encoding which is used for encoding detection. |
209
+
| timeout | java.time.Duration | The Duration that represents the number of milliseconds to wait. |
210
+
146
211
### getFileFormat() {#getFileFormat--}
147
212
```
148
213
public FileFormat getFileFormat()
@@ -153,6 +218,16 @@ Gets the file format.
153
218
154
219
**Returns:**
155
220
[FileFormat](../../com.groupdocs.parser.options/fileformat) - [FileFormat](../../com.groupdocs.parser.options/fileformat) enumeration that contains a file format.
221
+
### getFileType() {#getFileType--}
222
+
```
223
+
public FileType getFileType()
224
+
```
225
+
226
+
227
+
Gets the file type.
228
+
229
+
**Returns:**
230
+
[FileType](../../com.groupdocs.parser.options/filetype) - [FileFormat](../../com.groupdocs.parser.options/fileformat) enumeration that contains a file type.
Copy file name to clipboardExpand all lines: content/sites/groupdocs/parser/english/java/com.groupdocs.parser.options/ocrconnectorbase/_index.md
+28-8Lines changed: 28 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,10 @@ Provides the OCR functionality.
22
22
23
23
| Method | Description |
24
24
| --- | --- |
25
-
|[recognizeText(InputStream imageStream, int pageIndex, OcrOptions options)](#recognizeText-java.io.InputStream-int-com.groupdocs.parser.options.OcrOptions-)| Recognize a text from imageStream stream. |
26
-
|[recognizeTextAreas(InputStream imageStream, int pageIndex, Size pageSize, OcrOptions options)](#recognizeTextAreas-java.io.InputStream-int-com.groupdocs.parser.data.Size-com.groupdocs.parser.options.OcrOptions-)| Recognize text areas from imageStream stream. |
25
+
|[isTextSupported()](#isTextSupported--)| Gets the value that indicates whether the text extraction is supported. |
26
+
|[isTextAreasSupported()](#isTextAreasSupported--)| Gets the value that indicates whether the text areas extraction is supported. |
27
+
|[recognizeText(InputStream imageStream, OcrOptions options)](#recognizeText-java.io.InputStream-com.groupdocs.parser.options.OcrOptions-)| Recognize a text from imageStream stream. |
28
+
|[recognizeTextAreas(InputStream imageStream, Size pageSize, OcrOptions options)](#recognizeTextAreas-java.io.InputStream-com.groupdocs.parser.data.Size-com.groupdocs.parser.options.OcrOptions-)| Recognize text areas from imageStream stream. |
27
29
### OcrConnectorBase() {#OcrConnectorBase--}
28
30
```
29
31
public OcrConnectorBase()
@@ -32,9 +34,29 @@ public OcrConnectorBase()
32
34
33
35
Initializes a new instance of the [OcrConnectorBase](../../com.groupdocs.parser.options/ocrconnectorbase) class.
34
36
35
-
### recognizeText(InputStream imageStream, int pageIndex, OcrOptions options) {#recognizeText-java.io.InputStream-int-com.groupdocs.parser.options.OcrOptions-}
37
+
### isTextSupported() {#isTextSupported--}
36
38
```
37
-
public String recognizeText(InputStream imageStream, int pageIndex, OcrOptions options)
39
+
public boolean isTextSupported()
40
+
```
41
+
42
+
43
+
Gets the value that indicates whether the text extraction is supported.
44
+
45
+
**Returns:**
46
+
boolean - true if the text extraction is supported; otherwise, false .
0 commit comments