[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#131570: epstopdf: patch to fix rotation problem



Hi,

   gs 6.51 when converting to pdf, tries to discover the paper
orientation by looking to where most of the texts orientation. This
does not occours when using gs 5.10 (potato), so potato version does not
have this problem.

   This autorotate feature is undesired in epstopdf, since it will not
detect that gs has rotated the figure and will use the old boundingbox
without rotating; this will make a bad pdf output.

   The solution is to make epstopdf use a command option to tell gs to
not rotate the figure. The patch is below, please apply it.

   Thanks to Torsten, mantainer of gs, who helped to discover where the
problem was.

   Bye,
    Pedro

--- /usr/bin/epstopdf	Wed Feb  6 10:41:55 2002
+++ /tmp/epstopdf.new	Wed Feb  6 10:42:06 2002
@@ -182,6 +182,7 @@
 ### open output file
 if ($::opt_gs) {
   my $pipe = "$GS -q -sDEVICE=pdfwrite $GSOPTS " .
+          "-dAutoRotatePages=/None " .
           "-sOutputFile=$OutputFilename - -c quit";
   debug "Ghostscript pipe:", $pipe;
   open(OUT,"|$pipe") or error "Cannot open Ghostscript for piped input";




Reply to: