Search

Atalasoft Knowledge Base

FIX: CJK font rendering in PDFs (Legacy Foxit PdfDecoder)

Administrator
DotImage

Legacy Content NOTICE:

This article is referring to the PdfDecoder using the Foxit engine. Due to changes in PdfDecoder engines, this only applies to DotImage 10.7 and older

Main Article Content

In order to render CJK (Chinese, Japanese, and Korean) fonts that haven't been embedded in the pdf itself, our PdfDecoder requires an external resource.

1. Download and unzip the "fpdfcjk.bin" file, which is attached to this case as fpdfcjk.zip. Keep it in a stable location. Do not rename the file, or else the PdfDecoder won't be able to find it.

2. Before you create a PdfDecoder, set the static property PathToResources to the folder where you are keeping the file.

    PdfDecoder.PathToResources = @"E:\Resources";

Now, whenever you create and use an instance of PdfDecoder, if it needs this resource file in order to rasterize CJK fonts in a PDF, it will know where to look.

Original Article:
Q10333 - FIX: CJK font rendering in PDFs

Details
Last Modified: 6 Years Ago
Last Modified By: Administrator
Type: FIX
Rated 3 stars based on 2 votes.
Article has been viewed 813 times.
Options
Also In This Category