[poppler] [PATCH] glib ps export api change
Marco Pesenti Gritti
mpgritti at gmail.com
Tue May 17 01:36:08 PDT 2005
Hi,
what about the attached patch? It seem more convenient than using a
GList... for further convenience we could add an add_page api too, but
that's not necessary yet...
Marco
On 5/16/05, Kristian Høgsberg <krh at bitplanet.net> wrote:
> 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
>
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: poppler_patch
Type: application/octet-stream
Size: 4489 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20050517/775f4b1e/poppler_patch-0001.obj
More information about the poppler
mailing list