Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115863 - net-print/cups move from xpdf to poppler, meaning use pdftops with poppler binding
Summary: net-print/cups move from xpdf to poppler, meaning use pdftops with poppler bi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-17 09:42 UTC by Florian Steinel
Modified: 2006-01-09 09:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
test.ps.bz2 (test.ps.bz2,73.53 KB, application/bzip2)
2005-12-17 09:47 UTC, Florian Steinel
Details
BendAusbvert.pdf.bz2 (BendAusbvert.pdf.bz2,117.56 KB, application/bzip2)
2005-12-17 09:48 UTC, Florian Steinel
Details
pdftops.cc (pdftops.cc.new,12.53 KB, application/octet-stream)
2005-12-17 09:53 UTC, Florian Steinel
Details
poppler-0.3.3-r2.ebuild (poppler-0.3.3-r2.ebuild,1.16 KB, text/plain)
2006-01-02 04:14 UTC, Florian Steinel
Details
poppler-0.3.3-utils.patch.bz2 (poppler-0.3.3-utils.patch.bz2,40.30 KB, application/octet-stream)
2006-01-02 04:18 UTC, Florian Steinel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Steinel 2005-12-17 09:42:17 UTC
background:
http://lists.freedesktop.org/archives/poppler/2005-December/001262.html
http://cvs.freedesktop.org/poppler/poppler/utils/

I've compiled pdftops from the poppler cvs against poppler-0.3.3
An testrun of pdftops was successfull
Comment 1 Florian Steinel 2005-12-17 09:47:33 UTC
Created attachment 74950 [details]
test.ps.bz2

testoutput from 
./pdftops -paper A4 -expand BendAusbvert.pdf
Comment 2 Florian Steinel 2005-12-17 09:48:44 UTC
Created attachment 74951 [details]
BendAusbvert.pdf.bz2
Comment 3 Florian Steinel 2005-12-17 09:53:37 UTC
Created attachment 74952 [details]
pdftops.cc

modified pdftops.cc V1.1 from poppler CVS:
- removed include config.h
- replaced include parseargs with sourcecode from parseargs.c

build it with 
g++ -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/poppler -I. -lglib -lpoppler     pdftops.cc   -o pdftops
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-12-20 09:56:06 UTC
Once there is a version of poppler with pdftops in it, we'll make the change.
Comment 5 Florian Steinel 2005-12-25 04:12:48 UTC
just some additional info
ubuntu has a package for poppler-utils:
http://packages.ubuntu.com/breezy/text/poppler-utils
based on poppler 0.4.2
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2005-12-25 10:48:09 UTC
Why does upstream not release a separate package "poppler-utils". DO you maybe have some links?

I am interested in this, because it will solve the regular "cups-always-needs-X" bugs from people who do not have USE=-motif set.
Comment 7 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-12-27 11:13:05 UTC
Fixing
Comment 8 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-12-27 11:13:38 UTC
Fixed in cups-1.1.23-r7
Comment 9 Florian Steinel 2005-12-27 13:04:57 UTC
dang, thanks for the fast help :-)
Please don't get me wrong, but isn't the patch a little to big to stick it unpacked into ebuild file dir?
Also, another thing to note: poppler 0.3.3 (0.3.0 in tree) is the last one which was usable from kde 3.5 / gnome 2.12, because of api change in 0.4.x.
To fix this just add an poppler-0.3.0-r2 ebuild with poppler-utils patch applied.
Comment 10 Giacomo Perale 2005-12-27 13:38:11 UTC
(In reply to comment #9)
> Also, another thing to note: poppler 0.3.3 (0.3.0 in tree) is the last one
> which was usable from kde 3.5 / gnome 2.12, because of api change in 0.4.x.
> To fix this just add an poppler-0.3.0-r2 ebuild with poppler-utils patch
> applied.
> 
I've been using poppler 0.4.x with gnome 2.12 (evince 0.4.0) since the release
Comment 11 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-12-28 08:58:04 UTC
The patch is indeed too big, I missed that.  I'm fixing it.

I personally have no interest in mainting poppler 0.3.x.  If someone else in printing (or who wants to join printing) wants to maintain it, go right ahead.
Comment 12 Florian Steinel 2006-01-01 11:46:02 UTC
(In reply to comment #10)
> I've been using poppler 0.4.x with gnome 2.12 (evince 0.4.0) since the release
right. I ment last stable gnome 2.10.
Comment 13 Florian Steinel 2006-01-02 04:14:17 UTC
Created attachment 75983 [details]
poppler-0.3.3-r2.ebuild

poppler ebuild with poppler utils patch
Comment 14 Florian Steinel 2006-01-02 04:18:10 UTC
Created attachment 75984 [details]
poppler-0.3.3-utils.patch.bz2

The only change needed in the patch set is the deletion of the reference to qt4 in Makefile.am , otherwise the same patch as poppler-0.4.3-utils.patch.gz .
Comment 15 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-01-08 16:41:53 UTC
I left that on purpose, so that once we start enabling qt4, it will still work.
Comment 16 Florian Steinel 2006-01-09 09:15:35 UTC
Hhm, but poppler-0.3.x dons't support qt4 only poppler-0.4.x does.