unix

How do I print specific pages of a file on my Linux server?

If you only want to print one page or specific pages of a file, you can use the following examples:

1. To print only 1 page:
lp -o page-ranges=1 filename

2. To print a range of pages 1-4:
lp -o page-ranges=1-4 filename

3. To print 2 different ranges:
lp -o page-ranges=1-4,7,9-12 filename

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top