Re: [Podofo-users] podofo vs. libpoppler: What should a pdf-parsing application use?
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
|
From: Craig R. <cr...@po...> - 2007-02-13 04:38:22
|
Martin Schröder wrote:
> 2007/2/13, Craig Ringer <cr...@po...>:
>> I'd be rather interested in your thoughts on the in-progress enhanced
>> qt4 version in svn trunk, then.
>
> Currently I can't compile trunk easily due to a lack of cmake; I'm
> still using SUSE 10.1. I hope that this will work in 10.2.
It builds with QMake too (but we all know how much fun that is). The
CMake binary distribution from
http://www.cmake.org/files/v2.4/cmake-2.4.6-Linux-i386.tar.gz
should work on SuSE 10.1, though.
You will also need Qt 4.2, and while that's also easy to install it's
not the quickest compile in the world. It comes with SuSE 10.2 though.
I've had reports of a conflict with Freetype 1.x if installed where
freetype/freetype.h from freetype1 is found instead of
freetype2/freetype/freetype.h from freetype2, so if you build it and run
into freetype issues, that'll be the problem.
>> I was wondering if there's any chance of a quick overview of how you do
>> that in PdfTeX. It's something I'm *extremely* interested in supporting
>> in PoDoFo once we have a content stream parser, and the more ideas I get
>> and the more approaches to the issue I hear about the better.
>
> Image? We just include a pdf page as a form xobject.
> See write_epdf in
> http://www.tug.org/svn/texlive/trunk/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc?revision=2959&view=markup
Thanks. That seems pretty sane, and is the general way I was thinking of
doing it in Scribus originally (before I jumped on board with PoDoFo). I
just wasn't sure how to handle some of the specifics. If you're happy
with how the form xobject approach works that's what I'm inclined to
implement for PoDoFo.
Guys, how does
PdfObject* PdfDocument::CopyPageAsForm(const PdfPage*)
sound? It'd deep copy all resources to the new document (renumbering
indirect objects in the process), update references in the copied
objects, and generate a form object for the copied page.
--
Craig Ringer
|