Need some details on calligraconverter.cpp file inside kde4/src/calligra/tools/converter

Boudewijn Rempt boud at valdyas.org
Fri May 11 11:09:36 BST 2012


On Fri, 11 May 2012, Ankit Jain wrote:

> Hi,
> 
> I am working on an utility that would convert a docx or doc to PDF. I installed calligra and I was studying the source code of calligra to understand how does export to PDF the below 2 things work( when we give print we get 2
> options)-
> 
> 1. print to PDF
> 2. print to file(Postscript).
> 
> I found calligraconverter.cpp inside kde4/src/calligra/tools/converter location but that file is using some libraries or filters to do that(means there are some dependencies),but I am unable to find out those.
> 
> Can someone help me on this and tell me the location of the libraries and the dependencies.
> 
> If someone can give me a detailed approach on how to proceed then it could be very helpful to me and this is a very tough task.
>

Er... calligraconverter just works. You can do

calligraconverter bla.doc bla.pdf

and the pdf will be generated. It uses, of course, the rest of calligra 
for that, but there's no magic involved, just mimetype recognition.

Boudewijn



More information about the calligra-devel mailing list