In my application I need to convert (.doc) file to (.pdf) file .
any one can help.
Thanks in Advance…
In my application I need to convert (.doc) file to (.pdf) file .
any one can help.
Thanks in Advance…
You’ll need a third party lib to do this. There are plenty on the web. One way is to use a commandline based tool the other to get one with a Java API. Do you need to do massive conversions? Please explain a bit more in detail what you are trying to achieve.
If you are running on a Windows platform you can use the free PDFcreator software (see the sourceforge platform), which converts various types of documents to PDF. In one of our projects I use it to convert on a daily basis Word doc(uments) to PDF in a batch.
Regards,
Jan Willem
Oke, than you are doing that on the server. But to do it on the client cross-platform is not that easy. Think of deployment problems. There are not many java-libs that can do the job right! So if someone has a solution to do it in a Servoy Client (cross-platform) please let us know!
I’d run the converter on the server anyway! Batchprocessor and schedule with queue.
Hi Jan, I understand the way with a batchprocessor,but do you have suggestions how to do it instantly in a client?
(that is connected via the web)
I assume with instantly you mean ‘sort of instant’ otherwise your clients would have to run a quamtum computer. Once you go sort of instant you can run it serverside and push it to the client using either a very reactive batchprocessor or by using the UDP plugin.
You could also try finding a pure Java lib that converts doc to pdf or go native with a JNI wrapper in which case you would have to do some extra work for each platform.
I’m thinking up load now, but is it possible to start a batch file (with arguments) on the server, instantly from a Servoy Client, without using a (servoy) batchprocessor? That way we could ‘upload’ a doc file to the server, let it convert there to a pdf and download it again, to the client.
That would be really cool, for doing stuff that normally can’t be easily done in a Servoy Client (or Java in general)
Ofcourse that is possible. You can either have 1 batchprocessor that runs constantly and checks a ‘todo’ table every 1 or 2 seconds or so. OR you can fire one instantly by ‘getting’ a URL that fires up a headless or a web-client.
Welcome to Servoy! The sky is not the limit!