make format=txt display the textual QR code contents
This allows for easy comparison with QR codes extracted from PDFs: pdfimages -png invoice.pdf invoice && \ zbarimg --raw invoice*.png > code.txt
This commit is contained in:
@@ -263,6 +263,10 @@ type Bill struct {
|
||||
qrcontents string
|
||||
}
|
||||
|
||||
func (b *Bill) EncodeToString() string {
|
||||
return b.qrcontents
|
||||
}
|
||||
|
||||
func (b *Bill) EncodeToSVG() ([]byte, error) {
|
||||
var err error
|
||||
code, err := encoder.Encoder_encode(b.qrcontents, decoder.ErrorCorrectionLevel_M, qrEncodeHints())
|
||||
|
||||
Reference in New Issue
Block a user