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

[Bug]: PDF Output: Text using OTF fonts is converted into vector graphics, blowing up file size. #7963

Open
carstenschwede opened this issue Feb 4, 2022 · 9 comments

Comments

@carstenschwede
Copy link

Bug description

While exporting to PDF, text that uses OTF fonts is converted to vector graphics, which massively increases the file size.
Converting fonts to TTF instead prevents vectorization, the text is left as text and PDF file size becomes reasonable.

Puppeteer version

13.1.3

Node.js version

12.18.2

npm version

7.0.0-beta.9

What operating system are you seeing the problem on?

macOS

Relevant log output

No response

@carstenschwede carstenschwede changed the title [Bug]: PDF Output: Text using OTF fonts is converted into vector graphics. [Bug]: PDF Output: Text using OTF fonts is converted into vector graphics, blowing up file size. Feb 4, 2022
@nishantlnmiit
Copy link

@carstenschwede , Do we have same issue on linux also ?
I am also facing the same issue - pdf generated by puppeteer is taking size 10x of html-pdf (phantomjs).
Any help would be appreciated.

@stale
Copy link

stale bot commented Jun 23, 2022

We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days.

@stale stale bot added the unconfirmed label Jun 23, 2022
@carstenschwede
Copy link
Author

Bump, still valid.

@nishantlnmiit
Copy link

@carstenschwede , Please update here as its blocker for us as we are using puppeteer but size is too large and its blocker for us to proceed further.
Any help would be appreciated.

@stale stale bot removed the unconfirmed label Jun 24, 2022
@carstenschwede
Copy link
Author

Likely duplicate of #7401.

@stale
Copy link

stale bot commented Aug 30, 2022

We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days.

@stale stale bot added the unconfirmed label Aug 30, 2022
@carstenschwede
Copy link
Author

Bump

@OrKoN
Copy link
Collaborator

OrKoN commented Sep 5, 2022

Please provide a test URL and a test script! Generally, we would likely need to file this to crbug.com as the PDF generation is done completely in the browser.

@carstenschwede
Copy link
Author

carstenschwede commented Sep 6, 2022

Seems like this was reported already in #2440 back in 2018 which led to a Chrome bug report here (still unresolved): https://bugs.chromium.org/p/chromium/issues/detail?id=838168

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

No branches or pull requests

3 participants