2011/3/24 Stefan Monnier <[email protected]>
> > I am looking at converting a colored pdf to black and white using gs. I
> > have all the proper command to do the conversion however it look like
> when
> > it I convert the ps file back to pdf, it doesn't like the landscape
> > formating.
>
> > Here's the set of commands I use
>
> > Convert from colored pdf to bw
> > gs -sDEVICE=psmono -dNOPAUSE -dBATCH -dSAFER
> -sOutputFile=my-bw.psmy-color.pdf
>
> > To convert ps file back pdf I use something similar to this
> > gs -dBATCH -dNOPAUSE -sOutputFile=my-bw.pdf -sDEVICE=pdfwrite
> > -dAutoRotatePages=/None -c "<< /PageSize [792 612] /Orientation 3 >>
> > setpagedevice" 90 rotate 0 -612 translate -f my-bw.ps
>
> > The original colored pdf files could varie from 1 to 20 pages. All pages
> are
> > in landscape format. When I open the ps file in gv all test and paper
> > orientation look great.
>
> So you're saying that the pdf2ps conversion works right, so you get a PS
> that looks exactly like what you want except you want it in PDF?
> I.e. the problem is that the ps2pdf conversion does something wrong?
>
> If so, what does it do wrong, concretely? Does ps2pdf introduce the
> same problems or are these different?
>
>
>
Ok I think I solve my problem. Look like the ghostscript version which came
with centos (ghostscript version 8.15) had issue to convert a postscript
file which had page in lansdscape format to a pdf.
Once I upgraded to version a newer version all work fine with the same
command as state above...
--
!!!!!
( o o )
--------------oOO----(_)----OOo--------------
Luc Paulin | paulinster(at)gmail.com
_______________________________________________
mlug mailing list
[email protected]
https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca