rudimentary pdf working