CHANGES: pdf writer and dialog...we need to think about class pdf write.