Re: [Groff] Get margin of a Postscript file

2012-12-12 Thread Jérôme Frgacic
After some research, I think I have found a possible solution ! :) I discovered the poppler library (in my case, the Glib front end), which permit, inter alia, to obtain the position of each letter in a page. With this information and some other given by this library, I think I can realize a little

Re: [Groff] Get margin of a Postscript file

2012-12-11 Thread Peter Schaffter
Weighing in on this one... On Tue, Dec 11, 2012, Robert Thorsby wrote: > Is it possible that everyone is spending so much time looking at > the trees that they are not seeing the wood? > > Academic institutions love to receive "standard" manuscripts; it has > always been so. Usually they specify

Re: [Groff] Get margin of a Postscript file

2012-12-11 Thread Robert Thorsby
On 11/12/12 18:44:01, ted.hard...@wlandres.net wrote: After all this discussion, it occurs to me that possibly Jérôme's institution (a) want it in Word doc format; (b) when they get it in that format can look into the document settings and verify that their canonical template is present. Nev

Re: [Groff] Get margin of a Postscript file

2012-12-10 Thread Ted Harding
On 11-Dec-2012 00:42:36 Robert Thorsby wrote: > On 11/12/12 11:11:21, Ralph Corderoy wrote: >> > I would think with a little work you could use ImageMagick to >> extract >> > the margin regions from each page, and check each one for the >> presence >> > of pixels. >> >> One could over-print al

Re: [Groff] Get margin of a Postscript file

2012-12-10 Thread Robert Thorsby
On 11/12/12 11:11:21, Ralph Corderoy wrote: > I would think with a little work you could use ImageMagick to extract > the margin regions from each page, and check each one for the presence > of pixels. One could over-print all the pages onto one page. Is it possible that everyone is spendi

Re: [Groff] Get margin of a Postscript file

2012-12-10 Thread Ralph Corderoy
Hi jkl, > I would think with a little work you could use ImageMagick to extract > the margin regions from each page, and check each one for the presence > of pixels. One could over-print all the pages onto one page. man -t bash | pstops 100:0$(printf '+%d' {1..99}) >one.ps to get a feel of

Re: [Groff] Get margin of a Postscript file

2012-12-10 Thread James K. Lowden
On Mon, 10 Dec 2012 20:30:38 + (GMT) Jérôme Frgacic wrote: > Our university ask us to give them our memorandum in MS Word format. > This format is imposed, inter alia, to ensure respect of their > instructions, including precise margins.  I would guess they're using software -- or something

Re: [Groff] Get margin of a Postscript file

2012-12-10 Thread Jérôme Frgacic
On Mon 10 Dec 2012 15:59:55 +0400 Anton Shepelev wrote : > Did  they  publish a document explicitly stating the required margins, or > do they just tell you to use  a style  from a provided .doc or .docx?  In > the latter case, why can't  you  just  open  that  document in MS Word > and look in Pag

Re: [Groff] Get margin of a Postscript file

2012-12-10 Thread Anton Shepelev
Jerome Frgacic: > Here is the context : I'm student in Law and next > year I will have to write a memorandum. Neverthe- > less, this memorandum must be in MS Word format > which displease me greatly. This format is im- > posed to verify if we respect the instructions, > and especially

Re: [Groff] Get margin of a Postscript file

2012-12-09 Thread Ted Harding
On 09-Dec-2012 16:48:31 Jérôme Frgacic wrote: > On Sun, 09 Dec 2012 12:35:10 +, Ralph Corderoy wrote : >> Ghostscript can report the bounding-box for the ink laid on each page. > > Thanks for this trick, it works well for getting left and right margin. :) > Nevertheless, I realized that there

Re: [Groff] Get margin of a Postscript file

2012-12-09 Thread Jérôme Frgacic
On Sun, 09 Dec 2012 12:35:10 +, Ralph Corderoy wrote : > Ghostscript can report the bounding-box for the ink laid on each page. Thanks for this trick, it works well for getting left and right margin. :) Nevertheless, I realized that there is an annoying problem for the top and bottom margin.

[Groff] Get margin of a Postscript file

2012-12-09 Thread Jérôme Frgacic
Thank for your reply. :) Here is the context : I'm student in Law and next year I will have to write a memorandum.  Nevertheless, this memorandum must be in MS Word format which displease me greatly.  This format is imposed to verify if we respect the instructions, and especially the margins. In

Re: [Groff] Get margin of a Postscript file

2012-12-09 Thread Ralph Corderoy
Hi Jérôme, Please reply to the list, not just me. :-) > Here is the context : I'm student in Law and next year I will have to > write a memorandum.  Nevertheless, this memorandum must be in MS Word > format which displease me greatly.  This format is imposed to verify > if we respect the instruc

Re: [Groff] Get margin of a Postscript file

2012-12-09 Thread Ted Harding
On 09-Dec-2012 11:49:29 Ralph Corderoy wrote: > Hi Jérôme, > >> Is there a solution to get the margins of a Postscript document, >> like the page offset value on Groff ? > > Tell us why you want to know and it may help those with suggestions. >:-) > > Cheers, Ralph. And to Ralph's question I wo

Re: [Groff] Get margin of a Postscript file

2012-12-09 Thread Jérôme Frgacic
Thank for your reply. :) Here is the context : I'm student in Law and next year I will have to write a memorandum.  Nevertheless, this memorandum must be in MS Word format which displease me greatly.  This format is imposed to verify if we respect the instructions, and especially the margins. I

Re: [Groff] Get margin of a Postscript file

2012-12-09 Thread Ralph Corderoy
Hi Jérôme, > Is there a solution to get the margins of a Postscript document, like > the page offset value on Groff ? Tell us why you want to know and it may help those with suggestions. :-) Cheers, Ralph.

[Groff] Get margin of a Postscript file

2012-12-09 Thread Jérôme Frgacic
Hello, My question is not directly linked to Groff, but I don't know where to ask it and I think I have better chance to get answers on this mailing list. Is there a solution to get the margins of a Postscript document, like the page offset value on Groff ?