[prev in list] [next in list] [prev in thread] [next in thread]
List: calligra-devel
Subject: Re: Help regarding project
From: Sebastian Sauer <mail () dipe ! org>
Date: 2011-12-26 9:02:01
Message-ID: 4EF83809.8020102 () dipe ! org
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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 :-)
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 12/26/2011 07:42 AM, Panks wrote:
<blockquote
cite="mid:CAKi+3nqFH-SuO9yifa3V0t6bZUs0GjLey7-L787ogcd9ky1=nA@mail.gmail.com"
type="cite">
<div>Sorry for late reply, College reopening next week so have few
assignments to deal with in this week.</div>
Hello Sebastian :-)
<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>
</blockquote>
<br>
Seems I am not anle to see it in our git-repository... did you do
those;<br>
<br>
git checkout master -b filter-words-pdfimport-panks<br>
git commit -a<br>
git push<br>
<br>
steps and did it succeed?<br>
<br>
<blockquote
cite="mid:CAKi+3nqFH-SuO9yifa3V0t6bZUs0GjLey7-L787ogcd9ky1=nA@mail.gmail.com"
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>
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/">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>
</body>
</html>
_______________________________________________
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic