PDF:

DOC, 用OOo 3.0看的:

这种服务虽然不错, 不过如果你需要立即得到转换结果的话, 恐怕是不行了, 估计这是以后付费的一种服务.
$ sudo apt-get install scrot perl libwww-mechanize-perl xclip gnome-osd
$ cat capture_and_paste.sh
#!/bin/bash
cd /home/xiaogaozi/Picture/paste # 截图保存的文件夹
sleep 2 # 2秒后开始截图
scrot -sb -e '/home/xiaogaozi/Document/Perl/paste.pl $f'
exit 0
$ cat paste.pl
#!/usr/bin/perl -w
use strict;
use WWW::Mechanize;
sub xclip
{
open(XCLIP, "|/usr/bin/xclip") or warn("No xclip - use .p\n"), return;
print XCLIP $_[0];
close XCLIP;
}
my $poster = "Dreamseeker"; # 张贴者
my $paste_url = 'http://paste.ubuntu.org.cn/';
my $screenshot = $ARGV[0];
my $mech = WWW::Mechanize->new();
$mech->get("$paste_url");
$mech->submit_form(
with_fields =>
{
"screenshot" => $screenshot,
"poster" => $poster
},
form_name => "editor",
button => "paste"
);
if ($mech->success())
{
my $rr = $mech->uri();
print($rr . "\n");
xclip($rr);
my $rrr = "贴图地址: " . $rr;
`/home/xiaogaozi/Document/ShellScript/osd_prompt.sh '$rrr'`; # 调用脚本用gnome-osd显示
}
else
{
`/home/xiaogaozi/Document/ShellScript/osd_prompt.sh "贴图失败"`; # 调用脚本用gnome-osd显示
print "ERROR:\t" . $mech->status() . "\n";
}
$ cat osd_prompt.sh
#!/bin/bash
gnome-osd-client -f "<message id='myplugin' osd_fake_translucent_bg='off'
animations='on' hide_timeout='2000' drop_shadow='off' avoid_panels='on'>
<span foreground='lightblue' size='large' weight='bold'>$*</span></message>"