generate pdf success but content encode error   how to fix this bug?