OpenOfficeDocumentConverter.conert() to convert Word to PDF

46 views
Skip to first unread message

mvgr99

unread,
Oct 1, 2009, 10:40:50 PM10/1/09
to JODConverter
Hi,

I am trying to pass DocumentFormat as parameter to
OpenOfficeDocumentConverter.convert() method
2.To Construct DocumentFormat we need (java.lang.String name,
java.lang.String mimeType, java.lang.String extension)
3.Want to know what name we need to pass as Fist parameter

Using OpenOffice 3.0 on Windows 2003 server.

When i call OpenOfficeDocumentConverter.convert() method without
DocumentFormat as additional params for Source and Destination files,
the format in generated PDF file is not same as source word document.
Sub Headings and bullet point orders are getting messed up.

Any suggestion/help is appreciated.

Thanks in advance,

Mirko Nasato

unread,
Oct 2, 2009, 11:15:23 AM10/2/09
to jodcon...@googlegroups.com
Hi mvgr99,

2009/10/2 mvgr99 <mvg...@gmail.com>:


>
> I am trying to pass DocumentFormat as parameter to
> OpenOfficeDocumentConverter.convert() method
> 2.To Construct DocumentFormat we need (java.lang.String name,
> java.lang.String mimeType, java.lang.String extension)
> 3.Want to know what name we need to pass as Fist parameter
>

The name can be any arbitrary string basically, it's just a description.

> Using OpenOffice 3.0 on Windows 2003 server.
>
> When i call OpenOfficeDocumentConverter.convert() method without
> DocumentFormat as additional params for Source and Destination files,
> the format in generated PDF file is not same as source word document.
> Sub Headings and bullet point orders are getting messed up.
>
> Any suggestion/help is appreciated.
>

If it's an OOo problem then passing an explicit DocumentFormat won't
make any difference.

Kind regards

Mirko

Reply all
Reply to author
Forward
0 new messages