pdf -> json working