Hello,<div><br></div><div>I am working on my proposal for this project. As we all know there are a numerous versions of PDF (around 9 afaik). I'd like to know to which version should we intend to export from Calligra Words, and from which all versions we are trying to import. </div>

<div><br></div><div>I've heard that various versions of pdf remain de facto standard in some regions. I'd like to get suggestions on this topic from Calligra Developers. :-)<br><br><div class="gmail_quote">On Tue, Mar 22, 2011 at 8:08 AM, Jain Basil Aliyas <span dir="ltr"><<a href="mailto:jainbasil@gmail.com">jainbasil@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<div><br><br><div class="gmail_quote"><div><div></div><div class="h5">On Sun, Mar 20, 2011 at 5:55 PM, Pierre <span dir="ltr"><<a href="mailto:pinaraf@pinaraf.info" target="_blank">pinaraf@pinaraf.info</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Sunday 20 March 2011 10:24:48 Jain Basil Aliyas wrote:<br>
> Hi,<br>
><br>
> On Sun, Mar 20, 2011 at 2:04 PM, Boudewijn Rempt <<a href="mailto:boud@valdyas.org" target="_blank">boud@valdyas.org</a>> wrote:<br>
> > On Sunday 20 March 2011 Mar, Pierre Stirnweiss wrote:<br>
> > > Just something to keep in mind:<br>
> > > on windows MSVC, libpoppler is a static library ("because poppler does<br>
> ><br>
> > not<br>
> ><br>
> > > have import/export thing for the core(private) api" dixit pinotree).<br>
> > > Libpoppler is not meant to be used directly. For the karbon pdf filter<br>
> ><br>
> > this<br>
> ><br>
> > > 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<br>
> > > should be exactly the same ones. that solution is not very practical to<br>
> > > implement.<br>
> > ><br>
> > > So if during the course of refactoring, this could be avoided/fixed,<br>
> > > all<br>
> ><br>
> > the<br>
> ><br>
> > > better.<br>
> ><br>
> > Yes, the words pdf import/export plugin should only use poppler-qt4 which<br>
> > is a proper shared library.<br>
><br>
> Okay, I will try to work on poppler-qt4 and investigate its capabilities!<br>
><br>
> > If that doesn't provide enough capabilities, we will probably need to<br>
> > work together with the poppler guys to improve that situation :-).<br>
><br>
</div>> Scribus uses podofo library <<a href="http://podofo.sourceforge.net/about.html" target="_blank">http://podofo.sourceforge.net/about.html</a>> for<br>
<div>> working with PDF. Should I do a comparison study to find out which one will<br>
> suite more for this work?<br>
</div>Huge warning about podofo : they have no binary/source compatibility guarantee.<br>
It could be complicated to maintain a filter using podofo, except if they<br>
improve this.<br>
And even between minor releases, things could break.<br>
For instance : their GetObjectLength got a new mandatory parameter in 0.8.3,<br>
hence this kind of code :<br>
#if (PODOFO_VERSION_MAJOR > 0) || (PODOFO_VERSION_MINOR > 8) ||<br>
(PODOFO_VERSION_PATCH >= 3)<br>
        if (obj->HasStream() && (obj-<br>
>GetObjectLength(PoDoFo::ePdfWriteMode_Compact) > 10000)) {<br>
#else<br>
        if (obj->HasStream() && (obj->GetObjectLength() > 10000)) {<br>
#endif<br>
<br></blockquote></div></div><div>Using podofo will be a bit tedious to maintain the filter, since there exist a problem as qutoed by Pierre. I found some time to work with Poppler-Qt4, and feel that it is okay to proceed with it for our work. I found that Okular's PDF plugin is based on Poppler. </div>

<div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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></div><br><br clear="all"><div class="im"><br>-- <br><b>Jain Basil Aliyas</b><br><i></i><div><b><br></b></div><div>Scribus Developer, Google Summer of Code 2010 Participant.</div><div><a href="http://blog.jainbasil.net" target="_blank">http://blog.jainbasil.net</a></div>


<br>
</div></div>
</blockquote></div><br>Thanks,<br clear="all"><br>-- <br><b>jain basil aliyas.</b><br><div><a href="http://blog.jainbasil.net" target="_blank">http://blog.jainbasil.net</a></div><br>
</div>