Deprecated Options for CUPS used in Configuration File
Describe the Bug Per CUPS Issue #4010, options / parameters "page-bottom", "page-left", "page-right", "page-top" have been deprecated and removed and therefore no longer have any bearing on print job manipulation.
To Reproduce Enable / toggle commenting for Line 253 in configuration file, enter printer name, write file, launch NomadNet, send paper message to recipient.
Expected Behavior Printer will use options / parameters outlined to format printing, however print defaults to "-o fit-to-page" option, filling page with outlandishly large LXM QR code.
Logs & Screenshots Please include any relevant log output. If applicable, also add screenshots to help explain your problem.
System Information
- Debian 12
- Python 3.11.2
- NomadNet 0.7.0
Additional context
Personally, I've opted to use print_command = lp -d [PRINTER_NAME] -o job-priority=100 -o media=Custom.75x75mm -o orientation-requested=3 for a more reasonably-sized QR code that, in my testing, works on most media / paper stock (US Letter, A4, US Envelope #10)
These are better defaults. My suggestion is to add a comment above the line with instructions to specify the media type explicitly in place of "Custom.75x75mm" as the media type is driver specific in CUPS
print_command = lp -d [PRINTER_NAME] -o job-priority=100 -o media=[MEDIA SIZE] -o orientation-requested=3
For example the USB thermal printer I have uses the POS-58 PPD driver which provides the media type "custom_47.98x209.9mm_47.98x209.9mm", the size of the rolls it's designed to work with. In the case of someone having a similar setup they would just add that or similar.
good call.
the last section in the config file mentions that this print command would be ideal for US Letter size paper specifically, but maybe adding another section that leaves every component that has a printer-specific variable editable is the move.
perhaps i'll expand the PR to fold this new section in along with your example.