Re: [Groff] groff Image Formats

2007-10-21 Thread Werner LEMBERG
> > Frank, you still should file a bug report to the Adobe people > > w.r.t. the incorrect binary section markers... > > And what exactly is the bug? In %%BeginBinary: xxx %%EndBinary the value `xxx' should reflect the number of bytes in the binary section. However, in your EPS file, it'

Re: [Groff] groff Image Formats

2007-10-21 Thread Frank Jahnke
On Sun, 2007-10-21 at 07:41 +0200, Werner LEMBERG wrote: > Frank, you still should file a bug report to the Adobe people > w.r.t. the incorrect binary section markers... And what exactly is the bug? I can get this fixed, since a very good friend of mine led the Acrobat development. Indeed, I w

Re: [Groff] groff Image Formats

2007-10-21 Thread Werner LEMBERG
> | Header comments can be terminated explicitly by an instance of > | %%EndComments, or implicitly by any line that does not begin with > | %X, where X is any printable character except space, tab, or > | newline. > > But A is such a character, so the line begins with %X, and does not > end the

Re: [Groff] groff Image Formats

2007-10-19 Thread Larry Kollar
Gunnar Ritter wrote: > In general, it is rather pointless to request that > groff -Tps accepts images in formats other than EPS > since it would have to convert them internally to > a representation effectively identical to EPS in any > case. Thus, hacking groff to convert images e.g. > using the

Re: [Groff] groff Image Formats

2007-10-19 Thread Frank Jahnke
> I pretty routinely use eps2eps to "clean up" EPS files created by Acrobat or > Adobe Illustrator. This seems often to be required for Ghostscript to be > happy, at least. Maybe this will help with your EPS files as well. I didn't see this until today, since I was not copied on the message. R

Re: [Groff] groff Image Formats

2007-10-19 Thread Werner LEMBERG
> > pinot% sed 9q figure9-acrobat.eps > > %!PS-Adobe-3.1 EPSF-3.0 > > %ADO_DSC_Encoding: Windows Roman > > %%Title: figure9.pdf > > %%Creator: Adobe Acrobat 8.0 > > %%For: Administrator > > %%CreationDate: 10/15/2007, 12:12:48 PM > > %%BoundingBox: 0 0 536 152 > > %%HiResBoundingBox: 0 0 535.5719 1

Re: [Groff] groff Image Formats

2007-10-19 Thread Gunnar Ritter
Frank Jahnke <[EMAIL PROTECTED]> wrote: > pinot% sed 9q figure9-acrobat.eps > %!PS-Adobe-3.1 EPSF-3.0 > %ADO_DSC_Encoding: Windows Roman > %%Title: figure9.pdf > %%Creator: Adobe Acrobat 8.0 > %%For: Administrator > %%CreationDate: 10/15/2007, 12:12:48 PM > %%BoundingBox: 0 0 536 152 > %%HiResBoun

Re: [Groff] groff Image Formats

2007-10-19 Thread Frank Jahnke
On Fri, 2007-10-19 at 09:45 +0100, Ralph Corderoy wrote: > What's the output of > > sed 9q figure9-acrobat.eps > pinot% sed 9q figure9-acrobat.eps %!PS-Adobe-3.1 EPSF-3.0 %ADO_DSC_Encoding: Windows Roman %%Title: figure9.pdf %%Creator: Adobe Acrobat 8.0 %%For: Administrator %%CreationDate:

Re: [Groff] groff Image Formats

2007-10-19 Thread Ralph Corderoy
Hi Frank, > > $ date | groff >foo.ps > > $ ps2epsi foo.ps > > $ egrep -n '^%[!%]' foo.epsi > > Here's the (long) output: > > $ egrep -n '^%[!%]' figure9-acrobat.eps > 1:%!PS-Adobe-3.1 EPSF-3.0 > 3:%%Title: figure9.pdf > 4:%%Creator: Adobe Acrobat 8.0 > 5:%%For: Administrator > 6

Re: [Groff] groff Image Formats

2007-10-18 Thread Keith Marshall
On Thu, 2007-10-18 at 08:45 +0200, Rüdiger Härtel wrote: > > On a barely related note: if anyone knows how to create PDF > > documents which allow in-place commenting with recent versions of > > Adobe Reader, without needing Adobe Distiller, I'd be glad to know. > > flpsed - http://www.ecademix.co

Re: [Groff] groff Image Formats

2007-10-18 Thread Frank Jahnke
On Thu, 2007-10-18 at 08:30 +0200, Werner LEMBERG wrote: > > Here's the (long) output: > > > > 7:%%BoundingBox: 0 0 536 152 > > It contains a correct bounding box, and groff loads this correctly > (this is, I don't get the bounding box error you've reported). I noticed that too. However, when

Re: [Groff] groff Image Formats

2007-10-17 Thread Rüdiger Härtel
Am Mittwoch 17 Oktober 2007 19:57:47 schrieb Keith Marshall: > On Wed, 2007-10-17 at 07:52 +0200, Werner LEMBERG wrote: > > I believe that your question is rather: How can I embed JPG images and > > the like so that they can be extracted as such after conversion of the > > groff PS output file to t

Re: [Groff] groff Image Formats

2007-10-17 Thread Werner LEMBERG
> Here's the (long) output: > > 7:%%BoundingBox: 0 0 536 152 It contains a correct bounding box, and groff loads this correctly (this is, I don't get the bounding box error you've reported). However... > 7987:%%BeginBinary: 1 > 9850:%%EndBinary > 9874:%%BeginBinary: 1 > 18526:%%EndBinary This m

Re: [Groff] groff Image Formats

2007-10-17 Thread Frank Jahnke
On Thu, 2007-10-18 at 00:15 +0100, Ralph Corderoy wrote: > That's fair enough, but might just a few pertinent lines of the EPS file > be sufficient to aid debugging? I'm thinking > > $ date | groff >foo.ps > $ ps2epsi foo.ps > $ egrep -n '^%[!%]' foo.epsi > Here's the (long) ou

Re: [Groff] groff Image Formats

2007-10-17 Thread Ralph Corderoy
Hi Frank, > > Of course, there might be something in Acrobat's output which groff > > doesn't parse correctly. To investigate, I really need an example. > > I'll see what I can do. Forgive my reluctance to send the file that I > know does not work. That's fair enough, but might just a few per

Re: [Groff] groff Image Formats

2007-10-17 Thread David A. Case
> > > Any idea why groff could not accept an eps file generated by > > Acrobat? I would have thought that Adobe's own product would turn > > out proper code. > I pretty routinely use eps2eps to "clean up" EPS files created by Acrobat or Adobe Illustrator. This seems often to be required for Gh

Re: [Groff] groff Image Formats

2007-10-17 Thread Frank Jahnke
On Wed, 2007-10-17 at 20:00 +0200, Werner LEMBERG wrote: > > > Well, an EPS file without a bounding box is invalid. groff is > > > right in rejecting it. > > > > Very odd that Acrobat does this (this is version 8 Professional). > > Of course, there might be something in Acrobat's output which g

Re: [Groff] groff Image Formats

2007-10-17 Thread Werner LEMBERG
> > Well, an EPS file without a bounding box is invalid. groff is > > right in rejecting it. > > Very odd that Acrobat does this (this is version 8 Professional). Of course, there might be something in Acrobat's output which groff doesn't parse correctly. To investigate, I really need an exampl

Re: [Groff] groff Image Formats

2007-10-17 Thread Keith Marshall
On Wed, 2007-10-17 at 07:52 +0200, Werner LEMBERG wrote: > I believe that your question is rather: How can I embed JPG images and > the like so that they can be extracted as such after conversion of the > groff PS output file to the PDF format... > > Keith? I've no idea. My knowledge of PDF is l

Re: [Groff] groff Image Formats

2007-10-17 Thread Frank Jahnke
On Wed, 2007-10-17 at 19:28 +0200, Werner LEMBERG wrote: > Well, an EPS file without a bounding box is invalid. groff is right > in rejecting it. > Very odd that Acrobat does this (this is version 8 Professional). I will have to check whether there are options that I overlooked. Adobe usuall

Re: [Groff] groff Image Formats

2007-10-17 Thread Werner LEMBERG
> The error message was that there was no bounding box found in the .eps > file. That apparently caused groff to ignore the file, as nothing was > in that portion of the file. Well, an EPS file without a bounding box is invalid. groff is right in rejecting it. Werner

Re: [Groff] groff Image Formats

2007-10-17 Thread Frank Jahnke
On Wed, 2007-10-17 at 19:03 +0200, Werner LEMBERG wrote: > > Any idea why groff could not accept an eps file generated by > > Acrobat? I would have thought that Adobe's own product would turn > > out proper code. > > Example, please. The only one I have at the moment is highly proprietary. Let

Re: [Groff] groff Image Formats

2007-10-17 Thread Werner LEMBERG
> Any idea why groff could not accept an eps file generated by > Acrobat? I would have thought that Adobe's own product would turn > out proper code. Example, please. Werner

Re: [Groff] groff Image Formats

2007-10-17 Thread Frank Jahnke
On Wed, 2007-10-17 at 13:39 +0200, Gunnar Ritter wrote: > I am not a graphics expert, but from what I have read, > it is not recommendable to start with JPEG images due > to their lossy compression. For best results, images > should not be converted to JPEG until all processing > has been perform

Re: [Groff] groff Image Formats

2007-10-17 Thread Frank Jahnke
On Wed, 2007-10-17 at 13:10 +0200, Rüdiger Härtel wrote: > > Well, in the most recent example, I used OO.o draw to combine three .jpg > > images into a single file after cropping them with gimp. These came > > from a colleague's CAD program -- I could start with a different format, > > but JPEGs

Re: [Groff] groff Image Formats

2007-10-17 Thread Gunnar Ritter
Frank Jahnke <[EMAIL PROTECTED]> wrote: > Well, in the most recent example, I used OO.o draw to combine three .jpg > images into a single file after cropping them with gimp. These came > from a colleague's CAD program -- I could start with a different format, > but JPEGs are pretty standard. I a

Re: [Groff] groff Image Formats

2007-10-17 Thread Rüdiger Härtel
Am Mittwoch 17 Oktober 2007 11:03:26 schrieb Frank Jahnke: > On Wed, 2007-10-17 at 07:52 +0200, Werner LEMBERG wrote: > > What difficulties do you have? > > Well, in the most recent example, I used OO.o draw to combine three .jpg > images into a single file after cropping them with gimp. These cam

Re: [Groff] groff Image Formats

2007-10-17 Thread Frank Jahnke
On Wed, 2007-10-17 at 07:52 +0200, Werner LEMBERG wrote: > What difficulties do you have? Well, in the most recent example, I used OO.o draw to combine three .jpg images into a single file after cropping them with gimp. These came from a colleague's CAD program -- I could start with a differe

Re: [Groff] groff Image Formats

2007-10-17 Thread Werner LEMBERG
> What image formats can be used with groff? To date, I have used > encapsulated Postscript (.eps) and PSPIC with the -ms macro package, > but I am having increasing difficulty doing the conversion of some > complex images to eps. Are there alternatives that can be used, > like .png, .ps, .jpg o

Re: [Groff] groff Image Formats

2007-10-16 Thread Larry Kollar
Frank Jahnke wrote: What image formats can be used with groff? To date, I have used encapsulated Postscript (.eps) and PSPIC with the -ms macro package, but I am having increasing difficulty doing the conversion of some complex images to eps. Are there alternatives that can be used, like .p