Example di codice
program TextOut;
{$APPTYPE CONSOLE}
uses
SysUtils, Graphics, Classes, HPDFDoc;
var
HPDF: THotPDF;
begin
HPDF := THotPDF.Create ( nil ) ;
try
HPDF.AutoLaunch := true;
HPDF.FileName := 'TextOut.pdf';
HPDF.FontEmbedding := true;
HPDF.StandardFontEmulation := false;
HPDF.BeginDoc;
HPDF.CurrentPage.SetFont('Calibri', [fsBold], 24);
HPDF.CurrentPage.TextOut(10, 10, 0, 'Embedded font output');
HPDF.EndDoc;
finally
HPDF.Free;
end;
end.