[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] gropdf and pdfroff
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] gropdf and pdfroff |
Date: |
Thu, 28 Jul 2011 18:02:32 +0100 |
Hi Deri,
> In a pdf every page is an object and the page order is given in an
> array called "kids" which is an attribute of the "pages" object. So to
> reorder the pages in a pdf is simply a case of reordering this array
> before it is written to the file. Currently I just push each new page
> onto the end of the kids array, but it might be better to introduce a
> pair of "\X pdf:" commands which alter the insertion point for all
> following pages. Something along the lines of:-
>
> \X pdf: pagename <name> \" name a location in the file
> \X pdf: switchtopage (before|after) <name> \" start inserting pages
> before/after the named page.
Would it be better to leave the re-ordering to external utilities, e.g.
the pdftk package
http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
on the basis of do one small thing and do it well?
Cheers, Ralph.
- [Groff] gropdf finally added to groff, Werner LEMBERG, 2011/07/26
- Re: [Groff] gropdf finally added to groff, Deri James, 2011/07/28
- [Groff] gropdf and pdfroff, Deri James, 2011/07/28
- Re: [Groff] gropdf and pdfroff,
Ralph Corderoy <=
- Re: [Groff] gropdf and pdfroff, Deri James, 2011/07/28
- Re: [Groff] gropdf and pdfroff, Pierre-Jean, 2011/07/28
- Re: [Groff] gropdf and pdfroff, Anton, 2011/07/29
- Re: [Groff] gropdf and pdfroff, Ralph Corderoy, 2011/07/29
- Re: [Groff] gropdf and pdfroff, Anton Shepelev, 2011/07/29
- Re: [Groff] gropdf and pdfroff, Keith Marshall, 2011/07/30
- Re: [Groff] gropdf and pdfroff, Werner LEMBERG, 2011/07/29
- Re: [Groff] gropdf and pdfroff, Mike Bianchi, 2011/07/29
- Re: [Groff] gropdf and pdfroff, Werner LEMBERG, 2011/07/29
- Re: [Groff] gropdf and pdfroff, Mike Bianchi, 2011/07/29