Setting A Default Paper Size

PrinterThis post is in response to a reader request.

In Mac OS X, the default paper size is a setting that determines the size of paper that applications will try to print to unless the user chooses otherwise. For most systems and applications this defaults to US Letter.  In order to provide a positive user experience, especially for end users outside of the United States, it may be desirable to set a different default paper size.

The file that contains this preference is:
~/Library/Preferences/com.apple.print.PrintingPrefs.plist

This makes the preference domain: com.apple.print.PrintingPrefs

The Key that governs the preference is called : DefaultPaperID

DefaultPaperID contains a string value that corresponds to a paper size. See the chart below:

Paper SizeString
US Legalna-legal
US Letterna-letter
A4iso-a4
A5iso-a5
JIS B5jis-b5
B5iso-b5
Envelope #10na-number-10-envelope
Envelope DLiso-designated-long-envelope
Tabloidtabloid
A3iso-a3
Tabloid Oversizearch-b
ROC 16Kroc16k
Envelope Choukei 3cho-3-envelope
Super B/A3arch-b-extra

To set this preference with a script use the command below, replacing <paperSize> with the correct string for the intended paper size.

For a single user, run as the user:
defaults write ~/Library/Preferences/com.apple.print.PrintingPrefs DefaultPaperID <paperSize>

For all users, run as root:
defaults write /Library/Preferences/com.apple.print.PrintingPrefs DefaultPaperID <paperSize>

This process has been tested on Mac OS X v10.6 (Snow Leopard), v10.7 (Lion) and v10.8 (Mountain Lion).

I hope you find this useful.

15 responses

  1. Tried this for 10.8 and didn’t find PrintingPrefs.plist
    I want to add 4×6 borderless paper as a default for system, but can’t find the way to do this. Could you please help me with my task?

  2. I’ve tested the process under 10.8.

    ~/Library/Preferences/com.apple.print.PrintingPrefs.plist does not exist until a preference has been set. This is a common occurrence for preference files. Many applications/system items “know” their default settings; preference files are created when the default settings are to be modified.

    For the custom paper size, I’ll make a new post.

  3. Be sure to run the command exactly as listed, substituting <paperSize> with the string corresponding to your desired paper size.

    A common error is to add the .plist extension after com.apple.print.PrintingPrefs in the command. This will cause the command to fail. Note from my previous comment – this file does not exist by default. A preference must be set in order to create the file. Running the commands described in this article will set a preference and create the file.

  4. Of course, you’re right! I did not copy the entire line. I omitted the “defaults write ” part. It now took the command. Thank you for your patience. 🙂

  5. I am a basic mac user but trying to stumble my way through this.

    I have entered the following script into the script editor “defaults write /Library/Preferences/com.apple.print.PrintingPrefs DefaultPaperID ”

    then tried to run that script but I got an error: “Syntax Error – xpected “given”, “with”, “without”, other parameter name, etc. but found “/”.

    Any help would be greatly appreciated.

  6. Hey there. Thanks for reading. The issue you’re seeing is because the commands listed in this article are shell commands. You can run them manually in the Terminal application. If you create a script, you would create a shell or bash script (among other possibilities). The Script Editor application creates Applescripts, which is another language entirely. For guidance on creating bash scripts, you may want to look at http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html You can skip section 1.1 as OS X already has the appropriate version of bash installed.

    I hope this helps.

  7. In comment #2 you said you were going to make a new post for custom paper sizes. Have you done so? I can’t seem to find it and that’s what I need to figure out how to accomplish.

  8. thanks, I check that my preference is A4 and in my pref… I find this
    DefaultPaperID
    iso-a4
    Printer Proxy Frame
    {{42, 193}, {683, 482}}
    Quit When Finished

    Scanner Proxy Frame
    {{42, 193}, {683, 482}}
    UseLastPrinterAsCurrentPrinter

    which I assume that all is set but my Brother HL 4750CDW still defaults to US Letter (the rest of my other install printers are OK) !!
    any thoughts/ suggestions ? Many thanks
    James

  9. It is possible that this printer’s driver has its own setting that supersede the defaults. Have a look at the print dialog that appears when you print to this printer.

    OS X Print Dialog With Samsung Options

    Look at the options available in the menu just beneath the orientation and scale controls. This is where driver-specific options will be found as the Samsung paper type selection shown in the screenshot above. I hope this is helpful.

  10. This appears to have changed in Mavericks as the default size in printing preferences is different to the value is the plist file 🙁

Leave a Reply

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