How to print non-consecutive pages from a file, 2 pages per sheet?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP

up vote
1
down vote

favorite

I readed a lot of information about lp and lpr linux commands. Today Im trying to print 4 non-consecutive pages from a file, 2 pages per sheet.

I tryed a lot of commands:

This one prints 4 sheets, 8 pages:
lp -n 1 -d C1100 -o page-ranges=1,4,5,16 -o number-up=2 /path/to/files/1.pdf
This one prints 5 sheets, 10 pages:
lp -n 1 -d C1100 -o page-set=1,4,5,16 -o number-up=2 /path/to/files/1.pdf
This one prints 4 sheets, 8 pages:
lp -P 1,4,5,16 -n 1 -d C1100 -o number-up=2 /path/to/files/1.pdf

Now Im lost. Could You help me?

share|improve this question

  • 2

    workaround: use pdftk to extract just the pages you want in the order you want… then print that.
    – derobert
    Dec 16 ’16 at 19:13

  • mmm And that will be fast enough to consider it? (thinking about 3 pdfs, 300mb each, 150 pags each, 50% must be cutted away…. Ok let me try and play with that command. If you want post any guide about how to cut with that command, I’ll thank you.
    – Barragán Louisenbairn
    Dec 19 ’16 at 17:40

  • Basically it looks like pdftk input.pdf cat 1 1 2 3 5 8 13 21 output output.pdf where the Fibonacci numbers are standing in for the page numbers (yes, you can grab a page twice—that gives you two copies of page 1).
    – derobert
    Dec 19 ’16 at 18:30

up vote
1
down vote

favorite

I readed a lot of information about lp and lpr linux commands. Today Im trying to print 4 non-consecutive pages from a file, 2 pages per sheet.

I tryed a lot of commands:

This one prints 4 sheets, 8 pages:
lp -n 1 -d C1100 -o page-ranges=1,4,5,16 -o number-up=2 /path/to/files/1.pdf
This one prints 5 sheets, 10 pages:
lp -n 1 -d C1100 -o page-set=1,4,5,16 -o number-up=2 /path/to/files/1.pdf
This one prints 4 sheets, 8 pages:
lp -P 1,4,5,16 -n 1 -d C1100 -o number-up=2 /path/to/files/1.pdf

Now Im lost. Could You help me?

share|improve this question

  • 2

    workaround: use pdftk to extract just the pages you want in the order you want… then print that.
    – derobert
    Dec 16 ’16 at 19:13

  • mmm And that will be fast enough to consider it? (thinking about 3 pdfs, 300mb each, 150 pags each, 50% must be cutted away…. Ok let me try and play with that command. If you want post any guide about how to cut with that command, I’ll thank you.
    – Barragán Louisenbairn
    Dec 19 ’16 at 17:40

  • Basically it looks like pdftk input.pdf cat 1 1 2 3 5 8 13 21 output output.pdf where the Fibonacci numbers are standing in for the page numbers (yes, you can grab a page twice—that gives you two copies of page 1).
    – derobert
    Dec 19 ’16 at 18:30

up vote
1
down vote

favorite

up vote
1
down vote

favorite

I readed a lot of information about lp and lpr linux commands. Today Im trying to print 4 non-consecutive pages from a file, 2 pages per sheet.

I tryed a lot of commands:

This one prints 4 sheets, 8 pages:
lp -n 1 -d C1100 -o page-ranges=1,4,5,16 -o number-up=2 /path/to/files/1.pdf
This one prints 5 sheets, 10 pages:
lp -n 1 -d C1100 -o page-set=1,4,5,16 -o number-up=2 /path/to/files/1.pdf
This one prints 4 sheets, 8 pages:
lp -P 1,4,5,16 -n 1 -d C1100 -o number-up=2 /path/to/files/1.pdf

Now Im lost. Could You help me?

share|improve this question

I readed a lot of information about lp and lpr linux commands. Today Im trying to print 4 non-consecutive pages from a file, 2 pages per sheet.

I tryed a lot of commands:

This one prints 4 sheets, 8 pages:
lp -n 1 -d C1100 -o page-ranges=1,4,5,16 -o number-up=2 /path/to/files/1.pdf
This one prints 5 sheets, 10 pages:
lp -n 1 -d C1100 -o page-set=1,4,5,16 -o number-up=2 /path/to/files/1.pdf
This one prints 4 sheets, 8 pages:
lp -P 1,4,5,16 -n 1 -d C1100 -o number-up=2 /path/to/files/1.pdf

Now Im lost. Could You help me?

linux printing cups lpr

share|improve this question

share|improve this question

share|improve this question

share|improve this question

asked Dec 16 ’16 at 18:20

Barragán Louisenbairn

136

136

  • 2

    workaround: use pdftk to extract just the pages you want in the order you want… then print that.
    – derobert
    Dec 16 ’16 at 19:13

  • mmm And that will be fast enough to consider it? (thinking about 3 pdfs, 300mb each, 150 pags each, 50% must be cutted away…. Ok let me try and play with that command. If you want post any guide about how to cut with that command, I’ll thank you.
    – Barragán Louisenbairn
    Dec 19 ’16 at 17:40

  • Basically it looks like pdftk input.pdf cat 1 1 2 3 5 8 13 21 output output.pdf where the Fibonacci numbers are standing in for the page numbers (yes, you can grab a page twice—that gives you two copies of page 1).
    – derobert
    Dec 19 ’16 at 18:30

  • 2

    workaround: use pdftk to extract just the pages you want in the order you want… then print that.
    – derobert
    Dec 16 ’16 at 19:13

  • mmm And that will be fast enough to consider it? (thinking about 3 pdfs, 300mb each, 150 pags each, 50% must be cutted away…. Ok let me try and play with that command. If you want post any guide about how to cut with that command, I’ll thank you.
    – Barragán Louisenbairn
    Dec 19 ’16 at 17:40

  • Basically it looks like pdftk input.pdf cat 1 1 2 3 5 8 13 21 output output.pdf where the Fibonacci numbers are standing in for the page numbers (yes, you can grab a page twice—that gives you two copies of page 1).
    – derobert
    Dec 19 ’16 at 18:30

2

2

workaround: use pdftk to extract just the pages you want in the order you want… then print that.
– derobert
Dec 16 ’16 at 19:13

workaround: use pdftk to extract just the pages you want in the order you want… then print that.
– derobert
Dec 16 ’16 at 19:13

mmm And that will be fast enough to consider it? (thinking about 3 pdfs, 300mb each, 150 pags each, 50% must be cutted away…. Ok let me try and play with that command. If you want post any guide about how to cut with that command, I’ll thank you.
– Barragán Louisenbairn
Dec 19 ’16 at 17:40

mmm And that will be fast enough to consider it? (thinking about 3 pdfs, 300mb each, 150 pags each, 50% must be cutted away…. Ok let me try and play with that command. If you want post any guide about how to cut with that command, I’ll thank you.
– Barragán Louisenbairn
Dec 19 ’16 at 17:40

Basically it looks like pdftk input.pdf cat 1 1 2 3 5 8 13 21 output output.pdf where the Fibonacci numbers are standing in for the page numbers (yes, you can grab a page twice—that gives you two copies of page 1).
– derobert
Dec 19 ’16 at 18:30

Basically it looks like pdftk input.pdf cat 1 1 2 3 5 8 13 21 output output.pdf where the Fibonacci numbers are standing in for the page numbers (yes, you can grab a page twice—that gives you two copies of page 1).
– derobert
Dec 19 ’16 at 18:30

1 Answer
1

active

oldest

votes

up vote
0
down vote

pdftk has already been mentioned by @derobert, but ghostscript can also be used. This guide details both methods.

share|improve this answer

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. Please review the Help Center for more information regarding this. Thank you!
    – kemotep
    Nov 28 at 21:47

Your Answer

StackExchange.ready(function() {
var channelOptions = {
tags: “”.split(” “),
id: “106”
};
initTagRenderer(“”.split(” “), “”.split(” “), channelOptions);

StackExchange.using(“externalEditor”, function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using(“snippets”, function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: ‘answer’,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: “”,
imageUploader: {
brandingHtml: “Powered by u003ca class=”icon-imgur-white” href=”https://imgur.com/”u003eu003c/au003e”,
contentPolicyHtml: “User contributions licensed under u003ca href=”https://creativecommons.org/licenses/by-sa/3.0/”u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href=”https://stackoverflow.com/legal/content-policy”u003e(content policy)u003c/au003e”,
allowUrls: true
},
onDemand: true,
discardSelector: “.discard-answer”
,immediatelyShowMarkdownHelp:true
});

}
});

draft saved
draft discarded

StackExchange.ready(
function () {
StackExchange.openid.initPostLogin(‘.new-post-login’, ‘https%3a%2f%2funix.stackexchange.com%2fquestions%2f330920%2fhow-to-print-non-consecutive-pages-from-a-file-2-pages-per-sheet%23new-answer’, ‘question_page’);
}
);

Post as a guest

Required, but never shown

1 Answer
1

active

oldest

votes

1 Answer
1

active

oldest

votes

active

oldest

votes

active

oldest

votes

up vote
0
down vote

pdftk has already been mentioned by @derobert, but ghostscript can also be used. This guide details both methods.

share|improve this answer

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. Please review the Help Center for more information regarding this. Thank you!
    – kemotep
    Nov 28 at 21:47

up vote
0
down vote

pdftk has already been mentioned by @derobert, but ghostscript can also be used. This guide details both methods.

share|improve this answer

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. Please review the Help Center for more information regarding this. Thank you!
    – kemotep
    Nov 28 at 21:47

up vote
0
down vote

up vote
0
down vote

pdftk has already been mentioned by @derobert, but ghostscript can also be used. This guide details both methods.

share|improve this answer

pdftk has already been mentioned by @derobert, but ghostscript can also be used. This guide details both methods.

share|improve this answer

share|improve this answer

share|improve this answer

answered Nov 28 at 20:48

airbornemihir

52

52

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. Please review the Help Center for more information regarding this. Thank you!
    – kemotep
    Nov 28 at 21:47

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. Please review the Help Center for more information regarding this. Thank you!
    – kemotep
    Nov 28 at 21:47

While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. Please review the Help Center for more information regarding this. Thank you!
– kemotep
Nov 28 at 21:47

While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. Please review the Help Center for more information regarding this. Thank you!
– kemotep
Nov 28 at 21:47

draft saved
draft discarded

Thanks for contributing an answer to Unix & Linux Stack Exchange!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

Some of your past answers have not been well-received, and you’re in danger of being blocked from answering.

Please pay close attention to the following guidance:

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

draft saved

draft discarded

StackExchange.ready(
function () {
StackExchange.openid.initPostLogin(‘.new-post-login’, ‘https%3a%2f%2funix.stackexchange.com%2fquestions%2f330920%2fhow-to-print-non-consecutive-pages-from-a-file-2-pages-per-sheet%23new-answer’, ‘question_page’);
}
);

Post as a guest

Required, but never shown

Required, but never shown

Required, but never shown

Required, but never shown

Required, but never shown

Required, but never shown

Required, but never shown

Required, but never shown

Required, but never shown

Related Post

Leave a Reply

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