Did you try viewerjs with pdf in binary field (I mean pdf in database) ?