Package net.webpdf.wsclient.openapi
Class OperationPdf417Barcode
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationPdf417Barcode
-
public class OperationPdf417Barcode extends Object
A PDF417 barcode.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationPdf417Barcode.CompactionModeEnumIf PDF417 barcode compression has been enabled with the \"compact\" attribute, the encoding selected here for the compression of generated PDF417 barcodes will be usedstatic classOperationPdf417Barcode.ShapeEnumCan be used to force a specific shape for generated Data Matrix codes
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CHARSETstatic StringJSON_PROPERTY_COMPACTstatic StringJSON_PROPERTY_COMPACTION_MODEstatic StringJSON_PROPERTY_DATA_CODEWORDS_MAXstatic StringJSON_PROPERTY_DATA_CODEWORDS_MINstatic StringJSON_PROPERTY_ERROR_CORRECTIONstatic StringJSON_PROPERTY_MARGINstatic StringJSON_PROPERTY_PAGESstatic StringJSON_PROPERTY_POSITIONstatic StringJSON_PROPERTY_ROTATIONstatic StringJSON_PROPERTY_SHAPEstatic StringJSON_PROPERTY_SYMBOLS_PER_CODEWORD_MAXstatic StringJSON_PROPERTY_SYMBOLS_PER_CODEWORD_MINstatic StringJSON_PROPERTY_VALUE
-
Constructor Summary
Constructors Constructor Description OperationPdf417Barcode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationPdf417Barcodecharset(String charset)OperationPdf417Barcodecompact(Boolean compact)OperationPdf417BarcodecompactionMode(OperationPdf417Barcode.CompactionModeEnum compactionMode)OperationPdf417BarcodedataCodewordsMax(Integer dataCodewordsMax)OperationPdf417BarcodedataCodewordsMin(Integer dataCodewordsMin)booleanequals(Object o)OperationPdf417BarcodeerrorCorrection(Integer errorCorrection)@Nullable StringgetCharset()Used to specify the character set in which the barcode contents should be stored.@Nullable BooleangetCompact()If this value is set to \"true,\" the contents of all generated PDF417 barcodes will be compressed using the encoding selected with the \"compactionMode\" attribute.@Nullable OperationPdf417Barcode.CompactionModeEnumgetCompactionMode()If PDF417 barcode compression has been enabled with the \"compact\" attribute, the encoding selected here for the compression of generated PDF417 barcodes will be used@Nullable IntegergetDataCodewordsMax()Used to specify the maximum number of codewords allowed in a single PDF417 barcode row.@Nullable IntegergetDataCodewordsMin()Used to specify the minimum number of codewords allowed in a single PDF417 barcode row.@Nullable IntegergetErrorCorrection()Used to adjust the error correction level for generated PDF417 codes.@Nullable IntegergetMargin()Used to specify the width of the empty frame that should be generated around the barcode.@Nullable StringgetPages()The page range for generating barcodes.@Nullable OperationRectanglegetPosition()Get position@Nullable IntegergetRotation()Used to specify the barcode's rotation in 90-degree increments.@Nullable OperationPdf417Barcode.ShapeEnumgetShape()Can be used to force a specific shape for generated Data Matrix codes@Nullable IntegergetSymbolsPerCodewordMax()Used to specify the maximum number of code symbols that are allowed to be in a single codeword in the PDF417 barcode.@Nullable IntegergetSymbolsPerCodewordMin()Used to specify the minimum number of code symbols that are allowed to be in a single codeword in the PDF417 barcode.@NotNull StringgetValue()Contains the value that should be encoded in the barcode.inthashCode()OperationPdf417Barcodemargin(Integer margin)OperationPdf417Barcodepages(String pages)OperationPdf417Barcodeposition(OperationRectangle position)OperationPdf417Barcoderotation(Integer rotation)voidsetCharset(String charset)voidsetCompact(Boolean compact)voidsetCompactionMode(OperationPdf417Barcode.CompactionModeEnum compactionMode)voidsetDataCodewordsMax(Integer dataCodewordsMax)voidsetDataCodewordsMin(Integer dataCodewordsMin)voidsetErrorCorrection(Integer errorCorrection)voidsetMargin(Integer margin)voidsetPages(String pages)voidsetPosition(OperationRectangle position)voidsetRotation(Integer rotation)voidsetShape(OperationPdf417Barcode.ShapeEnum shape)voidsetSymbolsPerCodewordMax(Integer symbolsPerCodewordMax)voidsetSymbolsPerCodewordMin(Integer symbolsPerCodewordMin)voidsetValue(String value)OperationPdf417Barcodeshape(OperationPdf417Barcode.ShapeEnum shape)OperationPdf417BarcodesymbolsPerCodewordMax(Integer symbolsPerCodewordMax)OperationPdf417BarcodesymbolsPerCodewordMin(Integer symbolsPerCodewordMin)StringtoString()OperationPdf417Barcodevalue(String value)
-
-
-
Field Detail
-
JSON_PROPERTY_CHARSET
public static final String JSON_PROPERTY_CHARSET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPACT
public static final String JSON_PROPERTY_COMPACT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPACTION_MODE
public static final String JSON_PROPERTY_COMPACTION_MODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DATA_CODEWORDS_MAX
public static final String JSON_PROPERTY_DATA_CODEWORDS_MAX
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DATA_CODEWORDS_MIN
public static final String JSON_PROPERTY_DATA_CODEWORDS_MIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ERROR_CORRECTION
public static final String JSON_PROPERTY_ERROR_CORRECTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MARGIN
public static final String JSON_PROPERTY_MARGIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGES
public static final String JSON_PROPERTY_PAGES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_POSITION
public static final String JSON_PROPERTY_POSITION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROTATION
public static final String JSON_PROPERTY_ROTATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHAPE
public static final String JSON_PROPERTY_SHAPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SYMBOLS_PER_CODEWORD_MAX
public static final String JSON_PROPERTY_SYMBOLS_PER_CODEWORD_MAX
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SYMBOLS_PER_CODEWORD_MIN
public static final String JSON_PROPERTY_SYMBOLS_PER_CODEWORD_MIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUE
public static final String JSON_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
charset
public OperationPdf417Barcode charset(String charset)
-
getCharset
@Nullable public @Nullable String getCharset()
Used to specify the character set in which the barcode contents should be stored.- Returns:
- charset
-
setCharset
public void setCharset(String charset)
-
compact
public OperationPdf417Barcode compact(Boolean compact)
-
getCompact
@Nullable public @Nullable Boolean getCompact()
If this value is set to \"true,\" the contents of all generated PDF417 barcodes will be compressed using the encoding selected with the \"compactionMode\" attribute.- Returns:
- compact
-
setCompact
public void setCompact(Boolean compact)
-
compactionMode
public OperationPdf417Barcode compactionMode(OperationPdf417Barcode.CompactionModeEnum compactionMode)
-
getCompactionMode
@Nullable public @Nullable OperationPdf417Barcode.CompactionModeEnum getCompactionMode()
If PDF417 barcode compression has been enabled with the \"compact\" attribute, the encoding selected here for the compression of generated PDF417 barcodes will be used. * auto = Try to determine the best encoding method automatically. * byte = Select a byte encoding method in which every 5 codewords represent 6 bytes. * numeric = Select a numeric encoding method in which a group of 15 codewords represents up to 44 decimal numbers. * text = Select a text encoding method in which each codeword represents up to 2 letters.- Returns:
- compactionMode
-
setCompactionMode
public void setCompactionMode(OperationPdf417Barcode.CompactionModeEnum compactionMode)
-
dataCodewordsMax
public OperationPdf417Barcode dataCodewordsMax(Integer dataCodewordsMax)
-
getDataCodewordsMax
@Nullable public @Nullable Integer getDataCodewordsMax()
Used to specify the maximum number of codewords allowed in a single PDF417 barcode row. minimum: 1- Returns:
- dataCodewordsMax
-
setDataCodewordsMax
public void setDataCodewordsMax(Integer dataCodewordsMax)
-
dataCodewordsMin
public OperationPdf417Barcode dataCodewordsMin(Integer dataCodewordsMin)
-
getDataCodewordsMin
@Nullable public @Nullable Integer getDataCodewordsMin()
Used to specify the minimum number of codewords allowed in a single PDF417 barcode row. minimum: 1- Returns:
- dataCodewordsMin
-
setDataCodewordsMin
public void setDataCodewordsMin(Integer dataCodewordsMin)
-
errorCorrection
public OperationPdf417Barcode errorCorrection(Integer errorCorrection)
-
getErrorCorrection
@Nullable public @Nullable Integer getErrorCorrection()
Used to adjust the error correction level for generated PDF417 codes. The higher the level, the more error-resistant the barcode, ensuring that damaged codes will still be readable. A level of 1 to 8 can be specified. minimum: 1 maximum: 8- Returns:
- errorCorrection
-
setErrorCorrection
public void setErrorCorrection(Integer errorCorrection)
-
margin
public OperationPdf417Barcode margin(Integer margin)
-
getMargin
@Nullable public @Nullable Integer getMargin()
Used to specify the width of the empty frame that should be generated around the barcode. This shall use the same metrics as the position - if no position is present, the default (mm) shall be assumed. minimum: 0- Returns:
- margin
-
setMargin
public void setMargin(Integer margin)
-
pages
public OperationPdf417Barcode pages(String pages)
-
getPages
@Nullable public @Nullable String getPages()
The page range for generating barcodes. Individual pages or a range of pages can be defined here. If the text is empty, the entire file will be exported (e.g.: \"1-10\" or \"1,2,5-10\")- Returns:
- pages
-
setPages
public void setPages(String pages)
-
position
public OperationPdf417Barcode position(OperationRectangle position)
-
getPosition
@Nullable public @Nullable OperationRectangle getPosition()
Get position- Returns:
- position
-
setPosition
public void setPosition(OperationRectangle position)
-
rotation
public OperationPdf417Barcode rotation(Integer rotation)
-
getRotation
@Nullable public @Nullable Integer getRotation()
Used to specify the barcode's rotation in 90-degree increments. When there is a value that falls under a full 90-degree increment, the next higher increment will be automatically selected. minimum: 0- Returns:
- rotation
-
setRotation
public void setRotation(Integer rotation)
-
shape
public OperationPdf417Barcode shape(OperationPdf417Barcode.ShapeEnum shape)
-
getShape
@Nullable public @Nullable OperationPdf417Barcode.ShapeEnum getShape()
Can be used to force a specific shape for generated Data Matrix codes. * default = Select an appropriate shape. * rectangle = Force a rectangular shape. * square = Force a square shape.- Returns:
- shape
-
setShape
public void setShape(OperationPdf417Barcode.ShapeEnum shape)
-
symbolsPerCodewordMax
public OperationPdf417Barcode symbolsPerCodewordMax(Integer symbolsPerCodewordMax)
-
getSymbolsPerCodewordMax
@Nullable public @Nullable Integer getSymbolsPerCodewordMax()
Used to specify the maximum number of code symbols that are allowed to be in a single codeword in the PDF417 barcode. minimum: 1- Returns:
- symbolsPerCodewordMax
-
setSymbolsPerCodewordMax
public void setSymbolsPerCodewordMax(Integer symbolsPerCodewordMax)
-
symbolsPerCodewordMin
public OperationPdf417Barcode symbolsPerCodewordMin(Integer symbolsPerCodewordMin)
-
getSymbolsPerCodewordMin
@Nullable public @Nullable Integer getSymbolsPerCodewordMin()
Used to specify the minimum number of code symbols that are allowed to be in a single codeword in the PDF417 barcode. minimum: 1- Returns:
- symbolsPerCodewordMin
-
setSymbolsPerCodewordMin
public void setSymbolsPerCodewordMin(Integer symbolsPerCodewordMin)
-
value
public OperationPdf417Barcode value(String value)
-
getValue
@NotNull public @NotNull String getValue()
Contains the value that should be encoded in the barcode. Depending on the selected barcode format, there may be specific criteria for the data structure. For a description, please refer to the chapter \"Barcodes\"- Returns:
- value
-
setValue
public void setValue(String value)
-
-