From fourmond at gmail.com Mon Mar 3 14:04:03 2008 From: fourmond at gmail.com (Vincent Fourmond) Date: Mon, 03 Mar 2008 20:04:03 +0100 Subject: [Tioga-users] Fwd: Installing Tioga - compile error In-Reply-To: <47CC48E4.1040004@fedex.com> References: <47C80470.8020504@fedex.com> <2e474d6f0802290729x6173dc40qc974ba924f02c966@mail.gmail.com> <47CC48E4.1040004@fedex.com> Message-ID: <47CC4BA3.7020401@gmail.com> Hello, Christian Rubio wrote: > I tried modifying the > > rbconfig.rb > > as you suggested, in fact I modified all the ones I could find in my > $HOME. I still get the exact same error when I try to compile > > Unfortunately, the machine I am currently working on is not mine and I > can't make any changes to it. You can tweak the default one with the following trick: * have an environment variable RUBYLIB pointing to a directory in your homedir, such as RUBYLIB=$HOME/lib/ruby * copy the standard rbconfig.rb file and dump it there, where you can safely modify it Ruby should find $HOME/lib/ruby/rbconfig.rb before the standard one, and the installation should now work (or at least go somewhat further). You can make sure your modified version of rbconfig.rb is used by adding a puts statement at the beginning of it. Cheers, Vincent From paxton at kitp.ucsb.edu Thu Mar 6 18:52:07 2008 From: paxton at kitp.ucsb.edu (Bill Paxton) Date: Thu, 6 Mar 2008 15:52:07 -0800 Subject: [Tioga-users] Fwd: Converting PDF to EPS References: <47D07EE3.1070903@physics.ucsb.edu> Message-ID: <130915DD-FC83-4613-B9B3-B5A7D1A1661E@kitp.ucsb.edu> Anyone have any suggestions? --Bill Begin forwarded message: > From: "Justin D. R. Steinfadt" > Date: March 6, 2008 3:31:47 PM PST > To: Bill Paxton > Subject: Converting PDF to EPS > > Hey Bill. > > I'm wondering if you have a better way of converting Tioga PDFs to > EPS files. Right now I'm just using the command "convert file.pdf > file.eps" and the results are less than satisfactory. The EPS > figure always comes out kind of blurry. > > Any ideas? > > -Justin > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/tioga-users/attachments/20080306/b35146cc/attachment.html From vincent.fourmond at 9online.fr Thu Mar 6 19:03:40 2008 From: vincent.fourmond at 9online.fr (Vincent Fourmond) Date: Fri, 07 Mar 2008 01:03:40 +0100 Subject: [Tioga-users] Fwd: Converting PDF to EPS In-Reply-To: <130915DD-FC83-4613-B9B3-B5A7D1A1661E@kitp.ucsb.edu> References: <47D07EE3.1070903@physics.ucsb.edu> <130915DD-FC83-4613-B9B3-B5A7D1A1661E@kitp.ucsb.edu> Message-ID: <47D0865C.8010606@9online.fr> Hello Bill Paxton forwarded: >> *From: *"Justin D. R. Steinfadt" > Hey Bill. >> >> I'm wondering if you have a better way of converting Tioga PDFs to EPS >> files. Right now I'm just using the command "convert file.pdf >> file.eps" and the results are less than satisfactory. The EPS figure >> always comes out kind of blurry. If you have xpdf installed, the following should do the job: pdftops -eps -paper match file.pdf I'm not sure the -paper match bit is necessary. Apparently, pdf2ps (from gostscript) also does the job with a correct bounding box: pdf2ps file.pdf file.eps I'm confused: the bit with pdftops does not work while I was sure it worked last time I checked, and the second does work fine. That might depend on the versions installed on your computer, though, so I'm keeping both methods. Just for the record, convert works with bitmap images, so there's no wonder why you don't like the output so much... Cheers, Vincent -- Vincent Fourmond, Doctor in Physics http://vince-debian.blogspot.com/ From vincent.fourmond at 9online.fr Thu Mar 6 19:07:42 2008 From: vincent.fourmond at 9online.fr (Vincent Fourmond) Date: Fri, 07 Mar 2008 01:07:42 +0100 Subject: [Tioga-users] Fwd: Converting PDF to EPS In-Reply-To: <47D0865C.8010606@9online.fr> References: <47D07EE3.1070903@physics.ucsb.edu> <130915DD-FC83-4613-B9B3-B5A7D1A1661E@kitp.ucsb.edu> <47D0865C.8010606@9online.fr> Message-ID: <47D0874E.7020600@9online.fr> Vincent Fourmond wrote: > I'm confused: the bit with pdftops does not work while I was sure it > worked last time I checked, and the second does work fine. That might > depend on the versions installed on your computer, though, so I'm > keeping both methods. Hmmm. That is more complex. Both methods produce a decent bounding box, excepted that, for some reason I don't understand, gv does not take it into account when the file has been produced by pdftops, while it does for pdf2ps. So, both methods should work, if what you're looking for is inclusion into another document. Cheers, Vincent -- Vincent Fourmond, Doctor in Physics http://vince-debian.blogspot.com/ From nomo17k at gmail.com Thu Mar 6 19:17:16 2008 From: nomo17k at gmail.com (Taro Sato) Date: Thu, 6 Mar 2008 16:17:16 -0800 Subject: [Tioga-users] Fwd: Converting PDF to EPS In-Reply-To: <130915DD-FC83-4613-B9B3-B5A7D1A1661E@kitp.ucsb.edu> References: <47D07EE3.1070903@physics.ucsb.edu> <130915DD-FC83-4613-B9B3-B5A7D1A1661E@kitp.ucsb.edu> Message-ID: On Thu, Mar 6, 2008 at 3:52 PM, Bill Paxton wrote: > > I'm wondering if you have a better way of converting Tioga PDFs to EPS > files. Right now I'm just using the command "convert file.pdf file.eps" and > the results are less than satisfactory. The EPS figure always comes out > kind of blurry. Hi there -- I used $ pdftops -eps filename.pdf with success as well. (pdftops is in the xpdf-utils in Debian; I'm not sure in other distros). FYI, in my box: $ pdftops -v pdftops version 3.01 Copyright 1996-2005 Glyph & Cog, LLC Some PDF specific features (like transparency) will get lost but pdftops worked like a charm for me... Taro From jdrs at physics.ucsb.edu Thu Mar 6 19:41:12 2008 From: jdrs at physics.ucsb.edu (Justin D. R. Steinfadt) Date: Thu, 06 Mar 2008 16:41:12 -0800 Subject: [Tioga-users] Fwd: Converting PDF to EPS In-Reply-To: <47D0874E.7020600@9online.fr> References: <47D07EE3.1070903@physics.ucsb.edu> <130915DD-FC83-4613-B9B3-B5A7D1A1661E@kitp.ucsb.edu> <47D0865C.8010606@9online.fr> <47D0874E.7020600@9online.fr> Message-ID: <47D08F28.103@physics.ucsb.edu> So I've tried the pdf2ps command and I'm getting the same results. Comparison between the PDF and the PS documents show an obvious degradation in quality. The PS document looks very blurry/hazy. -Justin Vincent Fourmond wrote: > Vincent Fourmond wrote: > >> I'm confused: the bit with pdftops does not work while I was sure it >> worked last time I checked, and the second does work fine. That might >> depend on the versions installed on your computer, though, so I'm >> keeping both methods. >> > > Hmmm. That is more complex. Both methods produce a decent bounding > box, excepted that, for some reason I don't understand, gv does not take > it into account when the file has been produced by pdftops, while it > does for pdf2ps. > > So, both methods should work, if what you're looking for is inclusion > into another document. > > Cheers, > > Vincent > > From fourmond at gmail.com Fri Mar 7 03:00:06 2008 From: fourmond at gmail.com (Vincent Fourmond) Date: Fri, 7 Mar 2008 09:00:06 +0100 Subject: [Tioga-users] Fwd: Converting PDF to EPS In-Reply-To: <47D08F28.103@physics.ucsb.edu> References: <47D07EE3.1070903@physics.ucsb.edu> <130915DD-FC83-4613-B9B3-B5A7D1A1661E@kitp.ucsb.edu> <47D0865C.8010606@9online.fr> <47D0874E.7020600@9online.fr> <47D08F28.103@physics.ucsb.edu> Message-ID: <2e474d6f0803070000x498f4d9bs1669f41272d83b8e@mail.gmail.com> Hello, On Fri, Mar 7, 2008 at 1:41 AM, Justin D. R. Steinfadt wrote: > So I've tried the pdf2ps command and I'm getting the same results. > > Comparison between the PDF and the PS documents show an obvious > degradation in quality. The PS document looks very blurry/hazy. It really shouldn't. Two questions: * are you using the same tool for looking at both the PDF and EPS files ? xpdf shows graphs reasonably well, while gv's antialiasing really doesn't do a good job there (but then, it's reasonably faster) - I have a strong feeling this might be the problem here [1]; * do you have pixmaps in the PDF file ? Although I don't think they could get degraded, it is a possibility (to make sure this isn't the case, use pdfimages to extract images from the original file, convert it to ps and back to PDF and extract the images again; diff should show no differences). [1]: as far as I know, while there are at least two unrelated open source engines for rendering PDF (ghostscript and xpdf), there is only ghostscript that renders postscript files, so most likely anything that displays postscript files is likely to rely on it. Cheers, Vincent From astanin at calvino.polito.it Fri Mar 7 08:40:00 2008 From: astanin at calvino.polito.it (Sergey Astanin) Date: Fri, 7 Mar 2008 14:40:00 +0100 Subject: [Tioga-users] Fwd: Converting PDF to EPS In-Reply-To: <47D0865C.8010606@9online.fr> References: <47D07EE3.1070903@physics.ucsb.edu> <130915DD-FC83-4613-B9B3-B5A7D1A1661E@kitp.ucsb.edu> <47D0865C.8010606@9online.fr> Message-ID: <20080307144000.7563e39c@polito.it> Fri, 07 Mar 2008 01:03:40 +0100, Vincent Fourmond : > Bill Paxton forwarded: > >> *From: *"Justin D. R. Steinfadt" >> I'm wondering if you have a better way of converting Tioga PDFs to EPS > >> files. Right now I'm just using the command "convert file.pdf > >> file.eps" and the results are less than satisfactory. The EPS figure > >> always comes out kind of blurry. > > If you have xpdf installed, the following should do the job: > > pdftops -eps -paper match file.pdf Some time ago I settled on this script: http://pastebin.com/f3420e11c which runs ghostscript in batch mode and uses -sDEVICE=epswrite The result in gv looks worse than the original tioga-produced PDF in the same gv. However, on print I cannot distinguish the two. For me, pdftops -eps produces EPS with better aliased fonts when viewed in gv, but the page size in gv is wrong (%%Bouniding Box seems to be almost correct, %%HiResBoundingBox is missing). -- Sergey Astanin E-mail: sergey.astanin at polito.it GoogleTalk/Jabber: s.astanin at gmail.com Dipartimento di Matematica Politecnico di Torino From nomo17k at gmail.com Fri Mar 7 09:45:25 2008 From: nomo17k at gmail.com (Taro Sato) Date: Fri, 7 Mar 2008 06:45:25 -0800 Subject: [Tioga-users] Fwd: Converting PDF to EPS In-Reply-To: <20080307144000.7563e39c@polito.it> References: <47D07EE3.1070903@physics.ucsb.edu> <130915DD-FC83-4613-B9B3-B5A7D1A1661E@kitp.ucsb.edu> <47D0865C.8010606@9online.fr> <20080307144000.7563e39c@polito.it> Message-ID: On Fri, Mar 7, 2008 at 5:40 AM, Sergey Astanin wrote: > > > > pdftops -eps -paper match file.pdf > > Some time ago I settled on this script: http://pastebin.com/f3420e11c > which runs ghostscript in batch mode and uses -sDEVICE=epswrite > > The result in gv looks worse than the original tioga-produced PDF in the > same gv. However, on print I cannot distinguish the two. > > For me, pdftops -eps produces EPS with better aliased fonts when viewed > in gv, but the page size in gv is wrong (%%Bouniding Box seems to > be almost correct, %%HiResBoundingBox is missing). This might be off the mark, but is that bounding box problem in eps files something a script like fixbb can fix? http://www.gnuplot.info/scripts/files/fixbb For me, the combo of "pdftops -eps" and "fixbb" produce eps files that can be included perfectly in LaTeX. Taro From jdrs at physics.ucsb.edu Fri Mar 7 13:33:23 2008 From: jdrs at physics.ucsb.edu (Justin D. R. Steinfadt) Date: Fri, 07 Mar 2008 10:33:23 -0800 Subject: [Tioga-users] Fwd: Converting PDF to EPS (KEN SHEN don't delete) In-Reply-To: References: <47D07EE3.1070903@physics.ucsb.edu> <130915DD-FC83-4613-B9B3-B5A7D1A1661E@kitp.ucsb.edu> <47D0865C.8010606@9online.fr> <20080307144000.7563e39c@polito.it> Message-ID: <47D18A73.9050508@physics.ucsb.edu> Thanks everyone for all the helpful advice. I probably should have said this earlier, but I'm running Mac OS 10.5.2. This version of the Mac OS comes with pdf2ps which was giving me the problems I described earlier However, I went and installed xpdf-tools from http://users.phg-online.de/tk/MOSXS/xpdf-tools-3.dmg and now I have pdftops. Running "pdftops -eps file.pdf" creates an EPS file that is perfectly indistinguishable from the original Tioga PDF and ready for insertion into LaTeX documents. Problem solved. -Justin Taro Sato wrote: > On Fri, Mar 7, 2008 at 5:40 AM, Sergey Astanin > wrote: > >> > >> > pdftops -eps -paper match file.pdf >> >> Some time ago I settled on this script: http://pastebin.com/f3420e11c >> which runs ghostscript in batch mode and uses -sDEVICE=epswrite >> >> The result in gv looks worse than the original tioga-produced PDF in the >> same gv. However, on print I cannot distinguish the two. >> >> For me, pdftops -eps produces EPS with better aliased fonts when viewed >> in gv, but the page size in gv is wrong (%%Bouniding Box seems to >> be almost correct, %%HiResBoundingBox is missing). >> > > > This might be off the mark, but is that bounding box problem in eps > files something a script like fixbb can fix? > > http://www.gnuplot.info/scripts/files/fixbb > > For me, the combo of "pdftops -eps" and "fixbb" produce eps files that > can be included perfectly in LaTeX. > > Taro > _______________________________________________ > Tioga-users mailing list > Tioga-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/tioga-users >