Skip to main content

Posts

Showing posts from 2010

View pdf document inline in firefox linux

In my bus ticketing web application, tickets are generated in form of pdf file. The problem is firefox (currently version 3.6.6) is not designed to display pdf file in its browser window out of the box, we need to install a plugin. The first obvious option is to install adobe acrobat reader for linux which includes firefox plugin (can be freely downloaded from Adobe web site). However, there are some problems: It is huge! Seems there are some memory leaks (firefox 3,6.3 and acrobat reader 9.3.2), after some time it only displays white blank page. You need to restart firefox to cure it. I don't know whether the problem is in acrobat or firefox. Fortunately, for Ubuntu, we still have another option: Install mozzplugger and xpdf-reader: $ sudo apt-get install mozplugger xpdf Edit mozzplugger configuration file: $ sudo vim /etc/mozpluggerrc Find this line: text/x-pdf:pdf:PDF file Replace the blocks below that line to: repeat noisy swallow(Xpdf) fill: xpdf "$file"