|
program NotEmbeddedFontsExample; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc;
var HPDF: THotPDF;
begin HPDF:= THotPDF.Create( nil ); try HPDF.AutoLaunch := true; // O arquivo PDF será mostrado automaticamente HPDF.FileName := 'NotEmbeddedFontsExample.pdf'; HPDF.FontEmbedding := true; // Embed fonts by default HPDF.NotEmbeddedFonts.Add( 'Arial' ); // Arial will not be embedded HPDF.BeginDoc; // Criar o arquivo PDF HPDF.CurrentPage.SetFont( 'Arial', [], 12 ); // This font stays external HPDF.CurrentPage.TextOut(10, 10, 0, 'Arial está excluída da incorporação'); // Imprimir o texto HPDF.EndDoc; // Fechar o arquivo PDF finally HPDF.Free; end; end. |