Fake Akrobat browser plugin

So. for some reason, the danish tax authorities (Skat) has started requiring Adobe Acrobat for being able to see pdf files to work around a bug with handling of temporary files on Windows8 and shared computers and such.

Luckily there is a couple of easy workarounds. Like modifying the Javascript to check things at runtime using some browser specific addons. Or just do it like I did and write a actual browserplugin. I cheated and used QtBrowserPlugin. Then my actual code was a couple of lines. Want to check it out? Look here: http://quickgit.kde.org/?p=scratch%2Fsune%2Ffakeacrobat.git. It just does enough to ensure the test succeeds. Work in: iceweasel and arora. For some reason, it doesn’t work in konqueror/webkit nor in konqueror/khtml.

2 comments on “Fake Akrobat browser plugin
  1. Mikkel says:

    Thanks for writing the browserplugin, I need it myself! I am running Debian Wheezy AMD64 and Im trying to compile the plugin. I have installed qt4 and libqt4-dev-bin. But when running qmake && make I get the following error:
    fakeacrobat.cpp:27:19: fatal error: QObject: Ingen sådan fil eller filkatalog
    Might this be caused by missing dependencies or something wrong with my PATH?
    Hope you can help so I can see my “Forskudsopgørelse” ;-)