program FontEmbeddingExample;

{$APPTYPE CONSOLE}

uses

SysUtils, Graphics, Classes, HPDFDoc;

 

var

HPDF: THotPDF;

 

begin

HPDF:= THotPDF.Create( nil );

try

HPDF.AutoLaunch := true; // PDF file will be shown automatically

HPDF.FileName := 'FontEmbeddingExample.pdf';

HPDF.FontEmbedding := true; // Fontit upotetaan

HPDF.StandardFontEmulation := false; // Käytä todellisia asennettuja fonttimittoja

HPDF.BeginDoc; // Create PDF file

HPDF.CurrentPage.SetFont( 'Calibri', [], 12 ); // Valitse kohdefontti

HPDF.CurrentPage.TextOut(10, 10, 0, 'Embedded font output sample'); // Tulosta teksti

HPDF.EndDoc; // Close PDF file

finally

HPDF.Free;

end;

end