AEM's PDF generation fails for unicode languages like Chinese and Japanese.

Cause

The FOP configuration is to be updated and extra fonts to be added in AEM to support foreign languages that use unicode.

Resolution

  1. Go to http://host:port/crx/de/index.jsp and log in as admin.

  2. Create a fonts folder under /libs/wcm/core/content/pdf. Then create a config under this path /libs/wcm/core/content/pdf/fonts/foconfig.xml based on the conf/fop.xconf mentioned in article [1].

  3. Then upload fonts to that folder using curl. For example:

    curl -u admin: admin myfont.ttf /libs/wcm/core/content/pdf/fonts/myfont.ttf

  4. The config file and font files would be loaded automatically.

[1] https://stackoverflow.com/questions/25895984/apache-fop-displaying-with-sunsim

다운로드

이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책