Re: Failure of evince to open a PDF.

2016-02-07 Thread Gene Heskett
On Sunday 07 February 2016 07:28:54 Wilko Fokken wrote:

> On Sat, Jan 30, 2016 at 01:26:30PM -0800, pe...@easthope.ca wrote:
> > Updated a jessie system this morning.  Then tried evince.
> >
> >   evince afile.pdf
> >
> >   A window entitled "Document Viewer" with this notice popped open.
> > "Unable to open document "file:///home/peter/afile.pdf".
> > File type HTML document (text/html) is not supported
>
> (Are your access rights ok?)

If he has just now downloaded "afile.pdf", I have run into that too, some 
sites are new feeding you a dummy html file when you click on the 
download link and save-as.  I've had to go back to the site and use a 
different method, that small html file, when a winderz machine execs it, 
gets the real file. Its a PITA, they are doing that I presume to inflate 
the hit count.  Those sites should be named and shamed IMO.

How about we start that list with CBSNEWS.com and their use of a cache 
server that calls itself "varnish cache server"  They put up a url to a 
story thats north of 220 chars long, but the cache server is setup to 
reject any request over 80 chars long.  So you register the hit, but 
they don't have to pay for the bandwidth to serve an interesting news 
tidbit because all we see is "request entity too long, along with a guru 
number that changes when you hit the f5 key to see if it will reload and 
work.  Don't bother, it won't.  Googling for it gets 280,000 hits.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: Failure of evince to open a PDF.

2016-02-07 Thread Wilko Fokken
On Sat, Jan 30, 2016 at 01:26:30PM -0800, pe...@easthope.ca wrote:
> Updated a jessie system this morning.  Then tried evince.
> 
>   evince afile.pdf
> 
>   A window entitled "Document Viewer" with this notice popped open.
> "Unable to open document "file:///home/peter/afile.pdf".
> File type HTML document (text/html) is not supported

(Are your access rights ok?)



Re: Failure of evince to open a PDF.

2016-02-07 Thread Gene Heskett
On Sunday 07 February 2016 09:43:05 Gene Heskett wrote:

> On Sunday 07 February 2016 07:28:54 Wilko Fokken wrote:
> > On Sat, Jan 30, 2016 at 01:26:30PM -0800, pe...@easthope.ca wrote:
> > > Updated a jessie system this morning.  Then tried evince.
> > >
> > >   evince afile.pdf
> > >
> > >   A window entitled "Document Viewer" with this notice popped
> > > open. "Unable to open document "file:///home/peter/afile.pdf".
> > > File type HTML document (text/html) is not supported
> >
> > (Are your access rights ok?)
>
> If he has just now downloaded "afile.pdf", I have run into that too,
> some sites are new feeding you a dummy html file when you click on the
> download link and save-as.  I've had to go back to the site and use a
> different method, that small html file, when a winderz machine execs
> it, gets the real file. Its a PITA, they are doing that I presume to
> inflate the hit count.  Those sites should be named and shamed IMO.
>
> How about we start that list with CBSNEWS.com and their use of a cache
> server that calls itself "varnish cache server"  They put up a url to
> a story thats north of 220 chars long, but the cache server is setup
> to reject any request over 80 chars long.  So you register the hit,
> but they don't have to pay for the bandwidth to serve an interesting
> news tidbit because all we see is "request entity too long, along with
> a guru number that changes when you hit the f5 key to see if it will
> reload and work.  Don't bother, it won't.  Googling for it gets
> 280,000 hits.
>
> Cheers, Gene Heskett

But I did learn something from the googling, call up iceweasels prefs, 
find the cookies, and nuke any and all cbs related cookies. And now it 
seems to be working, about 100x faster than it has in yonks.

So there is one possible fix for a very aggravating "feature" somebody 
has invented.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: Failure of evince to open a PDF.

2016-01-30 Thread jdd

Le 30/01/2016 22:26, pe...@easthope.ca a écrit :

Updated a jessie system this morning.  Then tried evince.

   evince afile.pdf

   A window entitled "Document Viewer" with this notice popped open.
"Unable to open document "file:///home/peter/afile.pdf".
File type HTML document (text/html) is not supported

OK, but the command is not to open an HTML.  It is "evince afile.pdf".

Does anyone have an explanation or solution?

Thanks,   ... Peter E.

may be an html document embeded in the pdf? or an html page with the 
wrong extension?


jdd



Re: Failure of evince to open a PDF.

2016-01-30 Thread Patrick Bartek
On Sat, 30 Jan 2016, pe...@easthope.ca wrote:

> Updated a jessie system this morning.  Then tried evince.
> 
>   evince afile.pdf
> 
>   A window entitled "Document Viewer" with this notice popped open.
> "Unable to open document "file:///home/peter/afile.pdf".
> File type HTML document (text/html) is not supported
> 
> OK, but the command is not to open an HTML.  It is "evince afile.pdf".
> 
> Does anyone have an explanation or solution?

Could be afile.pdf is really mislabeled and is an HTML file.  Will it
open in a browser?  Or open it in a text editor and look at the code.
HTML code will say so in the very first few lines.

B



Re: Failure of evince to open a PDF.

2016-01-30 Thread David Wright
On Sat 30 Jan 2016 at 13:26:30 (-0800), pe...@easthope.ca wrote:
> Updated a jessie system this morning.  Then tried evince.
> 
>   evince afile.pdf
> 
>   A window entitled "Document Viewer" with this notice popped open.
> "Unable to open document "file:///home/peter/afile.pdf".
> File type HTML document (text/html) is not supported
> 
> OK, but the command is not to open an HTML.  It is "evince afile.pdf".
> 
> Does anyone have an explanation or solution?

Frequently a web link labelled as being a PDF turns out to go to
another web page where you can/may be able to download the actual PDF.

I get caught out by this when I paste the link into a wget command+,
download the file afile.pdf, and then try to open it in mc. The
response is

  afile.pdf: HTML document, UTF-8 Unicode text, with very long lines

which, of course, it is.

+ wget gets the metadata, so the download obtains its correct timestamp.

Cheers,
David.