pdf viewer - almost complete