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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidgenerateBarcodeLogic(String msg, int errorCorrectionLevel) voidgenerateBarcodeLogic(String msg, int errorCorrectionLevel, boolean autoECI) voidsetCompact(boolean compact) voidsetCompaction(Compaction compaction) voidsetDimensions(int maxCols, int minCols, int maxRows, int minRows) Sets max/min row/col valuesvoidsetEncoding(Charset encoding) 
- 
Constructor Details- 
PDF417public PDF417()
- 
PDF417public PDF417(boolean compact) 
 
- 
- 
Method Details- 
getBarcodeMatrix
- 
generateBarcodeLogic- Parameters:
- msg- message to encode
- errorCorrectionLevel- PDF417 error correction level to use
- Throws:
- WriterException- if the contents cannot be encoded in this format
 
- 
generateBarcodeLogicpublic void generateBarcodeLogic(String msg, int errorCorrectionLevel, boolean autoECI) throws WriterException - Parameters:
- msg- message to encode
- errorCorrectionLevel- PDF417 error correction level to use
- autoECI- automatically insert ECIs if needed
- Throws:
- WriterException- if the contents cannot be encoded in this format
 
- 
setDimensionspublic void setDimensions(int maxCols, int minCols, int maxRows, int minRows) Sets max/min row/col values- Parameters:
- maxCols- maximum allowed columns
- minCols- minimum allowed columns
- maxRows- maximum allowed rows
- minRows- minimum allowed rows
 
- 
setCompaction- Parameters:
- compaction- compaction mode to use
 
- 
setCompactpublic void setCompact(boolean compact) - Parameters:
- compact- if true, enables compaction
 
- 
setEncoding- Parameters:
- encoding- sets character encoding to use
 
 
-