public final class Pdf417Properties
extends java.lang.Object
Contains specific configuration properties for Pdf417 barcodes.
This sample shows how to create and save a BarCode image.BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.PDF_417); generator.getPdf417().setErrorLevel(Pdf417ErrorLevel.LEVEL_1); generator.save("test.png");
Constructor and Description |
---|
Pdf417Properties() |
Modifier and Type | Method and Description |
---|---|
Pdf417CompactionMode |
getCompactionMode()
Pdf417 symbology type of BarCode's compaction mode.
|
Pdf417ErrorLevel |
getErrorLevel()
Gets Pdf417 symbology type of BarCode's error correction level
ranging from level0 to level8, level0 means no error correction info,
level8 means best error correction which means a larger picture.
|
int |
getMacroFileID()
Gets macro Pdf417 barcode's file ID.
|
int |
getMacroSegmentID()
Gets macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.
|
int |
getMacroSegmentsCount()
Gets macro Pdf417 barcode segments count.
|
boolean |
getTruncate()
Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
|
void |
setCompactionMode(int value)
Deprecated.
|
void |
setCompactionMode(Pdf417CompactionMode value)
Pdf417 symbology type of BarCode's compaction mode.
|
void |
setErrorLevel(int value)
Sets Pdf417 symbology type of BarCode's error correction level
ranging from level0 to level8, level0 means no error correction info,
level8 means best error correction which means a larger picture.
|
void |
setErrorLevel(Pdf417ErrorLevel value)
Sets Pdf417 symbology type of BarCode's error correction level
ranging from level0 to level8, level0 means no error correction info,
level8 means best error correction which means a larger picture.
|
void |
setMacroFileID(int value)
Sets macro Pdf417 barcode's file ID.
|
void |
setMacroSegmentID(int value)
Sets macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.
|
void |
setMacroSegmentsCount(int value)
Sets macro Pdf417 barcode segments count.
|
void |
setTruncate(boolean value)
Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
|
java.lang.String |
toString()
Returns a human-readable string representation of this Pdf417Properties
|
public Pdf417CompactionMode getCompactionMode()
Pdf417 symbology type of BarCode's compaction mode.
Default compaction mode is Auto
.
public void setCompactionMode(Pdf417CompactionMode value)
Pdf417 symbology type of BarCode's compaction mode.
Default compaction mode is Auto
.
@Deprecated public void setCompactionMode(int value)
Pdf417 symbology type of BarCode's compaction mode.
Default compaction mode is Auto
.
public Pdf417ErrorLevel getErrorLevel()
Gets Pdf417 symbology type of BarCode's error correction level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture.
public void setErrorLevel(Pdf417ErrorLevel value)
Sets Pdf417 symbology type of BarCode's error correction level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture.
public void setErrorLevel(int value)
Sets Pdf417 symbology type of BarCode's error correction level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture.
public boolean getTruncate()
Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
public void setTruncate(boolean value)
Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
public int getMacroFileID()
Gets macro Pdf417 barcode's file ID.
public void setMacroFileID(int value)
Sets macro Pdf417 barcode's file ID.
public int getMacroSegmentID()
Gets macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.
public void setMacroSegmentID(int value)
Sets macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.
public int getMacroSegmentsCount()
Gets macro Pdf417 barcode segments count.
public void setMacroSegmentsCount(int value)
Sets macro Pdf417 barcode segments count.
public java.lang.String toString()
toString
in class java.lang.Object