1. Are you ready for the Galaxy S20? Here is everything we know so far!

Chinese in PdfDocument

Discussion in 'Android Development' started by Pogo Lin, Aug 22, 2017.

  1. Pogo Lin

    Pogo Lin Lurker
    Thread Starter

    Hi all,
    I need to generate PDF file with Chinese Character. Now I encountered one problem. When I use Canvas.drawText() to draw Chinese Character, the file size of PDF will become larger than English. I found that Android turning Chinese text into Image.
    My question is how to generate Chinese text in PDF file not Chinese Image in PDF.
    Thanks a lot.

    Pogo Lin

    wished 501 likes this.

    1. Download the Forums for Android™ app!


  2. Deleted User

    Deleted User Guest

    A PDF file is an image format, not text.
  3. Pogo Lin

    Pogo Lin Lurker
    Thread Starter

    PDF has text format. If it is text format, you can copy and paste to anther editor. I generate a PDF File in two kinds of text. One is Chinese, the other is English. The English can be copy and paste to anther editor. But Chinese can't . The file size of Chinese is about 3-4 MB and the file size of English is about 70-100KB.

Share This Page