Giter Club home page Giter Club logo

Comments (19)

jaychoubaby avatar jaychoubaby commented on June 2, 2024 1

I assume you are using docker. Under the directory /usr/share/fonts/opentype/noto/ there should be some fonts. Copy some of your own fonts (Chinese fonts maybe) into that will work. As of issue 974 you might need to delete noto and remake the directory first.

The method has been tested and proven effective. Thank you very much.

Can you share some example fonts? Would love to add this directly to stirling pdf to support

Of course, I'll pack it for you tomorrow.

from stirling-pdf.

gepcel avatar gepcel commented on June 2, 2024 1

I have added chinese now, but will be adding this via some env parameter in future as i cant install all fonts at start due to size issues

adding this via some env parameter is a good idea.

from stirling-pdf.

Frooodle avatar Frooodle commented on June 2, 2024

Can you give a example PDF file i can test this with to resolve?

from stirling-pdf.

jaychoubaby avatar jaychoubaby commented on June 2, 2024

test.docx

This is a Chinese document, converting it to PDF will not display the characters.

Can you give a example PDF file i can test this with to resolve?

from stirling-pdf.

xxy0op avatar xxy0op commented on June 2, 2024

I'm in the same boat. I'm having this problem

from stirling-pdf.

Le1a avatar Le1a commented on June 2, 2024

I also encountered the same problem. It seems that the technology used has weak support for Chinese. I hope it can be fixed as soon as possible. Thank you so much.

from stirling-pdf.

RasaElabram avatar RasaElabram commented on June 2, 2024

I have same issue with Thai language as well.

from stirling-pdf.

gepcel avatar gepcel commented on June 2, 2024

I assume you are using docker. Under the directory /usr/share/fonts/opentype/noto/ there should be some fonts. Copy some of your own fonts (Chinese fonts maybe) into that will work. As of issue 974 you might need to delete noto and remake the directory first.

from stirling-pdf.

jaychoubaby avatar jaychoubaby commented on June 2, 2024

I assume you are using docker. Under the directory /usr/share/fonts/opentype/noto/ there should be some fonts. Copy some of your own fonts (Chinese fonts maybe) into that will work. As of issue 974 you might need to delete noto and remake the directory first.

The method has been tested and proven effective. Thank you very much.

from stirling-pdf.

Le1a avatar Le1a commented on June 2, 2024

I assume you are using docker. Under the directory /usr/share/fonts/opentype/noto/ there should be some fonts. Copy some of your own fonts (Chinese fonts maybe) into that will work. As of issue 974 you might need to delete noto and remake the directory first.

The method has been tested and proven effective. Thank you very much.

May I ask where you found the Chinese font files in the Word document?

from stirling-pdf.

Frooodle avatar Frooodle commented on June 2, 2024

I assume you are using docker. Under the directory /usr/share/fonts/opentype/noto/ there should be some fonts. Copy some of your own fonts (Chinese fonts maybe) into that will work. As of issue 974 you might need to delete noto and remake the directory first.

The method has been tested and proven effective. Thank you very much.

Can you share some example fonts? Would love to add this directly to stirling pdf to support

from stirling-pdf.

gepcel avatar gepcel commented on June 2, 2024

May I ask where you found the Chinese font files in the Word document?

Since it's a word document, most likely created through Windows system. You can just copy those fonts being used from your system(C:\Windows\Fonts) into sterling-pdf docker, only for your own use.

Can you share some example fonts? Would love to add this directly to stirling pdf to support

Maybe to check if this or this fits.

from stirling-pdf.

Frooodle avatar Frooodle commented on June 2, 2024

Does anyone have a example PDF file i can test with?

from stirling-pdf.

Frooodle avatar Frooodle commented on June 2, 2024

I have released a update as well while i wait for test file
If you can try with that

from stirling-pdf.

jaychoubaby avatar jaychoubaby commented on June 2, 2024

我假设你正在使用 docker。该目录下/usr/share/fonts/opentype/noto/应该有一些字体。复制一些你自己的字体(也许是中文字体)进去就可以了。从问题 974开始,您可能需要noto先删除并重新创建目录。

该方法已经过测试并证明是有效的。非常感谢。

你能分享一些示例字体吗?很想将其直接添加到斯特林 pdf 中以支持

当然,我明天就给你打包。

https://drive.google.com/file/d/1aicHFA-3l32evIN79nmiadZBQNRdEZJz/view?usp=sharing

from stirling-pdf.

jaychoubaby avatar jaychoubaby commented on June 2, 2024

Does anyone have a example PDF file i can test with?

阿里开发手册 word版阿里开发手册 word版.docx

from stirling-pdf.

Frooodle avatar Frooodle commented on June 2, 2024

Does anyone have a example PDF file i can test with?

阿里开发手册 word版阿里开发手册 word版.docx

Seems to work now? :)

from stirling-pdf.

Frooodle avatar Frooodle commented on June 2, 2024

I have added chinese now, but will be adding this via some env parameter in future as i cant install all fonts at start due to size issues

from stirling-pdf.

Frooodle avatar Frooodle commented on June 2, 2024

https://github.com/Stirling-Tools/Stirling-PDF/blob/main/exampleYmlFiles/docker-compose-latest.yml#L24

Added a LANGS parameter, this will need to be specified going forward

for example
LANGS: "zh_CN,zh_TW"

from stirling-pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.