At present, the machines on the market basically only have the printing method of text and pictures to call, but simply printing text and pictures cannot realize the side-by-side printing of text and pictures, and can be realized in the code.
The idea is as follows:
Generate a picture from the text, and then combine it with the QR code picture into one, and then call the method of printing the picture to print the synthesized picture, so that the purpose can be achieved.
It should be noted that if the two left and right pictures are combined, the two The height of the pictures needs to be the same.
If the upper and lower pictures are merged, the heights need to be the same.
If they are inconsistent, black blocks will appear on the side with the least amount.