The Situation
I'm trying to print on a Brother QL-570 I set up on a Raspberry Pi using CUPS.
The printer is working well using lp -d Brother_QL-570 test.pdf. However, when I insert an endless label (a 30m long, 62mm wide label) I want it to print the exact length of the pdf file. For example, if the pdf provided has a format of 62x200, I want the printer to produce a 62mmx200mm long label.
If I use my Windows machine this works, but with lp, it doesn't.
lpoptions -p Brother_QL-570 -l yields the following: https://pastebin.com/yBJHw7a7. CUPS has these settings
The printed label is always 62mmx100mm.
I did use brpapertoollpr_ql570 -P Brother_QL-570 -n long_label -w 62 -h 200 in combination with lpr -P Brother_QL-570 -o media=long_label test.pdf to successfully to print 62mmx200mm labels, but creating a new media size for every new pdf I want to print would be quite tedious.
Log files
Job 26 is from windows (working)
Job 27 is from lpr (too short)
CUPS error_log
printjob-data captured following this guide
job 26
job 27