Re: [vox-tech] another PS2PDF question [solved]

2005-03-03 Thread Dylan Beaudette
On Monday 28 February 2005 02:45 pm, Jonathan Stickel wrote:
[snip]

 Using my suggested hack, try epstopdf foo.pdf, i.e. allow the default
 compression flag to stay on.  You should get a compressed (smaller)
 file, but the image should still be crisp.

Thanks for the suggestions. My PDF files are beingcreated quite nicely now!

 The best doc I can find is
 http://www.cs.wisc.edu/~ghost/doc/gnu/7.05/Ps2pdf.htm.  This, with trial
 and error, lead me to my suggestion above.  From what I can tell, the
 prepress setting has the same color image encoding options as the
 others, so I don't think the results will be much different.

That website was a good start, however it is lacking information on the more  
finer points of PDF creation. I did a little more digging , and here is what 
I found;

 this website: http://www.texnik.de/hyperref/hyperref.phtml has a lot of nice 
details on PDF creation in general.

Also, it is possible to change the default GS PDF creation behavior here;
/usr/share/gs-gpl/8.01/lib/gs_pdfwr.ps

Cheers!

-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] another PS2PDF question [solved]

2005-02-28 Thread Dylan Beaudette
On Monday 28 February 2005 11:02 am, Dylan Beaudette wrote:
 Hi,

 I have a poster (36 x 48) that is saved in PS format.

 using epstopdf, i can create a PDF file that has the correct page
 dimensions, but the JPEG compression makes the images in the PDF look bad.

 even with the --nocompression flag, PDFs from epstopdf still contain some
 compression artifacts...

 I have tried using ps2pdf14 like this:

 ps2pdf14 -dAutoFilterxxxImages=false -dAutoRotatePages=/None
 -dPDFSETTINGS=/prepress poster.ps

 ... in the past this has produced nice PDFs without compression artifacts,
 but for some reason, when i try to use this with a poster sized PS file,
 the resulting PDF is clipped to about 8.5 x 11 

 any ideas on how to either:
 1. create a PDF from epstopdf without *any* JPEG compression
 or
 2. get a full-sized PDF from ps2pdf14

 ?

 thanks in advance for any ideas... this is a problem that has been driving
 me nuts for a while now...

Well, after a little bit of googling, it looks like there was a rather simple 
solution. Since ps2pdf14 and epstopdf were just sending some pre-defined 
parameters to ghost script, it is possible to setup the gs environment, and 
then call epstopdf:

export GS_OPTIONS=-dPDFSETTINGS=/prepress
epstopdf --nocompress file.eps

This will produce a PDF of the correct page size, without JPEG compression on 
embedded images!

Just for the record, this allows one to create a poster in something like 
Inkscape (http://www.inkscape.org/), an opensource page layout program, and 
then save the file as an EPS. Unfortunately this EPS file is not easily sent 
to a printer (tried opening it in Illustrator 10, and there were numerous 
propblems in terms of printable area, etc.), thus the above method will 
create a JPEG compression-less PDF which can easily be printed from a PDF 
viewer. 

Cheers,

-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] another PS2PDF question [solved]

2005-02-28 Thread Jonathan Stickel
Dylan Beaudette wrote:
Well, after a little bit of googling, it looks like there was a rather simple 
solution. Since ps2pdf14 and epstopdf were just sending some pre-defined 
parameters to ghost script, it is possible to setup the gs environment, and 
then call epstopdf:

export GS_OPTIONS=-dPDFSETTINGS=/prepress
epstopdf --nocompress file.eps
This will produce a PDF of the correct page size, without JPEG compression on 
embedded images!

I don't know if your images are color or not, but your solution is not 
sufficient when dealing with embedded color images (at least for me). 
I've found that I need to edit the epstopdf script.  The two lines 
that deal with GSOPTS need to be changed to:

my $GSOPTS = -dAutoFilterColorImages=false 
-dColorImageFilter=/FlateEncode ;
$GSOPTS = -dEncodeColorImages=false  unless $::opt_compress;

In fact, it is OK to compress the images as long as Flate encoding is 
used rather that JPEG.  The above edit does this.


Just for the record, this allows one to create a poster in something like 
Inkscape (http://www.inkscape.org/), an opensource page layout program, and 
then save the file as an EPS. Unfortunately this EPS file is not easily sent 
to a printer (tried opening it in Illustrator 10, and there were numerous 
propblems in terms of printable area, etc.), thus the above method will 
create a JPEG compression-less PDF which can easily be printed from a PDF 
viewer. 

How does inkscape compare to xfig?
Jonathan
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] another PS2PDF question [solved]

2005-02-28 Thread Dylan Beaudette
On Monday 28 February 2005 12:46 pm, Jonathan Stickel wrote:
 Dylan Beaudette wrote:
  Well, after a little bit of googling, it looks like there was a rather
  simple solution. Since ps2pdf14 and epstopdf were just sending some
  pre-defined parameters to ghost script, it is possible to setup the gs
  environment, and then call epstopdf:
 
  export GS_OPTIONS=-dPDFSETTINGS=/prepress
  epstopdf --nocompress file.eps
 
  This will produce a PDF of the correct page size, without JPEG
  compression on embedded images!

 I don't know if your images are color or not, but your solution is not
 sufficient when dealing with embedded color images (at least for me).
 I've found that I need to edit the epstopdf script.  The two lines
 that deal with GSOPTS need to be changed to:

 my $GSOPTS = -dAutoFilterColorImages=false
 -dColorImageFilter=/FlateEncode ;
 $GSOPTS = -dEncodeColorImages=false  unless $::opt_compress;

 In fact, it is OK to compress the images as long as Flate encoding is
 used rather that JPEG.  The above edit does this.

Ah... Interesting. I wonder how or if the -dPDFSETTINGS=/prepress setting 
and the ones that you suggested are related. Before trying your method my 
images were looking good, with a final PDF size of 6.4Mb. After altering my 
epstopdf script as you suggested, the PDF file is 54Mb, and the images *seem* 
to be the same however it would take a bit of research to find out just 
how different they are. Any suggestions on a good place to search for 
answers?

  Just for the record, this allows one to create a poster in something like
  Inkscape (http://www.inkscape.org/), an opensource page layout program,
  and then save the file as an EPS. Unfortunately this EPS file is not
  easily sent to a printer (tried opening it in Illustrator 10, and there
  were numerous propblems in terms of printable area, etc.), thus the above
  method will create a JPEG compression-less PDF which can easily be
  printed from a PDF viewer.

 How does inkscape compare to xfig?

Well, it is a little easier on the eyes (similar to illustrator), but some 
features are still a little bit lacking... On Debian Testing it gets updated 
fairly often, and with each release gets better and better.


-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] another PS2PDF question [solved]

2005-02-28 Thread Jonathan Stickel
Dylan Beaudette wrote:
On Monday 28 February 2005 12:46 pm, Jonathan Stickel wrote:
Dylan Beaudette wrote:
Well, after a little bit of googling, it looks like there was a rather
simple solution. Since ps2pdf14 and epstopdf were just sending some
pre-defined parameters to ghost script, it is possible to setup the gs
environment, and then call epstopdf:
export GS_OPTIONS=-dPDFSETTINGS=/prepress
epstopdf --nocompress file.eps
This will produce a PDF of the correct page size, without JPEG
compression on embedded images!
I don't know if your images are color or not, but your solution is not
sufficient when dealing with embedded color images (at least for me).
I've found that I need to edit the epstopdf script.  The two lines
that deal with GSOPTS need to be changed to:
my $GSOPTS = -dAutoFilterColorImages=false
-dColorImageFilter=/FlateEncode ;
$GSOPTS = -dEncodeColorImages=false  unless $::opt_compress;
In fact, it is OK to compress the images as long as Flate encoding is
used rather that JPEG.  The above edit does this.

Ah... Interesting. I wonder how or if the -dPDFSETTINGS=/prepress setting 
and the ones that you suggested are related. Before trying your method my 
images were looking good, with a final PDF size of 6.4Mb. After altering my 
epstopdf script as you suggested, the PDF file is 54Mb, and the images *seem* 
to be the same however it would take a bit of research to find out just 
how different they are. Any suggestions on a good place to search for 
answers?



Using my suggested hack, try epstopdf foo.pdf, i.e. allow the default 
compression flag to stay on.  You should get a compressed (smaller) 
file, but the image should still be crisp.

The best doc I can find is 
http://www.cs.wisc.edu/~ghost/doc/gnu/7.05/Ps2pdf.htm.  This, with trial 
and error, lead me to my suggestion above.  From what I can tell, the 
prepress setting has the same color image encoding options as the 
others, so I don't think the results will be much different.

Jonathan
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech