<br><div class="gmail_quote">On Mon, Jan 23, 2012 at 11:34 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div bgcolor="#ffffff" text="#000000"><div>
On 01/21/2012 10:24 PM, Panks wrote:
<blockquote type="cite">
<br>
<div>On Wed, Dec 28, 2011 at 7:41 PM, Panks <span><<a href="mailto:pankajxdx@gmail.com" target="_blank">pankajxdx@gmail.com</a>></span>
wrote:<br>
<blockquote>
<div>
<div>On Mon, Dec 26, 2011 at 2:32 PM, Sebastian Sauer <span><<a href="mailto:mail@dipe.org" target="_blank">mail@dipe.org</a>></span>
wrote:<br>
<div>
<blockquote>
<div>
<div> On 12/26/2011 07:42 AM, Panks wrote: </div>
<blockquote type="cite">
<div>
<div>Sorry for late reply, College reopening
next week so have few assignments to deal with
in this week.</div>
</div>
Hello Sebastian :-)
<div>
<div>Anyway, I made that skeleton work, now it
is showing pdf files in 'Open Document' window
and pushed it to kde git too.</div>
</div>
</blockquote>
<br>
Seems I am not anle to see it in our
git-repository... did you do those;
<div><br>
<br>
git checkout master -b
filter-words-pdfimport-panks<br>
</div>
git commit -a<br>
git push<br>
<br>
steps and did it succeed?
<div><br>
<br>
<blockquote type="cite">
<div>I went through that Outputdev file once
roughly. Can you please give me some hint on
what should I hit upon/do next?</div>
</blockquote>
<br>
</div>
I think we need to have an own poppler OutputDev
implementation in a similar way like at <a href="http://cgit.freedesktop.org/poppler/poppler/tree/utils/" target="_blank">http://cgit.freedesktop.org/poppler/poppler/tree/utils/HtmlOutputDev.cc</a>.
We first can add a skeleton for that that does
nothing more but to reimplement the
beginString/endString/addChar methods and then write
them to ODF
<p><span></span></p> in a
similar way the
calligra/filters/words/ascii/AsciiImport.cpp does.<br>
<br>
For that we are maybe forced to get a complete copy
of poppler into e.g.
calligra/filters/words/pdfimport/poppler/* when
upstream doesn't allow to link against the
libpoppler-library. We will see.<br>
<br>
Then we would have the very basic thing already
working; read the strings and put them into a ODT so
the plain-text becomes visible in Words when our
import-filter loads a PDF. As next step we could
then add simple formattings like font-style,
bold/italic/underline/etc and once that is done add
the code to handle images.<br>
<br>
Please make sure that your current code is in our
git so I can help direct on the concrete code-base
with getting this points named above accomplished.
Lot of thanks in advance :-)<br>
<br>
</div>
</blockquote>
</div>
<br>
<div><br>
</div>
</div>
</div>
<div>Hello,</div>
<div><br>
</div>
<div>
<div>I pulled the poppler in
/filters/words/pdfimport/poppler</div>
<div>and created files pdfoutputdev.h and pdfoutputdev.cpp
in /filters/words/pdfimport/poppler/utils</div>
</div>
</blockquote>
</div>
</blockquote>
<br></div>
I think it should be OdfOutputDev.(h|cpp) since what it does is to
output from Poppler (which is for sure PDF) to ODF :) That would be
inline with those HtmlOutputDev.<div><br>
<br>
<blockquote type="cite">
<div>
<blockquote>
<div>
<div>but while pushing in to kde git I got this error</div>
<div><a href="http://paste.kde.org/178730/" target="_blank">http://paste.kde.org/178730/</a></div>
<div>I tried 'git commit --amend --reset-author' but still I
am getting the same error.</div>
<div><br>
</div>
<div>What is causing problem here?</div>
<div>
<div><i><br>
</i></div>
</div>
</div>
</blockquote>
</div>
</blockquote>
<br>
</div><li style="background:none repeat scroll 0% 0% rgb(251,251,251);text-shadow:0px 1px rgb(255,255,255);padding:1px">
<div style="font:1em/1.2em monospace;margin:0pt;padding:0pt;background:none repeat scroll 0% 0% transparent;vertical-align:top">! [remote rejected]
filter-words-pdfimport-panks -> filter-words-pdfimport-panks
(hook declined)</div>
</li>
<br>
hmmmm... I sdee that error the first time :-/<br>
<br>
The error-message that says;<br>
remote: Audit failure - Commit
9c2731dba9f62db34c2ce96965f12508d5096723 - End Of Line Style -
filters/words/pdfimport/poppler/test/perf-test-preview-dummy.cc<br>
sounds as there is some script running at our git-server that checks
for some basic things and aborts your push if the basic things fail.
In that concrete case it looks like your h/cc fles (which btw should
be named h+cpp) are missing a new-line at the end of the file. That
can have very unwanted side-effects. Imagine;<br>
<br>
a.h;<br>
#include <QString><br>
<br>
b.h<br>
#include "a.h" //<== no newline!<br>
<br>
c.h<br>
#include "a.h"<br>
#include <QDebug><br>
<br>
and then cause of the missing newline at b.h the pre-processor would
make that into;<br>
<br>
#include <QString>#include <QDebug><br>
<br>
In that particular case it would not compile but imagine that line
is an if-condition like;<br>
if (abc)<br>
def();<br>
and the last line from a.h would be a comment-line like;<br>
// readme!<br>
and we would end with something like;<br>
// readme! if(abc)<br>
def();<br>
what would compile but just disable the if-condition... that are the
kind of bugs that takes hours over hours to figure out and fix. So,
our KDE git server checks that *every* h+cpp line ends with a
newline to prevent such kind of errors.<br>
<br>
<li style="background:none repeat scroll 0% 0% rgb(247,247,247);text-shadow:0px 1px rgb(255,255,255);padding:1px">
<div style="font:1em/1.2em monospace;margin:0pt;padding:0pt;background:none repeat scroll 0% 0% transparent;vertical-align:top"> ! [rejected] master -> master
(non-fast-forward)</div>
</li>
<br>
Here you try to push something to master rather then to your branch
and since master changed meanwhile the push is aborted. Maybe you
did some change in master rather then in your branch and committed
it by accident? What you can do to reset the state in master (but do
backups of your yet unpushed work in your branch before!!!) is;<br>
<br>
git checkout master<br>
git reset --hard origin/master<br>
<br>
and then update using;<br>
git pull --rebase<br>
<br>
you can merge the changes done in master till you branched your
branch via;<br>
git checkout filter-words-pdfimport-panks<br>
git merge master<br>
git push<div><br>
<br>
<blockquote type="cite">
<div>
<blockquote>
<div>
<div>
<div><i><br>
</i></div>
<div> Pankaj </div>
<div> UG Student <b> | </b> <span>Dept. of Computer
Science and Engineering</span></div>
<div><span>IIT Madras, Chennai, India</span></div>
</div>
</div>
</blockquote>
</div>
<br>
<div><br>
</div>
<div>Hello Sebastian,</div>
<div><br>
</div>
<div>I sent a mail regarding the pdf-filter for calligra word but
you didn't reply and I didn't see any activity also from your
side in mailing lists since last 2-3 weeks. :(</div>
</blockquote>
<br></div>
Ah, yes, I was in holidays the first 2 weeks in january and seems I
completely missed your mail. Sorry about that :-(<div><br>
<br>
<blockquote type="cite">
<div>But I guess you are back now :) So I want to continue with
the pdf-filter thing.</div>
<div><br>
</div>
</blockquote>
<br></div>
Very great to read! This days my time is very limited in that I am
working fulltime on another project what means I have only some
spare time left for Calligra. But neverless I still plan to jump in
and work on the PDF-import filter too as soon as time permits :)<br>
<br>
<blockquote type="cite">
<div>Thank you.</div>
<div><br>
</div>
</blockquote>
<br>
Nah, thanks you and I hope the feedback abive helps you to progress.
If no please mail me. Thanks in advance.<br>
<br>
</div>
</blockquote></div><br><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Hello Sebastian,<div><br></div><div>I implemented the Pdf filter using Poppler-qt4, as of now it is only for text. It is <b>working</b> perfectly fine on pdf files with texts. :)</div>
<div><br></div><div>But there is a problem, I was working on the code which was few days old. When I pulled the master today to merge it to my branch and push it to repo, Calligra Word stopped working. :(</div><div>I guess there is some problem with this new code which I pulled. I compiled the master itself, but even then when I'm launching <b>/calligra/words/part/calligrawords</b> and trying to open some file (even if Blank Document), it crashes. Giving this message in terminal: <a href="http://paste.kde.org/398438/" target="_blank">http://paste.kde.org/398438/</a></div>
<div><br></div><div>Can you please see what is the problem. I tried recompiling my old source( I pulled it some few days back) It was working fine. But the one I fetched today is giving this error.</div></div><div><br></div>
<div>Thank you.</div>
<div><div><i><br><br></i></div><div><font color="#339999" face="georgia, serif">Pankaj</font></div><div><font face="georgia, serif"><font color="#339999">UG Student </font><b><font color="#3333ff">|</font></b><font color="#339999"> </font></font><span style="color:rgb(51,153,153);font-family:georgia,serif">Dept. of Computer Science and Engineering</span></div>
<div><span style="color:rgb(51,153,153);font-family:georgia,serif">IIT Madras, Chennai, India</span></div></div><div><span style="color:rgb(51,153,153);font-family:georgia,serif"><br></span></div>