2009/7/7 hemant joshi <hema...@gmail.com>:
> I am presently using OOo 3 and jodconvertor 2.2.2 and m trying to convert
> docx file to pdf.It is still not converting ,wat exactly in nutshell
> happening is , it picks up document format from defaultdocumentRegistery for
> docx file and call convert method of DocumentConverter which internally
> calls method convertInternal() of StreamOpenOfficeDocumentConverter class
> there it throws exception saying "URL seems to be an unsupported one" .
>
Try using OpenOfficeDocumentConverter instead of
StreamOpenOfficeDocumentConverter. It may be that OOo is not able to
detect the docx file type with streams.
Kind regards
Mirko
2009/7/8 hemant joshi <hema...@gmail.com>:
>
> I have used OpenOfficeDocumentConvertor but still i need to override
> DefaultDocumentFormatRegistry .I did something like this
>
> final DocumentFormat doc = new DocumentFormat("MS Word 2007
> XML", DocumentFamily.TEXT, "application/msword", "docx");
> doc.setExportFilter(DocumentFamily.TEXT, "MS Word 2007 XML");
> addDocumentFormat(doc);
> In DefaultDocumentFormatRegistry u guys are not setting the
> ExportFilter,so because of that i was getting null for my input
> format.Now after overridng it ,i am able to convert docx document to
> pdf .
>
The docx format in DefaultDocumentFormatRegistry is correct and
working. There's no setExportFilter() because OOo can't export to
docx, only import it. You must have had a different problem.
> Now issue is if my docx document contains images then it converts it
> to pdf but doesn't include the images.
>
> So can i have some pointers on this.
>
See answer #4 of the FAQ
http://code.google.com/p/jodconverter/wiki/FAQ
Kind regards
Mirko
2009/7/9 hemant joshi <hema...@gmail.com>:
>
> I have gone through the link which you have given.I have opened my
> docx document which has images also in it with OOo, it preserves my
> all images in document when it is opened.
>
I can convert docx files just fine. Please attach/upload your document
somewhere.
If your document has linked images that are only available on your
machine, and you're converting on another machine, then of course
images will be missing.
Kind regards
Mirko
2009/7/9 hemant joshi <hema...@gmail.com>:
> Please find the attached docx document which i am trying to
> convert.Images inside this document are not available on my machine.
>
Works fine here and online, the PDF includes images.
http://www.artofsolving.com/online-document-converter
Kind regards
Mirko
Kind regards
Mirko