How to paste an .odt document

Asked by Kevin O'Gorman

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

English Edit question
Ubuntu libreoffice Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :

Is it all text? No images?

Revision history for this message
Warren Hill (warren-hill) said :

The Ubuntu paste bins

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.

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :

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 :)

Revision history for this message
Kevin O'Gorman (kogorman-pacbell) said :

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.

Revision history for this message
Tony Pursell (ajpursell) said :

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.