fixed convert to pdf to use stdin/stdout better so that it doesn't need a tmp
file