added a pdf viewer demo using pdfjs.
shorter ids
Revert "removed unused method"

This reverts commit 617bb100f04402c0f83577fa934eb295ea617f1e.