Issue Description
Typically customers desire to embed their font within their PDF so ensure the look & feel of their PDF matches their desired font in all viewing circumstances, even when end-users don't have that font installed on their client-OS. For management of Fonts with respective to PDF you should use the font-extension feature:
http://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v630/fonts
But occasionally customer need to embed the font for size-reasons, or they accidentally choose to not embed the font.
Resolution
When defining your font extension to help define the fonts for your JRXML, you can make a few PDF-specific settings.
a) You can set "PDF Font Name" to provide an alternative font are used in PDF files nstead of the font you are defining for the rest of your reports. The options are one of the PRF Standard 'core' fonts. The PDF Standard contains a few 'core' fonts, these are the families of Helvetica, Courier, Symbol, Times Roman, ZapfDingbats, etc. Thes core fonts don't need to be embedded, they are always inherent to PDF files. This is useful if someone wants their .docx and .html exports to use a specific font like Calibri but are okay with PDF using one of the 'core' fonts instead.
b) You can choose whether to embed the font or not. As described elsewhere if you reference a font within a PDF but do not embed it, then you are relying on the client-OS to provide the font data (the .ttf files for example). If they are not present, the font will be unreadable.
In the below example we're okay with Helvetica being used instead of Arial so we don't need to embed.
You can tell whether or not your PDF has font embedded or not by opening the file in Adobe Acrobat, going into File -> Properties (or Control D) and looking for the word "embedded":
The above two were created using a blank or empty "PDF Font Name" , so Arial is the referenced font, but obviously the lower image shows no embedding. If you viewed this PDF on a machine which did not have Arial font installed at the OS level if would be unreadable, like:
References:
Ref. Case 01468397
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now