fix adding coptlistener in pdf/djvu reader