Viewing 10 posts - 1 through 10 (of 38 total)
  • Author
    Posts
  • #9455 Reply

    Alex Black

    Hi, does PlugPDF support chinese, japanese and korean fonts/text? Do I need to do anything special? Thanks! I’m attempting to generate fonts with CJK characters in them using DroidSans fonts eg DroidSansJapanese.ttf

    Alex

    #9459 Reply

    Dr. Plug
    Moderator

    Hello, Alex Black

    Do you want to see a PDF file constructed with a CJK font?

    Actually you can. we supported CJK font and text about just seeing.

    But if you mean a Textfield built in CJK font, we will check.

    Best Regards,
    Dr.Plug

    #9468 Reply

    Alex Black

    Hi, I am trying to render this PDF: https://dl.dropboxusercontent.com/u/13228039/inv10.pdf

    The chinese characters show up if I open the PDF in Chrome on my laptop, but not if I render a JPG in my app using PlugPDF.

    #9469 Reply

    Alex Black

    Also, two follow up questions:

    2) how can I find out which (if any) fonts from the PDF that PlugPDF is unable to find?

    3) How can I use PDFDocument.setFontMap to replace a PDF font with a file found on the android file system? eg HYSMyeongJo-Medium -> NotoSansKR-Regular.otf

    #9473 Reply

    Dr. Plug
    Moderator

    Hello, Alex Black

    Actually in our test, rendering doesn’t seems have a problem.
    So could you give us a Image or video file for easy to understand?

    and about setFontMap method, it is for inserting a text into textfield.
    so there is no way to replace a font already built in.

    Best Regards,
    Dr.Plug

    • This reply was modified 1 year, 4 months ago by  Dr. Plug.
    • This reply was modified 1 year, 4 months ago by  Dr. Plug.
    #9477 Reply

    Alex Black

    Hi,

    1. When you did your test was it on an Android device, rendering the PDF to bitmaps (thats my use case)
    2. I don’t see your response to this question…?
    3. Are you sure? its a static method on PDFDocument… the docs show that its for helping PlugPDF find a font file by name. I managed to get it working.

    Alex

    #9478 Reply

    Alex Black

    Here are screenshots of the rendered PDF:
    http://imgur.com/Au64r5s,afa6z4b#0 (Japanese)
    http://imgur.com/Au64r5s,afa6z4b#1 (English)

    #9484 Reply

    Dr. Plug
    Moderator

    Hi Alex Black,

    Thank you for feedback.

    Actually there was a mistake with me when tested your PDF.

    I’m so sorry for my fault.

    1) Yes you right, we can find the same problem you said.

    but if you used a setFontMap method, you can solve that problem.

    This is an example.

    2) I’m so sorry for my missing.

    But unfortunately, there is no way to find out a missing font.

    3) This is also my fault. Actually you can change a font using setFontMap

    This is an example.

    Best Regards,
    Dr.Plug

    • This reply was modified 1 year, 4 months ago by  Dr. Plug.
    • This reply was modified 1 year, 4 months ago by  Dr. Plug.
    • This reply was modified 1 year, 4 months ago by  Dr. Plug.
    #9489 Reply

    Alex Black

    Hi, thanks for the response.

    1. Ok, is setting a font map the only way to do it?
    2. Would you consider adding something to make it possible for the code using PlugPDF to be aware of missing fonts? It seems like a good thing to know, because if fonts are missing then as we’ve seen here the text is just missing from the screen. I’d like to know that is happening instead of failing silently. I’m imagining something like:

    a) class PDFDocument { public static PdfFontResults checkFonts(String filename) }
    or
    b) class PDFDocument { public PdfFontResults checkFonts() }

    #9493 Reply

    Dr. Plug
    Moderator

    Hi Alex Black,

    Thank you for feedback.
    1. Yes, currently there is no other way.

    2. Our team will consider making that function. So could you wait for a few days?
    After deciding, I’ll let you know the result.

    Best Regards,
    Dr.Plug

Viewing 10 posts - 1 through 10 (of 38 total)
Reply To: CJK Fonts
Your information: