[英]Adding Line Breaks in QR Code / 2D Barcode
In Windows 10, I am using qrencode for printing QR codes to image files.在 Windows 10 中,我使用 qrencode 将 QR 码打印到图像文件。 The printing is successful but I am stuck at adding line breaks.
打印成功,但我坚持添加换行符。 I have tried the below method with no success in line breaks.
我尝试了以下方法但换行符没有成功。
Windows Command Prompt: d:\ qrencode -o qrcode.png "INDO GERMAN ALKALOIDS \nUnique ID: ABC-123456789 \nAPI-Name: ABCDEFGH \nBrand: Indo-101 \nAddress: Inga House, Mahakali Road, Andheri-East, Mumbai-400093, \nTel-022-28202932/33, \nMobile: 9833942075, \nBatch No.: XYZ888999000, \nBatch Size: 1020, \nMfgd.Date: 29-12-2022, \nExpiry Date: 31-12-2023, \nContainer Code: RRR-101020, \nMfgr Lic.No.: ------------, \nStorage Instruction: Store in cool area 20deg"
Windows 命令提示符:
d:\ qrencode -o qrcode.png "INDO GERMAN ALKALOIDS \nUnique ID: ABC-123456789 \nAPI-Name: ABCDEFGH \nBrand: Indo-101 \nAddress: Inga House, Mahakali Road, Andheri-East, Mumbai-400093, \nTel-022-28202932/33, \nMobile: 9833942075, \nBatch No.: XYZ888999000, \nBatch Size: 1020, \nMfgd.Date: 29-12-2022, \nExpiry Date: 31-12-2023, \nContainer Code: RRR-101020, \nMfgr Lic.No.: ------------, \nStorage Instruction: Store in cool area 20deg"
After playing around for some time, I came across the below command in the Ubuntu Manuals: cat bigfile.txt | qrencode -S -v 40 -l L -o output.png
玩了一段时间后,我在 Ubuntu 手册中遇到了以下命令:
cat bigfile.txt | qrencode -S -v 40 -l L -o output.png
cat bigfile.txt | qrencode -S -v 40 -l L -o output.png
I placed the required content as below in a text file named qr-data.txt我将如下所需的内容放在名为 qr-data.txt 的文本文件中
INDO GERMAN ALKALOIDS印德生物碱
Unique ID: ABC-123456789唯一 ID:ABC-123456789
API-Name: ABCDEFGH API 名称:ABCDEFGH
Brand: Indo-101品牌: Indo-101
Then at the DOS prompt I typed: type qr-data.txt | qrencode -o qr-code.png
然后在 DOS 提示符下输入:
type qr-data.txt | qrencode -o qr-code.png
type qr-data.txt | qrencode -o qr-code.png
It now works perfect for me.它现在对我来说很完美。
Note that I used [type] instead of [cat] in MS DOS.请注意,我在 MS DOS 中使用 [type] 而不是 [cat]。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.