How can I print double-sided with ipptool?












2














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:




  1. Single-sided PDF printing is working seamlessly.

  2. The printer is a relative ordinary HP office printer,

  3. 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?










share|improve this question





























    2














    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:




    1. Single-sided PDF printing is working seamlessly.

    2. The printer is a relative ordinary HP office printer,

    3. 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?










    share|improve this question



























      2












      2








      2


      2





      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:




      1. Single-sided PDF printing is working seamlessly.

      2. The printer is a relative ordinary HP office printer,

      3. 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?










      share|improve this question















      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:




      1. Single-sided PDF printing is working seamlessly.

      2. The printer is a relative ordinary HP office printer,

      3. 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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 17 at 23:50









      Kurt Pfeifle

      47038




      47038










      asked Jul 24 at 12:44









      peterh

      4,28592957




      4,28592957






















          2 Answers
          2






          active

          oldest

          votes


















          3














          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.






          share|improve this answer





























            0














            While @StephenKitt's answer of course is correct, I want to add a few details:




            1. The line he suggested HAS to appear after the two lines with ATTR charset ... and ATTR language ....


            2. The filename can be anything you want. You could name it, for example, ipp-print-duplex.txt.


            3. The file format specification can be found by reading man ipptoolfile on any Linux system. (It ships as part of any package that also ships ipptool itself.)



            4. 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 call ippfind (which should also have been shipped alongside ipptool itself).








            share|improve this answer





















              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
              });


              }
              });














              draft saved

              draft discarded


















              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









              3














              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.






              share|improve this answer


























                3














                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.






                share|improve this answer
























                  3












                  3








                  3






                  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.






                  share|improve this answer












                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jul 24 at 13:07









                  Stephen Kitt

                  164k24365444




                  164k24365444

























                      0














                      While @StephenKitt's answer of course is correct, I want to add a few details:




                      1. The line he suggested HAS to appear after the two lines with ATTR charset ... and ATTR language ....


                      2. The filename can be anything you want. You could name it, for example, ipp-print-duplex.txt.


                      3. The file format specification can be found by reading man ipptoolfile on any Linux system. (It ships as part of any package that also ships ipptool itself.)



                      4. 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 call ippfind (which should also have been shipped alongside ipptool itself).








                      share|improve this answer


























                        0














                        While @StephenKitt's answer of course is correct, I want to add a few details:




                        1. The line he suggested HAS to appear after the two lines with ATTR charset ... and ATTR language ....


                        2. The filename can be anything you want. You could name it, for example, ipp-print-duplex.txt.


                        3. The file format specification can be found by reading man ipptoolfile on any Linux system. (It ships as part of any package that also ships ipptool itself.)



                        4. 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 call ippfind (which should also have been shipped alongside ipptool itself).








                        share|improve this answer
























                          0












                          0








                          0






                          While @StephenKitt's answer of course is correct, I want to add a few details:




                          1. The line he suggested HAS to appear after the two lines with ATTR charset ... and ATTR language ....


                          2. The filename can be anything you want. You could name it, for example, ipp-print-duplex.txt.


                          3. The file format specification can be found by reading man ipptoolfile on any Linux system. (It ships as part of any package that also ships ipptool itself.)



                          4. 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 call ippfind (which should also have been shipped alongside ipptool itself).








                          share|improve this answer












                          While @StephenKitt's answer of course is correct, I want to add a few details:




                          1. The line he suggested HAS to appear after the two lines with ATTR charset ... and ATTR language ....


                          2. The filename can be anything you want. You could name it, for example, ipp-print-duplex.txt.


                          3. The file format specification can be found by reading man ipptoolfile on any Linux system. (It ships as part of any package that also ships ipptool itself.)



                          4. 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 call ippfind (which should also have been shipped alongside ipptool itself).









                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 17 at 22:12









                          Kurt Pfeifle

                          47038




                          47038






























                              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%2f458143%2fhow-can-i-print-double-sided-with-ipptool%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







                              Popular posts from this blog

                              Morgemoulin

                              Scott Moir

                              Souastre