Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 85404

Summary: epstopdf and unpredictable rotations during conversions
Product: Gentoo Linux Reporter: Fabio Rossi <rossi.f>
Component: Current packagesAssignee: Text-Markup Team (OBSOLETE) <text-markup+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: epstopdf.patch
epstopdf.patch

Description Fabio Rossi 2005-03-15 13:03:35 UTC
I have discovered during a lot of conversions from EPS to PDF files that the tool epstopdf included in tetex 2.0.2 uses a particular feature of ghostscript. GS tries to discover the paper orientation by looking the text orientation. In this way **some** PDF files get a wrong rotation respect the original EPS file.

I have found these links where the problem is explained:
http://lists.debian.org/debian-tetex-maint/2002/02/msg00013.html
https://www.stat.math.ethz.ch/pipermail/r-devel/2003-October/027761.html

One solution is to set the ghostscript option GS_OPTIONS="-dAutoRotatePages=/None". The other solution is to patch only the epstopdf executable: in this way the change stays local to one program.

I have attached the patch for epstopdf.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Fabio Rossi 2005-03-15 13:04:11 UTC
Created attachment 53555 [details, diff]
epstopdf.patch
Comment 2 Horst Schirmeier 2005-11-27 16:44:44 UTC
I am observing this behaviour, too; in fact this cost me several hours to pin
down to epstopdf. The attached patch fixes the problem Fabio and I are
observing, contains the necessary subdirectories for patching from src_unpack()
without any hassle, and addresses another flaw in epstopdf that permits to
convert files with whitespace in their names.

Note that this is exactly the way the Debian people fix these problems; please
add this patch to both 2.0.x and 3.0.x app-text/tetex releases, it's been
ignored long enough.
Comment 3 Horst Schirmeier 2005-11-27 16:46:25 UTC
Created attachment 73698 [details, diff]
epstopdf.patch

Patch that addresses both the described problem and the inability to handle
filenames with whitespace in them.
Comment 4 Horst Schirmeier 2005-11-27 16:48:27 UTC
In comment #2 it has to say "... another flaw in epstopdf that does NOT permit
to convert files with whitespace in their names.", of course.
Comment 5 Alexandre Buisse (RETIRED) gentoo-dev 2005-12-02 11:41:04 UTC
tetex-2 and 3 have been bumped to include the last patch. Thanks.