Problem opening file -- Ubuntu 9.04

View: New views
3 Messages — Rating Filter:   Alert me  

Re: Problem opening file -- Ubuntu 9.04

by Ghee Teo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Brett Alton wrote:

> My girlfriend is a real estate agent who I recently switched to Ubuntu
> 9.04 (surprisingly on her request).
>
> She has two websites that seem to be IE6+/Windows only, until I
> noticed that the one website didn't work with Firefox or IE7 and
> Vista...
>
> I kept playing around with the website while in Ubuntu 9.04 and trying
> to get evince to open it, but to no avail.
>
> The only way I could get the website to render the PHP code to create
> the on-the-fly PDF was to have Adobe Reader installed. I installed
> 'acroread' through the Ubuntu partner and it seemed to work.
>
> However, I love evince and want to use evince so I'm wondering how I
> can debug this situation.
>
> I have a feeling that the header sent is 'application/pdf' while
> '/usr/share/mime/application/pdf.xml' only reads:
>
> "<alias type="application/x-pdf"/>
> <alias type="image/pdf"/>"
>
> I tried adding '<alias type="application/pdf"/>' to the list, but
> don't know how to update the mime types database. I'll probably do a
> reboot and see if that helps.
>  
try run mime-update-database

-Ghee
> Let me know what else I can do to debug/test!
>
>  

_______________________________________________
Evince-list mailing list
Evince-list@...
http://mail.gnome.org/mailman/listinfo/evince-list

Problem opening file -- Ubuntu 9.04

by Brett Alton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My girlfriend is a real estate agent who I recently switched to Ubuntu
9.04 (surprisingly on her request).

She has two websites that seem to be IE6+/Windows only, until I
noticed that the one website didn't work with Firefox or IE7 and
Vista...

I kept playing around with the website while in Ubuntu 9.04 and trying
to get evince to open it, but to no avail.

The only way I could get the website to render the PHP code to create
the on-the-fly PDF was to have Adobe Reader installed. I installed
'acroread' through the Ubuntu partner and it seemed to work.

However, I love evince and want to use evince so I'm wondering how I
can debug this situation.

I have a feeling that the header sent is 'application/pdf' while
'/usr/share/mime/application/pdf.xml' only reads:

"<alias type="application/x-pdf"/>
<alias type="image/pdf"/>"

I tried adding '<alias type="application/pdf"/>' to the list, but
don't know how to update the mime types database. I'll probably do a
reboot and see if that helps.

Let me know what else I can do to debug/test!

--
Brett Alton
http://brettalton.com
brett.jr.alton@...
_______________________________________________
Evince-list mailing list
Evince-list@...
http://mail.gnome.org/mailman/listinfo/evince-list

Re: Problem opening file -- Ubuntu 9.04

by Bartosz Kostrzewa-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Brett Alton wrote:
> The only way I could get the website to render the PHP code to create
> the on-the-fly PDF was to have Adobe Reader installed. I installed
> 'acroread' through the Ubuntu partner and it seemed to work.
>
> However, I love evince and want to use evince so I'm wondering how I
> can debug this situation.

Mozplugger has support for embedding evince in firefox. Unfortunately it
can only do so for one instance. (I presume due to the multithreaded
nature of evince). There are also problems when you have evince running
and mozplugger attempts to launch an embedded instance. It works well in
all other situations.

Attached is the mozpluggerrc I use so that mozplugger is only used for
pdfs and postscript files. (well, and dvi because I often read
scientific papers, but for that I use xdvi)

The mimetype you mention is specifically included.

-Bartek

# Configure file for MozPlugger 1.10
# Version: January 4, 2008
#
# Commands which are not installed on your system will not be used.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.


###################
### m4 macros   ###
###################

changequote([,])

### Helpers

#define(ENABLE_HELPERS)

ifdef([ENABLE_HELPERS],[
  define(HELPER,[nokill noisy: $1])
],[
  define(HELPER,[])
])

application/pdf:pdf:PDF file
application/x-pdf:pdf:PDF file
text/pdf:pdf:PDF file
text/x-pdf:pdf:PDF file
        repeat noisy swallow(evince) fill: evince "$file"

application/x-dvi:dvi:DVI file
        repeat swallow(xdvi) fill: xdvi -safer -hush -geometry +9000+9000 "$file"

application/x-postscript:ps:PostScript file
application/postscript:ps:PostScript file
        repeat noisy swallow(evince) fill: evince "$file"
_______________________________________________
Evince-list mailing list
Evince-list@...
http://mail.gnome.org/mailman/listinfo/evince-list