[dev] Re: help with filters in format convertion
very sorry to bother you, i just get no other ways. hope you have a good day. 2011-06-27 王磊 / Lei Wang完美世界(北京)网络技术有限公司 Beijing Perfect World Network Technology Co., Ltd. 地址:北京市朝阳区北苑路86号院 306号楼(100101) Addr:Building 306, #86 Beiyuan Road, Chaoyang District, Beijing 100101, China 信息部 / 邮件开发工程师 电话:(8610)58858555-1000 手机:15810028663 传真:(8610)58858555 邮箱:wanglei100...@wanmei.com www.wanmei.comCopyright@ 2004-2009 Perfect World Co.,Ltd.All rights reserved. 发件人: Eike Rathke 发送时间: 2011-06-27 18:13:50 收件人: dev 抄送: wanglei 主题: Re: [dev] help with filters in format convertion Hi wanglei, On Monday, 2011-06-27 15:48:33 +0800, wanglei wrote: i work for a mailing service provider, and right now i'm making a format converting tool, which can convert pdf doc[x] ppt[x] xls[x] to html Have a look at the JODConverter http://www.artofsolving.com/opensource/jodconverter I think that does already what you want to achieve. Eike P.S.: As you're not subscribed to the mailing list you were posting to, you will miss replies that are directed to the list only. When answering, please reply only to the list (Reply-To header is set), not to my personal account. Thanks. -- PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication. Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3 9E96 2F1A D073 293C 05FD -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk4IV94ACgkQFbLmO4lpmVqPpwCfXw17tBOaM3gOJV13w1oH5u74 TyUAn1pxRfIwuyAdrqw2s2YXs9+0veQM =wRgP -END PGP SIGNATURE- -- - To unsubscribe send email to dev-unsubscr...@openoffice.org For additional commands send email to sy...@openoffice.org with Subject: help
[dev] Re: help with filters in format convertion
Hi Wanglei, On 24.06.2011 04:04, wanglei wrote: hi, all. i found your email addresses on the wiki of openoffice documentation project, and now trying to get some help from you guys. i work for a mailing service provider, and right now i'm making a format converting tool, which can convert pdf doc[x] ppt[x] xls[x] to html, so that attachments in those formats could be viewed online, regardless of the user's envirenment. i can convert doc[x] and xls[x] to html now, but found some trouble with the ppt[x] and pdf. my code is like the following(based on the code found on the wiki and sdk examples). when converting ppt and pdf, there is always an error, but get no message information. the output would be like: [root@M5 CppBinding]# make clean; make ; make office_connect.run cd /root/unoout/openoffice.org3.1_sdk/LINUXexample.out/bin office_connect Connected sucessfully to the office XComponentloader successfully instanciated xcomponent load ok XStorable successfully instanciated start to save file readonly:0 haslocation:1 found a error An error occurred: make: *** [office_connect.run] Error 1 questions: 1.is this caused by chosing the wrong export filter type? 2.what filter type should i use to export html from ppt[x] and pdf? For ppt(x) the recommended filter name is impress_html_Export. For pdf the it should be draw_html_Export, as AFAIK pdf are imported into Draw. 3.no import filter type is specified, but it worked with doc[x] and xls[x], is this ok? should i specify one anyway? If it works, it's OK. :-) 4.and how can i make sure the file is of doc format? eg i change whatever a file's name into *.doc on purpose and use this tool to convert it to html, this surely will cause some problem, right? can i determine whether the file to be imported is of the specified format or what format is the file to be imported is of? how could i do this? *i know i asked a lot of questions, this might take you some time to answer, i'm very sorry to bother you guys, but i can not find another way to solve this problem. best wishes for you all, looking forward to your replies or please forward this mail to someone who can help. You can check the document type after import. The component you receive supports XServiceInfo with the method supportsService. The service names of the documents (like com.sun.star.text.TextDocument etc.) are documented in the Developers Guide. So you can choose the HTML export filter name depending on the type of the imported document. Regards, Mathias -- - To unsubscribe send email to dev-unsubscr...@openoffice.org For additional commands send email to sy...@openoffice.org with Subject: help
[dev] Re: help with filters in format convertion
Hi wanglei, On Monday, 2011-06-27 15:48:33 +0800, wanglei wrote: i work for a mailing service provider, and right now i'm making a format converting tool, which can convert pdf doc[x] ppt[x] xls[x] to html Have a look at the JODConverter http://www.artofsolving.com/opensource/jodconverter I think that does already what you want to achieve. Eike P.S.: As you're not subscribed to the mailing list you were posting to, you will miss replies that are directed to the list only. When answering, please reply only to the list (Reply-To header is set), not to my personal account. Thanks. -- PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication. Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3 9E96 2F1A D073 293C 05FD pgpMkpUryPj5y.pgp Description: PGP signature
[dev] Re: help with filters in format convertion
On Mon, Jun 27, 2011 at 5:13 AM, Eike Rathke o...@erack.de wrote: Hi wanglei, On Monday, 2011-06-27 15:48:33 +0800, wanglei wrote: i work for a mailing service provider, and right now i'm making a format converting tool, which can convert pdf doc[x] ppt[x] xls[x] to html Have a look at the JODConverter http://www.artofsolving.com/opensource/jodconverter I think that does already what you want to achieve. Eike P.S.: As you're not subscribed to the mailing list you were posting to, you will miss replies that are directed to the list only. When answering, please reply only to the list (Reply-To header is set), not to my personal account. Thanks. -- PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication. Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3 9E96 2F1A D073 293C 05FD There is also oooconv a development by Laurent which runs on a server and uses PHP and custom macros in OOo to do exactly that. The code is published on the site: http://oooconv.free.fr/oooconv/oooconv_en.html -- *Alexandro Colorado* *OpenOffice.org* Español http://es.openoffice.org -- - To unsubscribe send email to dev-unsubscr...@openoffice.org For additional commands send email to sy...@openoffice.org with Subject: help