Added pdf print support code