The main pdfjs wrapper for Beagle