fix missing pdf417 in multiformat writer

This commit is contained in:
Henry Schimke
2023-01-02 17:24:20 -06:00
parent 674dc30e35
commit 203befcd04
2 changed files with 3 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "rxing"
version = "0.2.0"
version = "0.2.1"
description="A rust port of the zxing barcode library."
license="Apache-2.0"
repository="https://github.com/hschimke/rxing"

View File

@@ -24,7 +24,7 @@ use crate::{
UPCEWriter,
},
qrcode::QRCodeWriter,
BarcodeFormat, Exceptions, Writer,
BarcodeFormat, Exceptions, Writer, pdf417::PDF417Writer,
};
/**
@@ -64,8 +64,7 @@ impl Writer for MultiFormatWriter {
BarcodeFormat::CODE_93 => Box::new(Code93Writer::default()),
BarcodeFormat::CODE_128 => Box::new(Code128Writer::default()),
BarcodeFormat::ITF => Box::new(ITFWriter::default()),
BarcodeFormat::PDF_417 => unimplemented!(""),
// Box::new(PDF417Writer::default()),
BarcodeFormat::PDF_417 => Box::new(PDF417Writer::default()),
BarcodeFormat::CODABAR => Box::new(Code128Writer::default()),
BarcodeFormat::DATA_MATRIX => Box::new(DataMatrixWriter {}),
BarcodeFormat::AZTEC => Box::new(AztecWriter {}),