How can I print double-sided with ipptool?
I am using the comming line ipptool
for printing, which is a low-level tool in the CUPS daemon for internet printing.
IPP is a HTTP-based protocol for internet printers, most current LAN-based office printers are supporting it.
I used the following command for print:
ipptool -tv -f /path/to/my.pdf ipp://myprinter.on.mylocal.net/ipp/ printfile.ipp
Where my printfile.ipp
defines the characteristics/capabilities of my printer, as follows:
{
OPERATION Print-Job
GROUP operation-attributes-tag
ATTR charset attributes-charset utf-8
ATTR language attributes-natural-language en
ATTR uri printer-uri $uri
FILE $filename
}
What I know for sure:
- Single-sided PDF printing is working seamlessly.
- The printer is a relative ordinary HP office printer,
- Which is capable to print double-sided without any problem (co-workers with Windows can do that).
I found this printfile with google and seems working, however any deeper digging about its exact format and specification resulted only cloudy specs and docs. Even the name of the file format of this IPP file is unclear for me.
How could I make it to print double-sided?
printing cups hp ipp
add a comment |
I am using the comming line ipptool
for printing, which is a low-level tool in the CUPS daemon for internet printing.
IPP is a HTTP-based protocol for internet printers, most current LAN-based office printers are supporting it.
I used the following command for print:
ipptool -tv -f /path/to/my.pdf ipp://myprinter.on.mylocal.net/ipp/ printfile.ipp
Where my printfile.ipp
defines the characteristics/capabilities of my printer, as follows:
{
OPERATION Print-Job
GROUP operation-attributes-tag
ATTR charset attributes-charset utf-8
ATTR language attributes-natural-language en
ATTR uri printer-uri $uri
FILE $filename
}
What I know for sure:
- Single-sided PDF printing is working seamlessly.
- The printer is a relative ordinary HP office printer,
- Which is capable to print double-sided without any problem (co-workers with Windows can do that).
I found this printfile with google and seems working, however any deeper digging about its exact format and specification resulted only cloudy specs and docs. Even the name of the file format of this IPP file is unclear for me.
How could I make it to print double-sided?
printing cups hp ipp
add a comment |
I am using the comming line ipptool
for printing, which is a low-level tool in the CUPS daemon for internet printing.
IPP is a HTTP-based protocol for internet printers, most current LAN-based office printers are supporting it.
I used the following command for print:
ipptool -tv -f /path/to/my.pdf ipp://myprinter.on.mylocal.net/ipp/ printfile.ipp
Where my printfile.ipp
defines the characteristics/capabilities of my printer, as follows:
{
OPERATION Print-Job
GROUP operation-attributes-tag
ATTR charset attributes-charset utf-8
ATTR language attributes-natural-language en
ATTR uri printer-uri $uri
FILE $filename
}
What I know for sure:
- Single-sided PDF printing is working seamlessly.
- The printer is a relative ordinary HP office printer,
- Which is capable to print double-sided without any problem (co-workers with Windows can do that).
I found this printfile with google and seems working, however any deeper digging about its exact format and specification resulted only cloudy specs and docs. Even the name of the file format of this IPP file is unclear for me.
How could I make it to print double-sided?
printing cups hp ipp
I am using the comming line ipptool
for printing, which is a low-level tool in the CUPS daemon for internet printing.
IPP is a HTTP-based protocol for internet printers, most current LAN-based office printers are supporting it.
I used the following command for print:
ipptool -tv -f /path/to/my.pdf ipp://myprinter.on.mylocal.net/ipp/ printfile.ipp
Where my printfile.ipp
defines the characteristics/capabilities of my printer, as follows:
{
OPERATION Print-Job
GROUP operation-attributes-tag
ATTR charset attributes-charset utf-8
ATTR language attributes-natural-language en
ATTR uri printer-uri $uri
FILE $filename
}
What I know for sure:
- Single-sided PDF printing is working seamlessly.
- The printer is a relative ordinary HP office printer,
- Which is capable to print double-sided without any problem (co-workers with Windows can do that).
I found this printfile with google and seems working, however any deeper digging about its exact format and specification resulted only cloudy specs and docs. Even the name of the file format of this IPP file is unclear for me.
How could I make it to print double-sided?
printing cups hp ipp
printing cups hp ipp
edited Dec 17 at 23:50
Kurt Pfeifle
47038
47038
asked Jul 24 at 12:44
peterh
4,28592957
4,28592957
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Using ipptool
, you can configure a job to use duplex printing by adding
ATTR keyword sides two-sided-long-edge
or
ATTR keyword sides two-sided-short-edge
to the job description, depending on the layout you want.
See RFC 2911 for details.
add a comment |
While @StephenKitt's answer of course is correct, I want to add a few details:
The line he suggested HAS to appear after the two lines with
ATTR charset ...
andATTR language ...
.The filename can be anything you want. You could name it, for example,
ipp-print-duplex.txt
.The file format specification can be found by reading
man ipptoolfile
on any Linux system. (It ships as part of any package that also shipsipptool
itself.)
Invoke it like this:
ipptool -t -v -f my.pdf <device-uri> ipp-print-duplex.txt
where you use as the
<device-uri>
value exactly the same string which you get returned when you callippfind
(which should also have been shipped alongsideipptool
itself).
add a comment |
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',
autoActivateHeartbeat: false,
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f458143%2fhow-can-i-print-double-sided-with-ipptool%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Using ipptool
, you can configure a job to use duplex printing by adding
ATTR keyword sides two-sided-long-edge
or
ATTR keyword sides two-sided-short-edge
to the job description, depending on the layout you want.
See RFC 2911 for details.
add a comment |
Using ipptool
, you can configure a job to use duplex printing by adding
ATTR keyword sides two-sided-long-edge
or
ATTR keyword sides two-sided-short-edge
to the job description, depending on the layout you want.
See RFC 2911 for details.
add a comment |
Using ipptool
, you can configure a job to use duplex printing by adding
ATTR keyword sides two-sided-long-edge
or
ATTR keyword sides two-sided-short-edge
to the job description, depending on the layout you want.
See RFC 2911 for details.
Using ipptool
, you can configure a job to use duplex printing by adding
ATTR keyword sides two-sided-long-edge
or
ATTR keyword sides two-sided-short-edge
to the job description, depending on the layout you want.
See RFC 2911 for details.
answered Jul 24 at 13:07
Stephen Kitt
164k24365444
164k24365444
add a comment |
add a comment |
While @StephenKitt's answer of course is correct, I want to add a few details:
The line he suggested HAS to appear after the two lines with
ATTR charset ...
andATTR language ...
.The filename can be anything you want. You could name it, for example,
ipp-print-duplex.txt
.The file format specification can be found by reading
man ipptoolfile
on any Linux system. (It ships as part of any package that also shipsipptool
itself.)
Invoke it like this:
ipptool -t -v -f my.pdf <device-uri> ipp-print-duplex.txt
where you use as the
<device-uri>
value exactly the same string which you get returned when you callippfind
(which should also have been shipped alongsideipptool
itself).
add a comment |
While @StephenKitt's answer of course is correct, I want to add a few details:
The line he suggested HAS to appear after the two lines with
ATTR charset ...
andATTR language ...
.The filename can be anything you want. You could name it, for example,
ipp-print-duplex.txt
.The file format specification can be found by reading
man ipptoolfile
on any Linux system. (It ships as part of any package that also shipsipptool
itself.)
Invoke it like this:
ipptool -t -v -f my.pdf <device-uri> ipp-print-duplex.txt
where you use as the
<device-uri>
value exactly the same string which you get returned when you callippfind
(which should also have been shipped alongsideipptool
itself).
add a comment |
While @StephenKitt's answer of course is correct, I want to add a few details:
The line he suggested HAS to appear after the two lines with
ATTR charset ...
andATTR language ...
.The filename can be anything you want. You could name it, for example,
ipp-print-duplex.txt
.The file format specification can be found by reading
man ipptoolfile
on any Linux system. (It ships as part of any package that also shipsipptool
itself.)
Invoke it like this:
ipptool -t -v -f my.pdf <device-uri> ipp-print-duplex.txt
where you use as the
<device-uri>
value exactly the same string which you get returned when you callippfind
(which should also have been shipped alongsideipptool
itself).
While @StephenKitt's answer of course is correct, I want to add a few details:
The line he suggested HAS to appear after the two lines with
ATTR charset ...
andATTR language ...
.The filename can be anything you want. You could name it, for example,
ipp-print-duplex.txt
.The file format specification can be found by reading
man ipptoolfile
on any Linux system. (It ships as part of any package that also shipsipptool
itself.)
Invoke it like this:
ipptool -t -v -f my.pdf <device-uri> ipp-print-duplex.txt
where you use as the
<device-uri>
value exactly the same string which you get returned when you callippfind
(which should also have been shipped alongsideipptool
itself).
answered Dec 17 at 22:12
Kurt Pfeifle
47038
47038
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f458143%2fhow-can-i-print-double-sided-with-ipptool%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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