1. Download our Official Android App: Forums for Android!

Chinese in PdfDocument

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

  1. Pogo Lin

    Pogo Lin Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Aug 22, 2017

    Aug 22, 2017
    2
    1
    5
    Male
    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
     

    Advertisement

    wished 501 likes this.
  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,896
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,896
    11,572
    1,988
    Male
    Software developer
    South West of England
    A PDF file is an image format, not text.
     
  3. Pogo Lin

    Pogo Lin Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Aug 22, 2017

    Aug 22, 2017
    2
    1
    5
    Male
    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

Loading...