change from pdf to pdf is now also handled via a socket call