I have seen some questions on this list (much) earlier about how to set the 
default paper size for OpenOffice, from US Letter to A4. I too had a problem 
with this, as my country's paper standard is A4, too. While the proffered 
solutions of setting the paper size in document templates is not strictly 
wrong, it is tedious, as you have to do it in every template you use. It does 
not address the issue of having Openoffice always default to the correct page 
size. As I had not seen a response directly meeting this need, I went 
looking. 

There is a config file in Openoffice.org's installation directory called 
psprint.conf. For my installation (yours will probably differ), it's in 
                   /opt/openeoffice-2.2/ share/psprint

(If you don't know where it is in your installation, you could try the 
following command in a terminal window:
                  find /opt /usr -name psprint.conf -print
which should print its whereabouts for you.)
 
It is a read-only file so check its ownership (ls -l psprint.conf - it should 
be root-user), switch to that user and make it writable:  su + root's 
password followed by chmod u+w psprint.conf. or sudo chmod u+w psprint.conf.  

Open the file with a text editor and look for the line:
  ; PPD_PageSize=A4
Remove the semi-colon (comment character) at the start of the line and save 
the file. Change the permissions to make it read-only again (chmod u-w 
psprint.conf). Your default page size is now (and will be until your next 
upgrade :-), A4. 

Hope this helps all those A4 users trapped with US Letter.
-- 

Ewing Caldwell
Lecturer
School of Computing and Mathematical Sciences
Faculty of Design and Creative Technologies
Auckland University of Technology
Auckland, NEW ZEALAND
----------------------------------------------------
Help Microsoft stamp out piracy. Share Linux today.
----------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to