facing problem in converting doc to pdf

321 views
Skip to first unread message

lokesh reddy

unread,
May 14, 2010, 2:19:35 AM5/14/10
to JODConverter
Hi,

I am facing problem in conveting some docs to PDF. For rest of the
documents it is working fine.

I am using the command as

java -jar C:/jodconverter-2.2.2/lib/jodconverter-
cli-2.2.2.jar -f pdf C:/*.doc

I am getting below error:

14-May-2010 07:10:11
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection
connect
INFO: connected
14-May-2010 07:10:46
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection
disposing
SEVERE: disconnected unexpectedly
Exception in thread "main"
com.artofsolving.jodconverter.openoffice.connection.O
penOfficeException: conversion failed: could not load input document
at
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocument
Converter.loadAndExport(OpenOfficeDocumentConverter.java:131)
at
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocument
Converter.convertInternal(OpenOfficeDocumentConverter.java:120)
at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOffice
DocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:
104)
at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOffice
DocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:74)
at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOffice
DocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:70)
at
com.artofsolving.jodconverter.cli.ConvertDocument.convertOne(ConvertD
ocument.java:154)
at
com.artofsolving.jodconverter.cli.ConvertDocument.main(ConvertDocumen
t.java:139)
Caused by: com.sun.star.lang.DisposedException: java.io.IOException:
com.sun.sta
r.io.IOException: java.net.SocketException: Connection reset
at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge
$MessageDi
spatcher.run(java_remote_bridge.java:171)

Please help me on this.
Thanks in advance

Regards
Lokesh

--
You received this message because you are subscribed to the Google Groups "JODConverter" group.
To post to this group, send email to jodcon...@googlegroups.com.
To unsubscribe from this group, send email to jodconverter...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jodconverter?hl=en.

Gorav Singal

unread,
May 14, 2010, 6:08:17 AM5/14/10
to jodcon...@googlegroups.com
I guess, you have to do it one by one. Write a script which will iterate through your documents.
--
Be the change U want to see in the world...

lokesh reddy

unread,
May 14, 2010, 6:26:05 AM5/14/10
to JODConverter
Hi Gorav,

Even when I am trying to convert the same doc to PDF using java code
(i.e single doc conversion) , it is giving the same problem.

It's not bcos of that batch doc conversion i guess.


On May 14, 3:08 pm, Gorav Singal <techi...@gmail.com> wrote:
> I guess, you have to do it one by one. Write a script which will iterate
> through your documents.
>
-

Mirko Nasato

unread,
May 14, 2010, 9:41:22 AM5/14/10
to JODConverter
Have you tried opening that doc manually in OpenOffice.org Writer?

http://code.google.com/p/jodconverter/wiki/FAQ

Kind regards

Mirko

lokesh reddy

unread,
May 17, 2010, 2:22:38 AM5/17/10
to JODConverter
Hi Mirko,

I opened it using OpenOffice.org Writer. It opened and exported to PDF
correctly.

I guess it's not problem with open office.

Mirko Nasato

unread,
May 18, 2010, 4:08:05 AM5/18/10
to JODConverter
Send me the document and I'll have a look when I have time.

Kind regards

Mirko

lokesh reddy

unread,
May 18, 2010, 7:44:59 AM5/18/10
to JODConverter

Hi Mirko,

I checked the document.

The Word document which I am trying to convert is having an embedded
image(.gif) file. I removed that image and tried to convert.Then it
converted fine.

Now how to convert the doc embedded with some objects ?

Mirko Nasato

unread,
May 19, 2010, 4:24:18 PM5/19/10
to JODConverter
Documents with embedded images normally convert just fine. There must
be something else "special" to that document.

Kind regards

Mirko

lokesh reddy

unread,
May 21, 2010, 7:49:11 AM5/21/10
to JODConverter

Hi Mirko,

I attached the file in below link.

http://groups.google.com/group/jodconverter/files

File name is Santosh_resume.doc.

Please look into this issue.....

lokesh reddy

unread,
May 26, 2010, 6:59:03 AM5/26/10
to JODConverter

Can some one help me on this?

It's urgent..............

Brian Fenton

unread,
May 26, 2010, 7:09:46 AM5/26/10
to jodcon...@googlegroups.com
Hi Lokesh

when I open your doc in OpenOffice the image isn't visible. However it exports fine to PDF.

regards
Brian


On 26 May 2010 12:59, lokesh reddy <lok143...@gmail.com> wrote:

Can some one help me on this?

It's urgent..............

lokesh reddy

unread,
May 26, 2010, 8:39:21 AM5/26/10
to JODConverter
hi Brian,

Through manually opening from OOo i am able to convert my doc to PDF.

But when i am trying to convert the Doc to PDF through either Command
line or java code it's giving the problem...

I am unable to figure out the problem.....

Same document I am able to convert to PDF using both Command line and
java code successfully on another machine......

I am unable to figure out why it is failing on my machine......

lokesh reddy

unread,
Jun 1, 2010, 3:27:39 AM6/1/10
to JODConverter
Hi all,

Any help on this?

lokesh reddy

unread,
Jun 2, 2010, 7:52:46 AM6/2/10
to JODConverter


Hi all,

One more thing what I found is

- if document is having Microsft office objects as embedded (Excel,
PPT etc) it is converting properly.....
- it it is having other objects like gif, jpg, notepad etc it's
failing to convert......


Mirko Nasato

unread,
Jun 2, 2010, 9:26:34 AM6/2/10
to JODConverter
It may well be that embedded objects requiring external applications
cause problems in headless mode. Not due to JODConverter, and probably
not even OpenOffice.org's fault, more likely just a limitation of OLE.
http://en.wikipedia.org/wiki/Object_Linking_and_Embedding

(Not sure why images need to be embedded objects either, but that's
another story.)

Kind regards

Mirko
Reply all
Reply to author
Forward
0 new messages