Plain text to pdf in the format of DP