[poppler] [PATCH] glib ps export api change
Kristian Høgsberg
krh at bitplanet.net
Mon May 16 12:42:15 PDT 2005
On Wed, 2005-05-11 at 10:20 +0200, Juerg Billeter wrote:
> Implementing page range print support in evince revealed[1] that
> poppler_ps_file_new in the glib binding lacks parameters for specifying
> the print range, the total number of pages doesn't suffice.
How does this work if we only want to print even pages or odd pages?
Browsing through PSOutputDev.cc it looks like first_page and last_page
are used for two things: figuring out how many pages to print (last_page
- first_page + 1) and calculating the bounding box of those pages. From
a poppler point of view (i.e. wether or not evince is going to support
this) I think we should export API to print an arbitrary subset of pages
to postscript. Not sure what the API should be... Albert suggested
taking a list of pages to print which certainly would work.
Maybe what we should do is to make a poppler_document_print_range(int
first, int last) method, which allows us to add
poppler_document_print_subset(GList *pages) later, when necessary.
cheers,
Kristian
More information about the poppler
mailing list