0

We have some Visualforce pages that are rendered as PDF. The PDF is being printed by a Third Party Printing Company.

The font we are using is either Sans-serif or Arial Unicode MS. We need to embed these fonts in the PDF so that there is no problem with the printing company due to missing fonts and whatnot. From what I saw on the internet, we can use content type for this, but it didn't work for me. Do we have a solution for this?

0

No. Server-side PDF generation does not support custom fonts. This is specified in the documentation.

Web fonts aren’t supported when the page is rendered as a PDF file. You can use web fonts in your Visualforce pages when they’re rendered normally.

2
  • But these are not custom fonts. These fonts are supported by salesforce. I need to embed them in the PDF. Dec 10 '20 at 8:29
  • @vedantgupta You can't embed fonts. If you style the elements using the normal names (e.g. sans-serif) it should work correctly.
    – sfdcfox
    Dec 10 '20 at 8:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.