Re: [Groff] gropdf and pdfroff

2011-07-28 Thread Deri James
On Thursday 28 Jul 2011 21:21:33 Peter Schaffter wrote: > On Thu, Jul 28, 2011, Ralph Corderoy wrote: > > 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 sm

Re: [Groff] gropdf and pdfroff

2011-07-28 Thread Peter Schaffter
On Thu, Jul 28, 2011, Ralph Corderoy wrote: > 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? This is essentially what I concluded when w

Re: [Groff] gropdf and pdfroff

2011-07-28 Thread Pierre-Jean
Deri James wrote: > Another good programmer's rule says that the best place to do something is > "as > soon as you can". Which places it in the domain of the document creator > (gropdf). It's not really a radical new feature, more exposing an api to add > pages in a non-linear fashion. > Hel

Re: [Groff] gropdf and pdfroff

2011-07-28 Thread Deri James
On Thursday 28 Jul 2011 18:02:32 Ralph Corderoy wrote: > 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

Re: [Groff] gropdf and pdfroff

2011-07-28 Thread Ralph Corderoy
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 > on

[Groff] gropdf and pdfroff

2011-07-28 Thread Deri James
pdfroff is a very clever and useful utility in groff and I'd appreciate advice on how best to integrate it into gropdf. Currently gropdf includes its own pdfmark macros which are intended as a drop in replacement for pdfmark.tmac, in fact most of the macros are based on Keith Marshall's work. P

Re: [Groff] gropdf finally added to groff

2011-07-28 Thread Deri James
On Tuesday 26 Jul 2011 18:17:17 Werner LEMBERG wrote: > Folks, > > > I've finally found some time to add Deri's gropdf output device to > groff, now in the CVS repository. Please test! There are still some > minor issues (mainly related to packaging), but besides that it seems > to work well. >