Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a file with multiple supported languages #725

Closed
vlio20 opened this issue Dec 30, 2020 · 1 comment
Closed

How to create a file with multiple supported languages #725

vlio20 opened this issue Dec 30, 2020 · 1 comment

Comments

@vlio20
Copy link

vlio20 commented Dec 30, 2020

Hi,
In my use-case the pdf document might contain texts from multiple languages. Embedding some unicode font
(like Arial MS) is not an option as it blows the size of the file to many MBs instead of few KB.

When creating a pdf document from a docx file (via google docs for example) which contains multiple languages the file size is very small (few KBs).

What might be the solution for such a use-case?

@Hopding
Copy link
Owner

Hopding commented Jan 2, 2021

Hello @vlio20!

You can subset a font so that the resulting document only includes the data pertaining to glyphs that were actually drawn on a page as opposed to including the entire font and all its glyphs. See #207 (comment). But note that font subsetting isn't bullet-proof, so you may have to fiddle around with the fonts you're using to find one that will work (see #664 and #494 (comment)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants