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

The output file size is bigger than the original by 15 times after drawing a text to the pdf file. #669

Closed
amirhamdy4IN3 opened this issue Nov 12, 2020 · 3 comments

Comments

@amirhamdy4IN3
Copy link

No description provided.

@Hopding
Copy link
Owner

Hopding commented Nov 14, 2020

Unable to reproduce. Please share create a working example with code and a PDF that I can use to reproduce the issue.

@vlio20
Copy link

vlio20 commented Dec 29, 2020

@Hopding I think that the issue is happening when embedding a large font file.

pdfDoc.registerFontkit(fontkit);
const font = await this.fetchFont();
await pdfDoc.embedFont(font);

by excluding the last line the file size is normal.

Any suggestion on how to overcome this? I am using the Arial font family to support multiple languages (in my app I don't know in advance what would be the input language).

@Hopding
Copy link
Owner

Hopding commented Jan 2, 2021

@amirhamdy4IN3 Please see my response to @vlio20 inhttps://github.com//issues/725.

@Hopding Hopding closed this as completed Jan 2, 2021
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

3 participants