logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

pdf viewer: msg#00081

freedesktop.xcb

Subject: pdf viewer


Hey,

Jamey told me that an xcb based pdf viewer would be cool. Poppler is a
(c++) library that parses and render pdf content. Here is xcbpdf :)

I told Jamey that i would not be able to find time to code it within a few
weeks. Finally, i could not resist. I've very quickly code that minimalist
pdf viewer. It's not perfect, in particular, the colors. All the ways I
have tried are quite slow. Right now the speed is correct, but the colors
are ugly.

If you want to test :

1) install poppler :

cvs -d
:pserver:anoncvs-fPHQoQgdw3yvj1b/ULB3Z0B+6BGkLq7r@xxxxxxxxxxxxxxxx:/cvs/poppler
co poppler

2) Compile it with that option to configure :

./configure --enable-xpdf-headers
make
make install

3) Compile xcbpdf :

g++ -g -Wall -o xcbpdf xcbpdf.c `pkg-config --cflags --libs poppler xcb
xcb-aux xcb-image`

yeah, I know, I have to use g++ :)

Finally, you can use the following keys to naviguate :

esc : exit
right arrow : page++
left arrow : page--
page up : page -= 10
page down : page += 10

that's all :)

fell free to hack it. Comment are of course welcome :)

Vincent

Attachment: xcbpdf.c
Description: Text Data

_______________________________________________
Xcb mailing list
Xcb-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@xxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/xcb



Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo