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 do you outline fonts? #139

Open
dagumak opened this issue Jul 25, 2019 · 3 comments
Open

How do you outline fonts? #139

dagumak opened this issue Jul 25, 2019 · 3 comments

Comments

@dagumak
Copy link

dagumak commented Jul 25, 2019

If I print an HTML with Chrome and save as a pdf, it outlines the fonts so then rendering it in something lie Adobe Illustrator then it doesn't need a font. This would also allow print shops to easily print PDFs. Is there a way to outline the fonts using this library?

@Zulko
Copy link
Member

Zulko commented Jul 25, 2019

ReLaXed uses Chrome (actually, Chromium) to generate PDFs and yes I believe the fonts are embedded. Did you experience a case where it wasn't the case?

@dagumak
Copy link
Author

dagumak commented Jul 25, 2019

ReLaXed uses Chrome (actually, Chromium) to generate PDFs and yes I believe the fonts are embedded. Did you experience a case where it wasn't the case?

I opened the demo pdfs in Adobe Illustrator and it doesn't look like the fonts are outlined.

@DanielRuf
Copy link
Contributor

Outlining is converting the fonts to (vector) shapes.
Embedding is different.

I see no option for this in Puppeteer: https://github.com/GoogleChrome/puppeteer/blob/v1.19.0/docs/api.md#pagepdfoptions

I guess it depends a bit on PostScript support and other things.
This is probably an issue in Puppeteer / Chromium.

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