<!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">
Ok, I can provide my code, but I need some help to complete
integrate with Poppler.<br>
<br>
What I did now:<br>
I have two PDFs, one for background and one for the foreground, like
two slides on a overhead projector, the second slide is on top of
the first slide. Sometimes there are two pages, 1 foreground and one
background, sometimes there is only one PDF.<br>
Not all source PDFs are used always, and sometimes PDF Pages are
used twice.<br>
<br>
<br>
My code does the following:<br>
<ul>
<li>Extract the contents stream of the pages</li>
<li>Append the stream from one page to the other page</li>
<ul>
<li>update all references, e.g. images and fonts, because /F1 in
one document is may not the same font than /F1 in the other
document<br>
</li>
</ul>
<li>Write outlines to the document (they have to be created by the
application, because if there are pages inserted / deleted, I
cannot use the original outlines)</li>
<li>Write metadata (Creator, Autor, Creationdate etc.)</li>
<li>Writeout the document to a file</li>
<ul>
<li>Create new XREF table</li>
<li>compress the contents of the pages with GZ</li>
</ul>
</ul>
<br>
<br>
My application is mostly written in C++, but I use GTK (no
discussion about this combination;-)).<br>
<br>
So I first used the GLib frontend, but there I had problems with
searching, and I cannot access the underlying poppler objects.<br>
<br>
<br>
The Question is now which frontend I should use.<br>
<br>
<br>
In my opinion, the best solution is may to create a new frontend,
e.g. a PDF-editing frontend?<br>
<br>
Because then it's possible to change some behaviour, and add other
things, like:<br>
<ul>
<li>Edit text within PDF documents (not add, add is no problem
with merging)</li>
<li>Delete objects from a PDF (e.g. select a rectangle and delete
all objects within this rectangle)</li>
<li>Copy objects</li>
</ul>
Currently there is no easy to use application which support these 3
operations for Linux.<br>
<br>
If poppler would have such a frontend I'll may append this
functionality to Xournal++ (in the future, not now).<br>
<br>
<br>
What do you think about this?<br>
<br>
<br>
<br>
<br>
Andreas<br>
<br>
Am 11.05.2011 21:43, schrieb Albert Astals Cid:
<blockquote cite="mid:201105112043.45377.aacid@kde.org" type="cite">
<pre wrap="">A Wednesday, May 11, 2011, Andreas Butti va escriure:
</pre>
<blockquote type="cite">
<pre wrap="">Hello everybody
</pre>
</blockquote>
<pre wrap="">
Hi
</pre>
<blockquote type="cite">
<pre wrap="">
I'm working on a new Xournal version (Xournal++, not yet present on a
webpage, only in the SVN).
I used Poppler to display PDF and also for PDF export, to implement the
PDF export (merging two PDFs together) I access Poppler without any
frontend.
I'm working on Ubuntu, which contain all necessary headers, but other
distributions don't.
Now there is a discussion if it's allowed to access Poppler without
frontend, or not.
I thought it should be allowed, because on the poppler Wiki are also two
projects listed which access poppler without frontent,
But now I need a clear answer if it's allowed or not, and if not if
there is another way for me to implement this without breaking any rules.
</pre>
</blockquote>
<pre wrap="">
It is not encouraged since we reserve the right to change the API (and do so)
at any release (minor versions included) while our API in the frontends is
much more stable.
If you tell us what you are missing from the public frontend API we might add
it, or you might even contribute the code you have that uses the internal API
so we add it to our frontend ;-)
Albert
</pre>
<blockquote type="cite">
<pre wrap="">
Thank you for the answer.
Andreas
_______________________________________________
poppler mailing list
<a class="moz-txt-link-abbreviated" href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/poppler">http://lists.freedesktop.org/mailman/listinfo/poppler</a>
</pre>
</blockquote>
<pre wrap="">_______________________________________________
poppler mailing list
<a class="moz-txt-link-abbreviated" href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/poppler">http://lists.freedesktop.org/mailman/listinfo/poppler</a>
</pre>
</blockquote>
</body>
</html>