program NotEmbeddedFontsExample;

{$APPTYPE CONSOLE}

uses

SysUtils, Graphics, Classes, HPDFDoc;

 

var

HPDF: THotPDF;

 

begin

HPDF:= THotPDF.Create( nil );

try

HPDF.AutoLaunch := true;                                        // فایل PDF به طور خودکار نشان داده خواهد شد

HPDF.FileName := 'NotEmbeddedFontsExample.pdf';

HPDF.FontEmbedding := true;                                    // جاسازی فونت

   HPDF.NotEmbeddedFonts.Add( 'Arial' );                       // Arial will not be embedded

HPDF.BeginDoc;                                                     // ایجاد فایل PDF

HPDF.CurrentPage.SetFont( 'Arial', [], 12 );                     // This font stays external

HPDF.CurrentPage.TextOut(10, 10, 0, 'Arial is excluded from embedding'); // Print text

HPDF.EndDoc;                                                       // بستن فایل PDF

finally

HPDF.Free;

end;

end.