Is it possible to print with a header or footer?

Asked 2 years ago, Updated 2 years ago, 47 views

I printed in terminal (bash) of mac. I printed the image file (png) with lpr command. For example, if the file name is hana.png, is it possible to add the file name hana.png to the print image header and the printout date and time, just like when printing with Excel?

macos lpr

2022-09-30 18:34

1 Answers

The linux lpr command has the -T option to specify the title.

lpr-T "hana.png February 8, 2018 12:34"

Specify -T followed by the string you want to print on the header.


2022-09-30 18:34

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.