PDF functionality and ccover fixes