How can I set 'Print to File' as my default printing option?

5,116

Stop cupsd by running

sudo stop cups

Then edit /etc/cups/printers.conf with your favourite editor.

Find the line that says

<DefaultPrinter somename>

And change it to

<Printer somename>

Then start cupsd with

sudo start cups

And that should remove the default printer thus reverting print to file as the default.

Share:
5,116

Related videos on Youtube

edm
Author by

edm

Updated on September 18, 2022

Comments

  • edm
    edm almost 2 years

    At the moment when I print, my Deskjet-3050 is selected as the default printer.

    I would like 'Print to File' to be the default 'printer' without using cups-pdf


    I specifically do not want to use cups-pdf because of the way it renders text (see below). I am not entirely sure what it is doing but it seems as though it renders the text as bitmaps and embeds them in pdf (as I am not able to highlight/copy/search embedded text as I am using a standard Print to File pdf).

    enter image description here

    N.B. this is not a dupe of: Can I make PDF the default for 'print to file'

    • Admin
      Admin over 12 years
      Why specifically not cups-pdf?
    • Admin
      Admin over 12 years
      @Oli see above for why not cups-pdf
    • Admin
      Admin over 12 years
      What program are you using to view the generated PDF file from cups-pdf?
    • Admin
      Admin about 12 years
      Evince, but it looks just as bad using adobe on windows. Anyway without being rude, this is all beside the point. The question is about setting 'Print to File' as the default and not about using/fixing cups-pdf.
    • Admin
      Admin about 12 years
      In other words, you want to print to a PostScript file? Unfortunately, I do not know how to set this as default, but you can set it each time you print. I might suggest that instead of setting print-to-file as default, you open a question on the Ubuntu Forums to fix the poor rendering of your PDF -- it should not be poor like that. You may be using a non-Truetype font.
    • Admin
      Admin about 12 years
      Print-to-File seems to be build into gtk as a GtkPrintingBackend using cairo. The gtk printing dialog adds this to the list of printers. However, the function gtk_printer_is_default seems to be called only on other printers. If one of them claims to be default, that one is set. The printer settings dialog however does not look for build-in backends, only for cups /lpr printers. Therefore you can not use this dialog to set a buildin backend as default. (Which is why you can set cups-pdf as default). I have no idea what the answer to your question is, but I guess it will include coding.
    • Admin
      Admin about 12 years
      There is a bug in the current cups-pdf that causes the font to be rendered as bitmaps. Please mark it as it affects you. bugs.launchpad.net/ubuntu/+source/poppler/+bug/382379
  • edm
    edm about 12 years
    Removing that setting from the config file sets no default rather than print to file.
  • nanofarad
    nanofarad about 12 years
    I can see this as useful, but a bit cumbersome...
  • ehime
    ehime about 12 years
    Ditto, but it doesn't seem like there's a world of options either.