On Mon, Jan 23, 2012 at 11:34 AM, Sebastian Sauer <m...@dipe.org> wrote:
> ** > On 01/21/2012 10:24 PM, Panks wrote: > > > On Wed, Dec 28, 2011 at 7:41 PM, Panks <pankaj...@gmail.com> wrote: > > On Mon, Dec 26, 2011 at 2:32 PM, Sebastian Sauer <m...@dipe.org> wrote: > > On 12/26/2011 07:42 AM, Panks wrote: > > Sorry for late reply, College reopening next week so have few > assignments to deal with in this week. > Hello Sebastian :-) > Anyway, I made that skeleton work, now it is showing pdf files in 'Open > Document' window and pushed it to kde git too. > > > Seems I am not anle to see it in our git-repository... did you do those; > > > git checkout master -b filter-words-pdfimport-panks > git commit -a > git push > > steps and did it succeed? > > > I went through that Outputdev file once roughly. Can you please give me > some hint on what should I hit upon/do next? > > > I think we need to have an own poppler OutputDev implementation in a > similar way like at > http://cgit.freedesktop.org/poppler/poppler/tree/utils/HtmlOutputDev.cc<http://cgit.freedesktop.org/poppler/poppler/tree/utils/>. > 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. > > 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. > > 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. > > 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 :-) > > > > Hello, > > I pulled the poppler in /filters/words/pdfimport/poppler > and created files pdfoutputdev.h and pdfoutputdev.cpp > in /filters/words/pdfimport/poppler/utils > > > 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. > > > but while pushing in to kde git I got this error > http://paste.kde.org/178730/ > I tried 'git commit --amend --reset-author' but still I am getting the > same error. > > What is causing problem here? > * > * > > > ! [remote rejected] filter-words-pdfimport-panks -> > filter-words-pdfimport-panks (hook declined) > > hmmmm... I sdee that error the first time :-/ > > The error-message that says; > remote: Audit failure - Commit 9c2731dba9f62db34c2ce96965f12508d5096723 - > End Of Line Style - > filters/words/pdfimport/poppler/test/perf-test-preview-dummy.cc > 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; > > a.h; > #include <QString> > > b.h > #include "a.h" //<== no newline! > > c.h > #include "a.h" > #include <QDebug> > > and then cause of the missing newline at b.h the pre-processor would make > that into; > > #include <QString>#include <QDebug> > > In that particular case it would not compile but imagine that line is an > if-condition like; > if (abc) > def(); > and the last line from a.h would be a comment-line like; > // readme! > and we would end with something like; > // readme! if(abc) > def(); > 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. > > ! [rejected] master -> master (non-fast-forward) > > 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; > > git checkout master > git reset --hard origin/master > > and then update using; > git pull --rebase > > you can merge the changes done in master till you branched your branch via; > git checkout filter-words-pdfimport-panks > git merge master > git push > > > * > * > Pankaj > UG Student * | * Dept. of Computer Science and Engineering > IIT Madras, Chennai, India > > > > Hello Sebastian, > > 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. :( > > > Ah, yes, I was in holidays the first 2 weeks in january and seems I > completely missed your mail. Sorry about that :-( > > > But I guess you are back now :) So I want to continue with the > pdf-filter thing. > > > 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 :) > > Thank you. > > > Nah, thanks you and I hope the feedback abive helps you to progress. If no > please mail me. Thanks in advance. > > Hello Sebastian, I implemented the Pdf filter using Poppler-qt4, as of now it is only for text. It is *working* perfectly fine on pdf files with texts. :) 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. :( 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 * /calligra/words/part/calligrawords* and trying to open some file (even if Blank Document), it crashes. Giving this message in terminal: http://paste.kde.org/398438/ 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. Thank you. * * Pankaj UG Student *|* Dept. of Computer Science and Engineering IIT Madras, Chennai, India
_______________________________________________ calligra-devel mailing list calligra-devel@kde.org https://mail.kde.org/mailman/listinfo/calligra-devel