bdb2 convert to pdf