Package com.google.zxing.pdf417.encoder
Class PDF417
java.lang.Object
com.google.zxing.pdf417.encoder.PDF417
Top-level class for the logic part of the PDF417 implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generateBarcodeLogic
(String msg, int errorCorrectionLevel) void
generateBarcodeLogic
(String msg, int errorCorrectionLevel, boolean autoECI) void
setCompact
(boolean compact) void
setCompaction
(Compaction compaction) void
setDimensions
(int maxCols, int minCols, int maxRows, int minRows) Sets max/min row/col valuesvoid
setEncoding
(Charset encoding)
-
Constructor Details
-
PDF417
public PDF417() -
PDF417
public PDF417(boolean compact)
-
-
Method Details
-
getBarcodeMatrix
-
generateBarcodeLogic
- Parameters:
msg
- message to encodeerrorCorrectionLevel
- PDF417 error correction level to use- Throws:
WriterException
- if the contents cannot be encoded in this format
-
generateBarcodeLogic
public void generateBarcodeLogic(String msg, int errorCorrectionLevel, boolean autoECI) throws WriterException - Parameters:
msg
- message to encodeerrorCorrectionLevel
- PDF417 error correction level to useautoECI
- automatically insert ECIs if needed- Throws:
WriterException
- if the contents cannot be encoded in this format
-
setDimensions
public void setDimensions(int maxCols, int minCols, int maxRows, int minRows) Sets max/min row/col values- Parameters:
maxCols
- maximum allowed columnsminCols
- minimum allowed columnsmaxRows
- maximum allowed rowsminRows
- minimum allowed rows
-
setCompaction
- Parameters:
compaction
- compaction mode to use
-
setCompact
public void setCompact(boolean compact) - Parameters:
compact
- if true, enables compaction
-
setEncoding
- Parameters:
encoding
- sets character encoding to use
-