[poppler] [KPDF-PATCH] Display some pages

Kristian Høgsberg krh at bitplanet.net
Wed Mar 30 23:22:47 PST 2005


Albert Astals Cid wrote:
> We use that method along with PSOutputDev when the user wants to print page 1, 
> 5 and 7 for example.

Hi Albert,

I'm thinking that we won't need this in poppler, it will be easy enough 
to implement this functionality in the viewer.  I imagine the API that 
we'll provide will be something like this:

	psFile = new PopplerPSFile("boom.ps");
	p = doc->getPage(n);
	p->renderToPS(psFile);
	delete p;

with which the "print odd pages" feature should be easy enough to implement.

cheers,
Kristian


More information about the poppler mailing list