Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a faster way to print multiple ODT documents besides opening each one in OpenOffice/LibreOffice and printing each document separately? It would be great if I could just select multiple documents in Nautilus and have some option to print them all with the same print settings.

share|improve this question

2 Answers 2

up vote 10 down vote accepted

First, in Nautilus select the relevant .odt documents...

UPDATE:
You can fully "automate" the process by adding a Nautilus Action
sudo apt-get install nautilus-actions

eg (nautilus-actions setup):
Command: ooffice -writer -p -headless
Parameters: %M
Filenames: *.odt
[*] Appears if selection has multiple files of folders


or:
here is my original "Terminal" version

In Nautilus copy selected files to the clipboard (filenames are stored)...

Set up your required printer settings in OpenOffice...

In gnome-terminal, use the context-menu item Paste Filenames ...
Note: the pasted filenames are: 'single-quoted' and space delimited

  • ooffice -writer -p 'YOUR' 'PASTED' 'FILENAMES' &

I don't know how long a Terminal command-line can handle, but it does work..
(I just tested it; printing to a cups-pdf virtual "printer")

On newer versions of Ubuntu featuring LibreOffice instead of OpenOffice be sure to use the libreoffice-command instead.


on libreoffice you might also have to use "--" instead of "-", the full command then is:

libreoffice --writer -p --headless 'filename1' 'filename2'
share|improve this answer
    
A marvellous answer - I'll remember this and be very glad when I need it. –  Stefano Palazzo Nov 25 '10 at 18:23

What I think you need is a batch convert to get all your documents into pdf:

http://www.xml.com/pub/a/2006/01/11/from-microsoft-to-openoffice.html

Once you have pdf files, it's much easier to send them all to the printer, by joining them all up into one big pdf using pdftk or by using the normal print option.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.