Printer settings into PostScript or PCL file










-1















I need:
Print a large number of PDFs with duplex on specific output printer feeder



I have:
printing using ghostscript with 'mswinpr2' device



using (GhostscriptProcessor processor = new GhostscriptProcessor(new GhostscriptVersionInfo("gsdll32.dll")))

List<string> switches = new List<string>();
switches.Add("-dPrinted");
switches.Add("-dBATCH");
switches.Add("-dNOPAUSE");
switches.Add("-dNumCopies=1");
switches.Add("-dPDFFitPage");
switches.Add("-dFIXEDMEDIA");
switches.Add("-dNoCancel");
switches.Add("-sFONTPATH = C:\Windows\Fonts");
switches.Add("-sDEVICE=mswinpr2");
switches.Add($"-sOutputFile=%printer%settings.PrinterName");
switches.Add("D:\11.pdf");
processor.StartProcessing(switches.ToArray(), null);



Problem:
one job in the print queue consisting of 2 pages takes more than 50mb, while I have more than 1500 PDFs with 1 000 000 pages



What i think to do:
Convert PDF to PCL or PS, edit these files and somehow pass the settings (duplex and specific feeder). Then send edited PCL or PS file as RAW data to printer



Question:
How can i pass the settings to PCL or PS?










share|improve this question




























    -1















    I need:
    Print a large number of PDFs with duplex on specific output printer feeder



    I have:
    printing using ghostscript with 'mswinpr2' device



    using (GhostscriptProcessor processor = new GhostscriptProcessor(new GhostscriptVersionInfo("gsdll32.dll")))

    List<string> switches = new List<string>();
    switches.Add("-dPrinted");
    switches.Add("-dBATCH");
    switches.Add("-dNOPAUSE");
    switches.Add("-dNumCopies=1");
    switches.Add("-dPDFFitPage");
    switches.Add("-dFIXEDMEDIA");
    switches.Add("-dNoCancel");
    switches.Add("-sFONTPATH = C:\Windows\Fonts");
    switches.Add("-sDEVICE=mswinpr2");
    switches.Add($"-sOutputFile=%printer%settings.PrinterName");
    switches.Add("D:\11.pdf");
    processor.StartProcessing(switches.ToArray(), null);



    Problem:
    one job in the print queue consisting of 2 pages takes more than 50mb, while I have more than 1500 PDFs with 1 000 000 pages



    What i think to do:
    Convert PDF to PCL or PS, edit these files and somehow pass the settings (duplex and specific feeder). Then send edited PCL or PS file as RAW data to printer



    Question:
    How can i pass the settings to PCL or PS?










    share|improve this question


























      -1












      -1








      -1


      0






      I need:
      Print a large number of PDFs with duplex on specific output printer feeder



      I have:
      printing using ghostscript with 'mswinpr2' device



      using (GhostscriptProcessor processor = new GhostscriptProcessor(new GhostscriptVersionInfo("gsdll32.dll")))

      List<string> switches = new List<string>();
      switches.Add("-dPrinted");
      switches.Add("-dBATCH");
      switches.Add("-dNOPAUSE");
      switches.Add("-dNumCopies=1");
      switches.Add("-dPDFFitPage");
      switches.Add("-dFIXEDMEDIA");
      switches.Add("-dNoCancel");
      switches.Add("-sFONTPATH = C:\Windows\Fonts");
      switches.Add("-sDEVICE=mswinpr2");
      switches.Add($"-sOutputFile=%printer%settings.PrinterName");
      switches.Add("D:\11.pdf");
      processor.StartProcessing(switches.ToArray(), null);



      Problem:
      one job in the print queue consisting of 2 pages takes more than 50mb, while I have more than 1500 PDFs with 1 000 000 pages



      What i think to do:
      Convert PDF to PCL or PS, edit these files and somehow pass the settings (duplex and specific feeder). Then send edited PCL or PS file as RAW data to printer



      Question:
      How can i pass the settings to PCL or PS?










      share|improve this question
















      I need:
      Print a large number of PDFs with duplex on specific output printer feeder



      I have:
      printing using ghostscript with 'mswinpr2' device



      using (GhostscriptProcessor processor = new GhostscriptProcessor(new GhostscriptVersionInfo("gsdll32.dll")))

      List<string> switches = new List<string>();
      switches.Add("-dPrinted");
      switches.Add("-dBATCH");
      switches.Add("-dNOPAUSE");
      switches.Add("-dNumCopies=1");
      switches.Add("-dPDFFitPage");
      switches.Add("-dFIXEDMEDIA");
      switches.Add("-dNoCancel");
      switches.Add("-sFONTPATH = C:\Windows\Fonts");
      switches.Add("-sDEVICE=mswinpr2");
      switches.Add($"-sOutputFile=%printer%settings.PrinterName");
      switches.Add("D:\11.pdf");
      processor.StartProcessing(switches.ToArray(), null);



      Problem:
      one job in the print queue consisting of 2 pages takes more than 50mb, while I have more than 1500 PDFs with 1 000 000 pages



      What i think to do:
      Convert PDF to PCL or PS, edit these files and somehow pass the settings (duplex and specific feeder). Then send edited PCL or PS file as RAW data to printer



      Question:
      How can i pass the settings to PCL or PS?







      c# pdf printing ghostscript postscript






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 14 '18 at 10:12







      Artem.Pankov

















      asked Nov 14 '18 at 8:46









      Artem.PankovArtem.Pankov

      52




      52






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Since PDF files can't contain device-specific information, you clearly don't need to pick such information from the input, which makes life simpler.



          Ghostscript's ps2write device is capable of inserting document wide or page specific PostScript into its output. So you can 'pass the settings' using that.



          For PCL you (probably) need to write some device-specific PJL and insert that into the PCL output. However, PCL is nowhere near as uniform as PostScritp, it'll be up to you to find out what need too be prefixed to the file.



          [EDIT]



          You don't use -sPSDocOptions, PSDocOptions is a distiller param, so you need:



          gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -c "<</PSDocOptions (<</Duplex true /NumCopies 10>> setpagedevice)>> setdistillerparams" -f D:.pdf


          Notice that you don't need -f (as you have in your command line) unless you have first set -c. The -f switch is used as a terminator for the -c.






          share|improve this answer

























          • Thanks for the answer. Where i can find documentation on how to insert PostScript into its output? On ghostscript.com i just found /PSDocOptions and /PSPageOptions but not how to use them.

            – Artem.Pankov
            Nov 14 '18 at 11:02











          • They are distiller parameters (the documentation says so), so you put them in a dictionary and call setdistillerparams. You can probably use -sPSDocOptions and -sPSJobOptions on the command line too, but you'll need to use "" in order to cater for the spaces in the PostScript.

            – KenS
            Nov 14 '18 at 14:09











          • I am trying to send a PS file as RAW data with these parameters: switch.Add (@ "- sPSDocOptions =" "<< / Duplex true / Tumble true >> setdistillerparams" ""); but it is still one-sided. Am I using the script correctly?

            – Artem.Pankov
            Nov 15 '18 at 6:59











          • Switch.Add isn't anything to do with Ghostscript.I can't tell you why your printer doesn't enter duplex mode with that command, perhaps it uses non-standard code to do so.

            – KenS
            Nov 15 '18 at 8:21











          • Ken, thanks for responses. Now i testing converting PDF to PS via gswin64. I tried differently: 1) gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -sPSDocOptions="<</Duplex true /NumCopies 10>> setdistillerparams" -f D:.pdf 2)gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -c "<</Duplex true /NumCopies 10>> setpagedevice" -f D:.pdf but when i open it with notepad i can't find string "/Duplex true" or "/NumCopies 10" when i add them manually: %%BeginPageSetup << /NumCopies 10 >> setpagedevice it works. help!

            – Artem.Pankov
            Nov 16 '18 at 6:51











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2fstackoverflow.com%2fquestions%2f53296112%2fprinter-settings-into-postscript-or-pcl-file%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









          0














          Since PDF files can't contain device-specific information, you clearly don't need to pick such information from the input, which makes life simpler.



          Ghostscript's ps2write device is capable of inserting document wide or page specific PostScript into its output. So you can 'pass the settings' using that.



          For PCL you (probably) need to write some device-specific PJL and insert that into the PCL output. However, PCL is nowhere near as uniform as PostScritp, it'll be up to you to find out what need too be prefixed to the file.



          [EDIT]



          You don't use -sPSDocOptions, PSDocOptions is a distiller param, so you need:



          gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -c "<</PSDocOptions (<</Duplex true /NumCopies 10>> setpagedevice)>> setdistillerparams" -f D:.pdf


          Notice that you don't need -f (as you have in your command line) unless you have first set -c. The -f switch is used as a terminator for the -c.






          share|improve this answer

























          • Thanks for the answer. Where i can find documentation on how to insert PostScript into its output? On ghostscript.com i just found /PSDocOptions and /PSPageOptions but not how to use them.

            – Artem.Pankov
            Nov 14 '18 at 11:02











          • They are distiller parameters (the documentation says so), so you put them in a dictionary and call setdistillerparams. You can probably use -sPSDocOptions and -sPSJobOptions on the command line too, but you'll need to use "" in order to cater for the spaces in the PostScript.

            – KenS
            Nov 14 '18 at 14:09











          • I am trying to send a PS file as RAW data with these parameters: switch.Add (@ "- sPSDocOptions =" "<< / Duplex true / Tumble true >> setdistillerparams" ""); but it is still one-sided. Am I using the script correctly?

            – Artem.Pankov
            Nov 15 '18 at 6:59











          • Switch.Add isn't anything to do with Ghostscript.I can't tell you why your printer doesn't enter duplex mode with that command, perhaps it uses non-standard code to do so.

            – KenS
            Nov 15 '18 at 8:21











          • Ken, thanks for responses. Now i testing converting PDF to PS via gswin64. I tried differently: 1) gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -sPSDocOptions="<</Duplex true /NumCopies 10>> setdistillerparams" -f D:.pdf 2)gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -c "<</Duplex true /NumCopies 10>> setpagedevice" -f D:.pdf but when i open it with notepad i can't find string "/Duplex true" or "/NumCopies 10" when i add them manually: %%BeginPageSetup << /NumCopies 10 >> setpagedevice it works. help!

            – Artem.Pankov
            Nov 16 '18 at 6:51
















          0














          Since PDF files can't contain device-specific information, you clearly don't need to pick such information from the input, which makes life simpler.



          Ghostscript's ps2write device is capable of inserting document wide or page specific PostScript into its output. So you can 'pass the settings' using that.



          For PCL you (probably) need to write some device-specific PJL and insert that into the PCL output. However, PCL is nowhere near as uniform as PostScritp, it'll be up to you to find out what need too be prefixed to the file.



          [EDIT]



          You don't use -sPSDocOptions, PSDocOptions is a distiller param, so you need:



          gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -c "<</PSDocOptions (<</Duplex true /NumCopies 10>> setpagedevice)>> setdistillerparams" -f D:.pdf


          Notice that you don't need -f (as you have in your command line) unless you have first set -c. The -f switch is used as a terminator for the -c.






          share|improve this answer

























          • Thanks for the answer. Where i can find documentation on how to insert PostScript into its output? On ghostscript.com i just found /PSDocOptions and /PSPageOptions but not how to use them.

            – Artem.Pankov
            Nov 14 '18 at 11:02











          • They are distiller parameters (the documentation says so), so you put them in a dictionary and call setdistillerparams. You can probably use -sPSDocOptions and -sPSJobOptions on the command line too, but you'll need to use "" in order to cater for the spaces in the PostScript.

            – KenS
            Nov 14 '18 at 14:09











          • I am trying to send a PS file as RAW data with these parameters: switch.Add (@ "- sPSDocOptions =" "<< / Duplex true / Tumble true >> setdistillerparams" ""); but it is still one-sided. Am I using the script correctly?

            – Artem.Pankov
            Nov 15 '18 at 6:59











          • Switch.Add isn't anything to do with Ghostscript.I can't tell you why your printer doesn't enter duplex mode with that command, perhaps it uses non-standard code to do so.

            – KenS
            Nov 15 '18 at 8:21











          • Ken, thanks for responses. Now i testing converting PDF to PS via gswin64. I tried differently: 1) gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -sPSDocOptions="<</Duplex true /NumCopies 10>> setdistillerparams" -f D:.pdf 2)gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -c "<</Duplex true /NumCopies 10>> setpagedevice" -f D:.pdf but when i open it with notepad i can't find string "/Duplex true" or "/NumCopies 10" when i add them manually: %%BeginPageSetup << /NumCopies 10 >> setpagedevice it works. help!

            – Artem.Pankov
            Nov 16 '18 at 6:51














          0












          0








          0







          Since PDF files can't contain device-specific information, you clearly don't need to pick such information from the input, which makes life simpler.



          Ghostscript's ps2write device is capable of inserting document wide or page specific PostScript into its output. So you can 'pass the settings' using that.



          For PCL you (probably) need to write some device-specific PJL and insert that into the PCL output. However, PCL is nowhere near as uniform as PostScritp, it'll be up to you to find out what need too be prefixed to the file.



          [EDIT]



          You don't use -sPSDocOptions, PSDocOptions is a distiller param, so you need:



          gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -c "<</PSDocOptions (<</Duplex true /NumCopies 10>> setpagedevice)>> setdistillerparams" -f D:.pdf


          Notice that you don't need -f (as you have in your command line) unless you have first set -c. The -f switch is used as a terminator for the -c.






          share|improve this answer















          Since PDF files can't contain device-specific information, you clearly don't need to pick such information from the input, which makes life simpler.



          Ghostscript's ps2write device is capable of inserting document wide or page specific PostScript into its output. So you can 'pass the settings' using that.



          For PCL you (probably) need to write some device-specific PJL and insert that into the PCL output. However, PCL is nowhere near as uniform as PostScritp, it'll be up to you to find out what need too be prefixed to the file.



          [EDIT]



          You don't use -sPSDocOptions, PSDocOptions is a distiller param, so you need:



          gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -c "<</PSDocOptions (<</Duplex true /NumCopies 10>> setpagedevice)>> setdistillerparams" -f D:.pdf


          Notice that you don't need -f (as you have in your command line) unless you have first set -c. The -f switch is used as a terminator for the -c.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 16 '18 at 8:01

























          answered Nov 14 '18 at 10:20









          KenSKenS

          22.5k12132




          22.5k12132












          • Thanks for the answer. Where i can find documentation on how to insert PostScript into its output? On ghostscript.com i just found /PSDocOptions and /PSPageOptions but not how to use them.

            – Artem.Pankov
            Nov 14 '18 at 11:02











          • They are distiller parameters (the documentation says so), so you put them in a dictionary and call setdistillerparams. You can probably use -sPSDocOptions and -sPSJobOptions on the command line too, but you'll need to use "" in order to cater for the spaces in the PostScript.

            – KenS
            Nov 14 '18 at 14:09











          • I am trying to send a PS file as RAW data with these parameters: switch.Add (@ "- sPSDocOptions =" "<< / Duplex true / Tumble true >> setdistillerparams" ""); but it is still one-sided. Am I using the script correctly?

            – Artem.Pankov
            Nov 15 '18 at 6:59











          • Switch.Add isn't anything to do with Ghostscript.I can't tell you why your printer doesn't enter duplex mode with that command, perhaps it uses non-standard code to do so.

            – KenS
            Nov 15 '18 at 8:21











          • Ken, thanks for responses. Now i testing converting PDF to PS via gswin64. I tried differently: 1) gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -sPSDocOptions="<</Duplex true /NumCopies 10>> setdistillerparams" -f D:.pdf 2)gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -c "<</Duplex true /NumCopies 10>> setpagedevice" -f D:.pdf but when i open it with notepad i can't find string "/Duplex true" or "/NumCopies 10" when i add them manually: %%BeginPageSetup << /NumCopies 10 >> setpagedevice it works. help!

            – Artem.Pankov
            Nov 16 '18 at 6:51


















          • Thanks for the answer. Where i can find documentation on how to insert PostScript into its output? On ghostscript.com i just found /PSDocOptions and /PSPageOptions but not how to use them.

            – Artem.Pankov
            Nov 14 '18 at 11:02











          • They are distiller parameters (the documentation says so), so you put them in a dictionary and call setdistillerparams. You can probably use -sPSDocOptions and -sPSJobOptions on the command line too, but you'll need to use "" in order to cater for the spaces in the PostScript.

            – KenS
            Nov 14 '18 at 14:09











          • I am trying to send a PS file as RAW data with these parameters: switch.Add (@ "- sPSDocOptions =" "<< / Duplex true / Tumble true >> setdistillerparams" ""); but it is still one-sided. Am I using the script correctly?

            – Artem.Pankov
            Nov 15 '18 at 6:59











          • Switch.Add isn't anything to do with Ghostscript.I can't tell you why your printer doesn't enter duplex mode with that command, perhaps it uses non-standard code to do so.

            – KenS
            Nov 15 '18 at 8:21











          • Ken, thanks for responses. Now i testing converting PDF to PS via gswin64. I tried differently: 1) gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -sPSDocOptions="<</Duplex true /NumCopies 10>> setdistillerparams" -f D:.pdf 2)gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -c "<</Duplex true /NumCopies 10>> setpagedevice" -f D:.pdf but when i open it with notepad i can't find string "/Duplex true" or "/NumCopies 10" when i add them manually: %%BeginPageSetup << /NumCopies 10 >> setpagedevice it works. help!

            – Artem.Pankov
            Nov 16 '18 at 6:51

















          Thanks for the answer. Where i can find documentation on how to insert PostScript into its output? On ghostscript.com i just found /PSDocOptions and /PSPageOptions but not how to use them.

          – Artem.Pankov
          Nov 14 '18 at 11:02





          Thanks for the answer. Where i can find documentation on how to insert PostScript into its output? On ghostscript.com i just found /PSDocOptions and /PSPageOptions but not how to use them.

          – Artem.Pankov
          Nov 14 '18 at 11:02













          They are distiller parameters (the documentation says so), so you put them in a dictionary and call setdistillerparams. You can probably use -sPSDocOptions and -sPSJobOptions on the command line too, but you'll need to use "" in order to cater for the spaces in the PostScript.

          – KenS
          Nov 14 '18 at 14:09





          They are distiller parameters (the documentation says so), so you put them in a dictionary and call setdistillerparams. You can probably use -sPSDocOptions and -sPSJobOptions on the command line too, but you'll need to use "" in order to cater for the spaces in the PostScript.

          – KenS
          Nov 14 '18 at 14:09













          I am trying to send a PS file as RAW data with these parameters: switch.Add (@ "- sPSDocOptions =" "<< / Duplex true / Tumble true >> setdistillerparams" ""); but it is still one-sided. Am I using the script correctly?

          – Artem.Pankov
          Nov 15 '18 at 6:59





          I am trying to send a PS file as RAW data with these parameters: switch.Add (@ "- sPSDocOptions =" "<< / Duplex true / Tumble true >> setdistillerparams" ""); but it is still one-sided. Am I using the script correctly?

          – Artem.Pankov
          Nov 15 '18 at 6:59













          Switch.Add isn't anything to do with Ghostscript.I can't tell you why your printer doesn't enter duplex mode with that command, perhaps it uses non-standard code to do so.

          – KenS
          Nov 15 '18 at 8:21





          Switch.Add isn't anything to do with Ghostscript.I can't tell you why your printer doesn't enter duplex mode with that command, perhaps it uses non-standard code to do so.

          – KenS
          Nov 15 '18 at 8:21













          Ken, thanks for responses. Now i testing converting PDF to PS via gswin64. I tried differently: 1) gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -sPSDocOptions="<</Duplex true /NumCopies 10>> setdistillerparams" -f D:.pdf 2)gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -c "<</Duplex true /NumCopies 10>> setpagedevice" -f D:.pdf but when i open it with notepad i can't find string "/Duplex true" or "/NumCopies 10" when i add them manually: %%BeginPageSetup << /NumCopies 10 >> setpagedevice it works. help!

          – Artem.Pankov
          Nov 16 '18 at 6:51






          Ken, thanks for responses. Now i testing converting PDF to PS via gswin64. I tried differently: 1) gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -sPSDocOptions="<</Duplex true /NumCopies 10>> setdistillerparams" -f D:.pdf 2)gswin64c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=D:out.ps -c "<</Duplex true /NumCopies 10>> setpagedevice" -f D:.pdf but when i open it with notepad i can't find string "/Duplex true" or "/NumCopies 10" when i add them manually: %%BeginPageSetup << /NumCopies 10 >> setpagedevice it works. help!

          – Artem.Pankov
          Nov 16 '18 at 6:51




















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • 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%2fstackoverflow.com%2fquestions%2f53296112%2fprinter-settings-into-postscript-or-pcl-file%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

          How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

          Syphilis

          Darth Vader #20