PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllSets the style for embedded fonts in the current document.
|
| TxFontEmbeddingType FontEmbedStyle { get; } |
Value
Remarks
FontEmbedStyle sets the style for embedded fonts in the current document. Using font embedding styles, instead of direct font naming, can decrease the size of the generated PDF document. This property is provided for backward compatibility with Library Version 1.x only.
Analogue in new interface: IPDFDocument4::FontEmbedStyle.
Example
Font embed style example
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.FontEmbedStyle := fetFullFont;
{ If we embed all used fonts in document then file size will }
{ be larger but anyone will be able to view this document even }
{ without needed fonts installed in the system. }
PDF.BeginDoc;
PDF.PDFPAGE_SetActiveFont('Verdana', False, False, False, False, 16.0, 0);
PDF.PDFPAGE_TextOut(20, 20, 0.0, 'Text');
PDF.EndDoc;
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.FontEmbedStyle = TxFontEmbeddingType.fetFullFont;
// If we embed all used fonts in document then file size will
// be larger but anyone will be able to view this document even
// without needed fonts installed in the system.
PDF.BeginDoc();
PDF.PDFPAGE_SetActiveFont("Verdana", false, false, false, false, 16.0, 0);
PDF.PDFPAGE_TextOut(20, 20, 0.0, "Text");
PDF.EndDoc();
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->FontEmbedStyle = fetFullFont;
// If we embed all used fonts in document then file size will
// be larger but anyone will be able to view this document even
// without needed fonts installed in the system.
PDF->BeginDoc();
PDF->PDFPAGE_SetActiveFont("Verdana", FALSE, FALSE, FALSE, FALSE, 16.0, 0);
PDF->PDFPAGE_TextOut(20, 20, 0.0, "Text");
PDF->EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.FontEmbedStyle = 0 ' 0 - embed full, 3 - not embed ' If we embed all used fonts in document then file size will ' be larger but anyone will be able to view this document even ' without needed fonts installed in the system. PDF.BeginDoc PDF.PDFPAGE_SetActiveFont "Verdana", False, False, False, False, 16.0, 0 PDF.PDFPAGE_TextOut 20, 20, 0.0, "Text" PDF.EndDoc
See Also
Reference


