java.lang.Object | ||
↳ | com.pdftron.pdf.OptionsBase | |
↳ | com.pdftron.pdf.BarcodeOptions |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | BarcodeOptions.BarcodeOrientation | A set of flags used to specify the barcode orientation(s). | |||||||||
enum | BarcodeOptions.BarcodeProfile | An enumeration used to specify the barcode detection profile. | |||||||||
class | BarcodeOptions.BarcodeTypeGroup | A set of flags used to specify a subset of barcode types. | |||||||||
enum | BarcodeOptions.OutputFormat | An enumeration used to specify the format of the data output. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BarcodeOptions()
Constructor.
| |||||||||||
BarcodeOptions(String json_string)
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getBarcodeOrientations()
Gets the value BarcodeOrientations from the options object.
| ||||||||||
BarcodeOptions.BarcodeProfile |
getBarcodeProfile()
Gets the value BarcodeProfile from the options object.
| ||||||||||
int |
getBarcodeSearchTypes()
Gets the value BarcodeSearchTypes from the options object.
| ||||||||||
BarcodeOptions.OutputFormat |
getDataOutputFormat()
Gets the value DataOutputFormat from the options object.
| ||||||||||
String |
getPages()
Gets the value Pages from the options object.
| ||||||||||
BarcodeOptions |
setBarcodeOrientations(int value)
Sets the value for BarcodeOrientations in the options object.
| ||||||||||
BarcodeOptions |
setBarcodeProfile(BarcodeOptions.BarcodeProfile value)
Sets the value for BarcodeProfile in the options object.
| ||||||||||
BarcodeOptions |
setBarcodeSearchTypes(int value)
Sets the value for BarcodeSearchTypes in the options object.
| ||||||||||
BarcodeOptions |
setDataOutputFormat(BarcodeOptions.OutputFormat value)
Sets the value for DataOutputFormat in the options object.
| ||||||||||
BarcodeOptions |
setPages(String value)
Sets the value for Pages in the options object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Gets the value BarcodeOrientations from the options object. Specifies a set of barcode orientations to be searched for in the target PDF. This value can be created by bitwise OR-ing together various values from BarcodeOrientation to select the orientations of interest. By default, all orientations are searched for. Additional search directions can have a modest impact on search time. Orientation only affects the following barcode types: e_linear, e_post_net_planet, e_four_state, e_gs1_databar_stacked, e_pdf417, e_micro_pdf417, e_patch_code and e_pharma_code.
PDFNetException |
---|
Gets the value BarcodeProfile from the options object. Specifies the barcode detection profile. Depending on the type and quality of the input, specialized profiles may return a better result at the cost of a slight runtime performance penalty. Barcode detection has the best runtime performance on high quality sources with the default profile.
PDFNetException |
---|
Gets the value BarcodeSearchTypes from the options object. Specifies a set of barcode types to be searched for in the target PDF. This value can be created by bitwise OR-ing together various values from BarcodeTypeGroup to select the types of interest. Searching for barcodes takes approximately linear time in the number of barcode types to be searched for. By specifying only the types of barcodes of interest, runtime may be significantly improved. By default, all types are searched for.
PDFNetException |
---|
Gets the value DataOutputFormat from the options object. Specifies the format of the data output. The default is "auto", which will attempt to decode the barcode data to a string if possible. Otherwise, a Base64-encoded binary stream will be used. If the data is known to be binary, the output format can be set to "binary" to avoid unnecessary decoding attempts. Data returned as binary will be stored in the "data" field of the barcode object in the output JSON, while decoded data will be stored in the "text" field.
PDFNetException |
---|
Gets the value Pages from the options object. Specifies a range of pages on which to perform barcode extraction, such as "1-5", or "1-3,5,7-10". Open ended ranges are supported, e.g., "3-". By default all pages are converted. The first page is page number 1.
PDFNetException |
---|
Sets the value for BarcodeOrientations in the options object. Specifies a set of barcode orientations to be searched for in the target PDF. This value can be created by bitwise OR-ing together various values from BarcodeOrientation to select the orientations of interest. By default, all orientations are searched for. Additional search directions can have a modest impact on search time. Orientation only affects the following barcode types: e_linear, e_post_net_planet, e_four_state, e_gs1_databar_stacked, e_pdf417, e_micro_pdf417, e_patch_code and e_pharma_code.
value | Specifies a set of barcode orientations to be searched for in the target PDF. This value can be created by bitwise OR-ing together various values from BarcodeOrientation to select the orientations of interest. By default, all orientations are searched for. Additional search directions can have a modest impact on search time. Orientation only affects the following barcode types: e_linear, e_post_net_planet, e_four_state, e_gs1_databar_stacked, e_pdf417, e_micro_pdf417, e_patch_code and e_pharma_code. |
---|
PDFNetException |
---|
Sets the value for BarcodeProfile in the options object. Specifies the barcode detection profile. Depending on the type and quality of the input, specialized profiles may return a better result at the cost of a slight runtime performance penalty. Barcode detection has the best runtime performance on high quality sources with the default profile.
value | Specifies the barcode detection profile. Depending on the type and quality of the input, specialized profiles may return a better result at the cost of a slight runtime performance penalty. Barcode detection has the best runtime performance on high quality sources with the default profile. |
---|
PDFNetException |
---|
Sets the value for BarcodeSearchTypes in the options object. Specifies a set of barcode types to be searched for in the target PDF. This value can be created by bitwise OR-ing together various values from BarcodeTypeGroup to select the types of interest. Searching for barcodes takes approximately linear time in the number of barcode types to be searched for. By specifying only the types of barcodes of interest, runtime may be significantly improved. By default, all types are searched for.
value | Specifies a set of barcode types to be searched for in the target PDF. This value can be created by bitwise OR-ing together various values from BarcodeTypeGroup to select the types of interest. Searching for barcodes takes approximately linear time in the number of barcode types to be searched for. By specifying only the types of barcodes of interest, runtime may be significantly improved. By default, all types are searched for. |
---|
PDFNetException |
---|
Sets the value for DataOutputFormat in the options object. Specifies the format of the data output. The default is "auto", which will attempt to decode the barcode data to a string if possible. Otherwise, a Base64-encoded binary stream will be used. If the data is known to be binary, the output format can be set to "binary" to avoid unnecessary decoding attempts. Data returned as binary will be stored in the "data" field of the barcode object in the output JSON, while decoded data will be stored in the "text" field.
value | Specifies the format of the data output. The default is "auto", which will attempt to decode the barcode data to a string if possible. Otherwise, a Base64-encoded binary stream will be used. If the data is known to be binary, the output format can be set to "binary" to avoid unnecessary decoding attempts. Data returned as binary will be stored in the "data" field of the barcode object in the output JSON, while decoded data will be stored in the "text" field. |
---|
PDFNetException |
---|
Sets the value for Pages in the options object. Specifies a range of pages on which to perform barcode extraction, such as "1-5", or "1-3,5,7-10". Open ended ranges are supported, e.g., "3-". By default all pages are converted. The first page is page number 1.
value | Specifies a range of pages on which to perform barcode extraction, such as "1-5", or "1-3,5,7-10". Open ended ranges are supported, e.g., "3-". By default all pages are converted. The first page is page number 1. |
---|
PDFNetException |
---|