On Sun 08 May 05, 12:20 PM, Troy Arnold <[EMAIL PROTECTED]> said: > On Sun, May 08, 2005 at 10:56:54AM -0400, Peter Jay Salzman wrote: > > There's an URL to a pdf download of an article published by Optics Letters. > > I don't think anyone can access this because I'm using a Princeton > > University proxy (and Princeton has a subscription to this journal), but the > > URL is: > > > > http://ol.osa.org/ViewMedia.cfm?id=68550&seq=0 > > > > It doesn't look like a pdf. I tried and tried to get the pdf to download > > and display on Firefox on Linux. I think perhaps it downloads OK but > > Firefox doesn't know what to do with it, since it's a "cfm" file, whatever > > that is, not a pdf file. > > 'cfm' probably means it's a Cold Fusion document,
Aha. OK. Coldfusion is kind of like PHP/ASP? Client side stuff? > but that's irrelevant > to your problem, I think. The problem likely lies with what > content-type headers the document is spitting out before it delivers the > actual pdf. > > A couple of things to try: > 1) HEAD the document and see what headers are being sent. Then, fiddle > with Firefox until it does "the right thing" when it see's those > headers. In Debian, HEAD is part of Perl's LWP package (libwww-perl) > As an aside, it includes other handy tools such as, GET and POST. > > 2) Check your browser cache for an appropriately sized file and > mv/rename it to .pdf. Note, that there may be extraneous stuff > before the actual pdf data. The PDF's I've looked at all start with > the string "%PDF-n.n" where 'n' appears to be a version number. > > 2) try something like wget or curl and see if they're able to download > the document directly. > > Hope that at least provides some ideas for you to try. Awesome suggestions! #2 looked easiest, so I tried it. Turns out FF was not displaying _any_ pdf documents. I dunno how I survived so long without discovering this. Guess I use ps more. Anyhow, now that I know the problem isn't some wierd proxy thing but a tangible and simple "I can't view pdf", I did a Google search. I disabled the pdf plugin for FF and instead had FF use a helper function (xpdf) view the file, and it worked. I hate viewing stuff in a browser window anyhow. You get a smaller viewing rectangle. :) Thanks guys! Pete -- Every theory is killed sooner or later, but if the theory has good in it, that good is embodied and continued in the next theory. -- Albert Einstein GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D _______________________________________________ vox-tech mailing list [email protected] http://lists.lugod.org/mailman/listinfo/vox-tech
