I'd like to point to this thread regarding kde on windows and poppler (by the way is there a way in Googlemail to refer to a thread without copy/paste it?):<br><br><span class="undefined"><font color="#000000">From: <b class="undefined">Pierre Stirnweiss</b> <span dir="ltr"><<a href="mailto:pstirnweiss@googlemail.com">pstirnweiss@googlemail.com</a>></span><br>
Date: Sun, Mar 20, 2011 at 9:26 AM<br>To: Calligra Suite developers and users mailing list <<a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a>><br></font><br></span><br>Just something to keep in mind:<br>
on
windows MSVC, libpoppler is a static library ("because poppler does not
have import/export thing for the core(private) api" dixit pinotree).
Libpoppler is not meant to be used directly. For the karbon pdf filter
this is however what we do. This means that:<br>
-either we disable the filter on windows MSVC<br>-or we link the filter
to every library libpoppler was linked to. these should be exactly the
same ones. that solution is not very practical to implement.<br><br>So if during the course of refactoring, this could be avoided/fixed, all the better.<span class="HOEnZb"><font color="#888888"><br>
<br>Pierre<br><br><br></font></span><br>
<br>----------<br><span class="undefined"><font color="#000000">From: <b class="undefined">Boudewijn Rempt</b> <span dir="ltr"><<a href="mailto:boud@valdyas.org">boud@valdyas.org</a>></span><br>Date: Sun, Mar 20, 2011 at 9:34 AM<br>
To: Calligra Suite developers and users mailing list <<a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a>><br></font><br></span><br>Yes,
the words pdf import/export plugin should only use poppler-qt4 which is
a proper shared library. If that doesn't provide enough capabilities,
we will probably need to work together with the poppler guys to improve
that situation :-).<br>
<div class="im HOEnZb"><br>
--<br>
Boudewijn Rempt | <a href="http://www.valdyas.org/" target="_blank">http://www.valdyas.org</a>, <a href="http://www.krita.org/" target="_blank">http://www.krita.org</a><br>
</div><br>----------<br><span class="undefined"></span><a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank"></a><br>PierreSt<br><br><div class="gmail_quote"><span style="font-size:large;font-weight:bold"></span>
<br><br></div><br><br><div class="gmail_quote">On Tue, Dec 20, 2011 at 8:25 AM, Sebastian Sauer <span dir="ltr"><<a href="mailto:mail@dipe.org" target="_blank">mail@dipe.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div bgcolor="#ffffff" text="#000000"><div><div>
On 12/20/2011 05:20 AM, Panks wrote:
<blockquote type="cite">
<br>
<br>
<div>On Mon, Dec 19, 2011 at 11:05 AM, Sebastian Sauer <span><<a href="mailto:mail@dipe.org" target="_blank">mail@dipe.org</a>></span>
wrote:<br>
<blockquote>
<div>
<div>
<div> On 12/18/2011 09:33 PM, Panks wrote:
<blockquote type="cite"> <span>Hello everyone,
<div>This is Pankaj, I am a second year CS student
at Indian Institute of Technology, Madras.</div>
<div>I am interested in contributing to Calligra.</div>
<div><br>
</div>
<div> While going through last year (2011) gsoc idea
page I found these ideas interesting:</div>
<div>Project: PDF-Import and/or PDF-Export AND
Integrate with Akonadi for Calligra Words</div>
<div>and Project: PSD File import/export Support for
Calligra Krita</div>
<div><br>
</div>
</span><span>I would like to work upon one or
more(depends on time) of these ideas.</span>
<div><span>But since I am new to KDE, I would like
someone to mentor/help me along with the project.</span><span>
<div> So, can someone please help me along with? </div>
<div> <br>
</div>
</span><span>
<div>Credentials: I have knowledge of C++ and Qt.</div>
<div><br>
</div>
</span></div>
</blockquote>
<br>
</div>
</div>
and hello <span>Pankaj,<br>
<br>
I would be willing to mentor you on getting a PDF-Import
filter for Calligra Words done. I am available in our
irc-channel #calligra (on <a>irc://irc.freenode.net/calligra</a>
- use e.g. the "Konversation" application to connect to
IRC) as "sebsauer".<br>
<br>
First steps would be;<br>
1. Build Calligra yourself from the sources. See <a href="http://community.kde.org/Calligra/Building" target="_blank">http://community.kde.org/Calligra/Building</a><br>
2. Get a KDE git-account to commit work you do. See <a href="http://techbase.kde.org/Contribute/Get_a_Contributor_Account" target="_blank">http://techbase.kde.org/Contribute/Get_a_Contributor_Account</a><br>
3. Get familar with the area where the work will happen.
That is the filter-framework. We are going to write a
filter-plugin that reads PDF-files using the poppler
library and then generating OpenDocument ODF. The
filter-framework will take care of all the things around
including passing the resulting ODT-file on to Calligra
Words so it's loaded+displayed and the user can edit+save.<br>
<br>
For point 3 you may like to have a look at;<br>
* in our sources at the Text-file importer located at
calligra/filters/words/ascii/AsciiImport.cpp to have an
idea how a filter looks like.<br>
* at the poppler-library. For that install libpoppler (if
not already installed cause it's a pretty standard-library
used by applications like Okular to display PDF-files).
There look at the header-files to have an idea how the API
looks like.<br>
<br>
Once those initial steps are done we would create an
initial filter skeleton for the PDF-import filter. We
could basically copy the AsciiFilter linked above over and
1) change the CMakeLists.txt to link against libpoppler
and 2) change the desktop file so we take PDF-files as
input and not text-files like the text-filter does and 3)
start to use the libpoppler-API to evaluate the
PDF-document.<br>
<br>
So much for the start :-)<br>
</span><br>
</div>
</blockquote>
</div>
<div><i><br>
<br>
</i></div>
<div>First of all thanks a lot for mentoring this project. :-)</div>
<div>I am done with step 1 & 2 and in step 3 I am going
through the code of AsciiImport.cpp and simultaneous giving a
look to some implementations of poppler.</div>
<div><br>
</div>
</blockquote>
<br></div></div>
Very great. Lot of thanks for sharing your progress. For poppler you
may like to have a look at
<a href="http://people.freedesktop.org/%7Eaacid/docs/qt4/" target="_blank">http://people.freedesktop.org/~aacid/docs/qt4/</a> and for
implementations using it
<a href="http://mail.kde.org/pipermail/okular-devel/2011-May/009429.html" target="_blank">http://mail.kde.org/pipermail/okular-devel/2011-May/009429.html</a> (
<a href="http://quickgit.kde.org/index.php?p=okular.git&a=summary" target="_blank">http://quickgit.kde.org/index.php?p=okular.git&a=summary</a> ).<br>
<br>
For the initial skeleton what means the very first code to start a
PDF-importer with I could provide some helping hands to get it done.
We could start with creating a branch in our git and add a
calligra/filters/words/pdfimport directory and then copy over the
Ascii-filter + rename + adapt the CMakeLists.txt + link against
libpoppler and create the first lines of code that use libpoppler to
have a look first code that extracts content from a PDF and writes
it into a ODT. You can ping me at IRC or write a mail to get started
on this :-)<br>
<br>
</div>
<br>_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org" target="_blank">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
<br></blockquote></div><br>