Re: [Groff] Groff to pdf/Windows

2014-03-07 Thread Keith Marshall
On 07/03/14 17:35, Deri James wrote: > On Thu 06 Mar 2014 17:24:09 Peter Schaffter wrote: >>> Keith, is there any chance I could add something along these lines >>> to pdfroff if the -T pdf switch is passed to pdfroff? >> >> I'm all for this. pdfmom performs splendidly. Nary a hitch with >> forwa

Re: [Groff] Groff to pdf/Windows

2014-03-07 Thread Deri James
On Thu 06 Mar 2014 17:24:09 Peter Schaffter wrote: > > Keith, is there any chance I could add something along these lines > > to pdfroff if the -T pdf switch is passed to pdfroff? > > I'm all for this. pdfmom performs splendidly. Nary a hitch with > forward references. Non-mom users could reall

Re: [Groff] Groff to pdf/Windows

2014-03-06 Thread Peter Schaffter
Keith/Deri -- On Thu, Mar 06, 2014, Deri James wrote: > If you are using mom the pdfmom command will do the forward > references for you. If you are not using mom the actual command > is:- > > groff -Tpdf -dPDF.EXPORT=1 -z $cmdstring 2>&1 | grep '^.ds' | groff -Tpdf - > $preconv $cmdstring > >

Re: [Groff] Groff to pdf/Windows

2014-03-06 Thread Deri James
On Thu 06 Mar 2014 21:47:15 Ralph Corderoy wrote: > I'm guessing that > > grep '^\.ds' > > might be the intent. > > Cheers, Ralph. Yes, indeed! Thanks.

Re: [Groff] Groff to pdf/Windows

2014-03-06 Thread Ralph Corderoy
Hi Deri, > groff -Tpdf -dPDF.EXPORT=1 -z $cmdstring 2>&1 | > grep '^.ds' | > groff -Tpdf - $preconv $cmdstring I'm guessing that grep '^\.ds' might be the intent. Cheers, Ralph.

Re: [Groff] Groff to pdf/Windows

2014-03-06 Thread Keith Marshall
On 06/03/14 20:08, Deri James wrote: > On Thu 06 Mar 2014 18:08:10 Keith Marshall wrote: >> So, you're assuming that just one preliminary pass is sufficient to >> resolve the cross references? That may not be so, and pdfroff is not so >> naive; it performs at least two such passes, and then as man

Re: [Groff] Groff to pdf/Windows

2014-03-06 Thread Deri James
On Thu 06 Mar 2014 18:08:10 Keith Marshall wrote: > On 06/03/14 16:21, Deri James wrote: > > If you are not using mom the actual command is:- > > > > groff -Tpdf -dPDF.EXPORT=1 -z $cmdstring 2>&1 \ > > > > | grep '^.ds' | groff -Tpdf - $preconv $cmdstring > > So, you're assuming that just one

Re: [Groff] Groff to pdf/Windows

2014-03-06 Thread Keith Marshall
On 06/03/14 16:21, Deri James wrote: > If you are not using mom the actual command is:- > > groff -Tpdf -dPDF.EXPORT=1 -z $cmdstring 2>&1 \ > | grep '^.ds' | groff -Tpdf - $preconv $cmdstring So, you're assuming that just one preliminary pass is sufficient to resolve the cross references? That

Re: [Groff] Groff to pdf/Windows

2014-03-06 Thread Deri James
On Thu 06 Mar 2014 09:21:57 Keith Marshall wrote: > A further advantage of using pdfroff is that it will automatically > handle the multiple groff passes required to resolve pdfmark cross > references, if you use the -mpdfmark macro set. I don't know if -Tpdf > will provide a similar level of supp

Re: [Groff] Groff to pdf/Windows

2014-03-06 Thread Keith Marshall
On 05/03/14 23:39, GregExp wrote: > thank you for your help. > The file I sended was make with > > groff -me -k -t foo > foo.pdf And therein lies your problem: simply naming the file "foo.pdf" does not magically make it a PDF file; it remains an improperly named PS file, (because groff's default

Re: [Groff] Groff to pdf/Windows

2014-03-05 Thread GregExp
Hi Ralph, thank you for your help. The file I sended was make with groff -me -k -t foo > foo.pdf but I got a very good solution with ps2pdf foo.ps Cheers Grégoire Le mardi 04 mars 2014 à 11:05 +, Ralph Corderoy a écrit : > Hi Gregoire, > > > I found myself a way out: > > with the conve

Re: [Groff] Groff to pdf/Windows

2014-03-04 Thread Chad Roseburg
I've found that using ps2pdf14 will produce pdfs that everyone can open. I create a postscript doc with groff then convert to pdf with ps2pdf14. groff -ms -t -Tps myfile.roff >myfile.ps ps2pdf14 myfile.ps Chad On Mon, Mar 3, 2014 at 2:38 PM, GregExp wrote: > I found myself a way out: > with

Re: [Groff] Groff to pdf/Windows

2014-03-04 Thread Tadziu Hoffmann
> > convert foo.pdf foo1.pdf > convert file.ps file.pdf > > > Well, the text ist not very sharp, an not very nice to read. > > But it's better than nothing. > > Did I miss something? Yes. It's a terrible idea. Convert is ImageMagick, a pixel-oriented set of tools. It converts your PS or PDF

Re: [Groff] Groff to pdf/Windows

2014-03-04 Thread Doug McIlroy
> I've been emailing PDF files to Windows and MAC types for years. > [using] ps2pdfwr -dEmbedAllFonts=true -dUseCIEColor=true -dPDFSETTINGS=/printer For normal stuff, including plenty of eqn, pic and PSPIC, I get by with a mere ps2pdf file.ps I'm glad to get the more elaborate recipe in

Re: [Groff] Groff to pdf/Windows

2014-03-04 Thread Ralph Corderoy
Hi Clarke, > I've been using groff to create a PostScript file, then I use the > Linux convert command: > > convert file.ps file.pdf That's ImageMagick, which I always find poorly documented. It uses Ghostscript behind the scenes so Ghostscript's ps2pdf(1) would let you tinker with the op

Re: [Groff] Groff to pdf/Windows

2014-03-04 Thread Ralph Corderoy
Hi Gregoire, > I found myself a way out: > with the convert command you can turn a .pdf to a .pdf > > convert foo.pdf foo1.pdf > > You can read foo1 with adobe reader. Well, the text ist not very > sharp, an not very nice to read. But it's better than nothing. Are you sure foo.pdf isn't a Po

Re: [Groff] Groff to pdf/Windows

2014-03-03 Thread "Robert Thorsby"
On 04/03/14 12:55:48, Clarke Echols wrote: I've been using groff to create a PostScript file, then I use the Linux convert command: convert file.ps file.pdf and I've never had a problem with people reading it when I email it to them, whether they're on mobile devices, PCs, or Macs. D

Re: [Groff] Groff to pdf/Windows

2014-03-03 Thread Clarke Echols
I've been using groff to create a PostScript file, then I use the Linux convert command: convert file.ps file.pdf and I've never had a problem with people reading it when I email it to them, whether they're on mobile devices, PCs, or Macs. Did I miss something? Clarke On 03/03/2014 03:38

Re: [Groff] Groff to pdf/Windows

2014-03-03 Thread GregExp
I found myself a way out: with the convert command you can turn a .pdf to a .pdf convert foo.pdf foo1.pdf You can read foo1 with adobe reader. Well, the text ist not very sharp, an not very nice to read. But it's better than nothing. Cheers Gregoire Babey Le lundi 24 février 2014 à 01:40 +01

[Groff] Groff to pdf/Windows

2014-02-23 Thread GregExp
Hi groffies, I wrote a text with groff, converted it to a pdf. I wanted to send it as a mail attachement to my sister, who works with a Windows system as many people do. She couldn't open it. Is a .pdf not like a .pdf? Thanks gregoire babey