How to paste an .odt document

Asked by Kevin O'Gorman on 2012-11-12

I had a question about a LibreOffice document. I wanted to put it in the ubuntu pastebin, but was put off because the list of acceptable formats is long but does not include ODT. How should I post such documents when I have a question about LibreOffice?

I put it on my own web site, but not everyone has one of those....

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu libreoffice Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:

Is it all text? No images?

Warren Hill (warren-hill) said : #2

The Ubuntu paste bins

http://paste.ubuntu.com/
http://ubuntu.pastebin.com/
http://pastebin.com
http://fpaste.org/
http://pastebin.ca

are intended for plain text only. The format list is just for syntax highlighting. You can't use it for pictures and it won't preserve formatting such as fonts, bold, underline etc. You can use it to copy the text however.

If you need to make the file available for someone else you will need a dropbox.

or a little smoother (in terminal)

sudo apt-get install pastebinit odt2txt

Then when you want to pastebin an ODT file:

odt2txt filename.odt | pastebinit

Nice huh :)

That's good. I also found a solution that basically uuencodes the file and pastes it, and while it arguably violates the spirit, it's in the repos: look at pbput(1).

I think I'll look into dropboxes, because it's the formatted version I'm asking about.

Tony Pursell (ajpursell) said : #5

Hi Kevin

Another solution for making any sort of file available on-line is to use Ubuntu One. If you upload a file to U1 (by putting it in your Ubuntu One folder, for example) you can then go to your U1 account on-line through your browser and 'publish' the file. U1 gives you a link that you can give to others, such as on Launchpad here.

I like this solution because it works for all file types with no additional software and it keeps it all in the Ubuntu family.

Tony