Language:


Styles - Pdf Card

If you will use a Style in a Form that you will print to pdf files, you should also fill in the fields on the 'Pdf' card, especially if the Style uses a non-standard font. The standard fonts are Times, Helvetica, Courier, Symbol and Zapf Dingbats. Most pdf readers are able to read and print these fonts. If the Style uses a non-standard font, you should use the 'Pdf' card to ensure that the font will be embedded in pdf files, so that those files have the correct appearance when opened and printed by pdf readers. This is particularly important for barcode fonts.

You can create pdf files from a Standard application using two methods:

  1. Open a record, click the Printer icon and, when the printer dialogue box appears, choose to print to pdf. In this case, the pdf will be generated by the operating system, which embeds fonts as necessary.

  2. Click the [Documents] button in the Master Control panel, double-click a document in the list and choose 'Pdf' as the Media option in the specification window.

    In this case, the pdf will be generated by the Standard application, which will embed fonts following the instructions on the 'Pdf' cards of the relevant Style records.

    If a Pdf file is generated by your Standard application and you find that the Times font has been used where you are expecting a different font, then it is likely that you need to use the 'Pdf' card in the relevant Style record to embed the intended font in the Pdf file.

Font File
Paste Special    Opens the standard 'Open File' dialogue that you can use to locate the font file
Use 'Paste Special' to specify the path to the font file.

The font file must be an OpenType font with the .ttf extension or a Type 1 Post Script font with the .afm or .pfa extensions. Other font formats are not supported.

Pdf Built-in font
Paste Special    Choices of possible entries
If you want to embed one of the standard fonts in pdf files, specify that font here. This will usually be because the Style uses one of the standard fonts and you want to embed that font in pdf files. This will help ensure the Style prints as you expect, but will also slightly increase the size of the pdf file.

If you specify both a Pdf Built-in font and a Font File in the field above, the Pdf Built-in font will be used.

Pdf Size
The font size in points.

Styles
Select one of the available style types.
If you specify a font on the 'Pdf' card, you should also specify a Mac Font. When you use the Style in a Form design and print the document to a printer or preview it to screen, the Mac Font will be used. The Pdf font will only be visible in pdf files.

Note that the .ttf extension does not guarantee that the font is an OpenType font, as this extension is also used with TrueType fonts. You can confirm the font format, using the Font Book application. If there is still a problem, the Pdf font will not be visible in a pdf file and will be replaced by Times), check the hansa.log file for error messages.

If you will use a Form to create pdf files, as well as specifying the fonts that will be embedded as described here, you should also specify a PDF Code page for that Form and, if appropriate, specify that pdf files will be created in landscape format. Please refer here for details.

---

In this chapter:

Go back to home pages for: