|
program PDFInfo; {$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.ShowInfo := true; // Incluir informações no documento HPDF.FileName := 'Hello world.pdf'; HPDF.Author := 'http://www.loslab.com/'; // Definir informações sobre o autor HPDF.Subject := 'HotPDF console information demo'; // Definir o assunto do documento HPDF.Title := 'Information Demo'; // Definir o título do documento HPDF.BeginDoc; // Criar o arquivo PDF HPDF.CurrentPage.TextOut(10, 10, 0, 'Information Demo'); // Imprimir o texto HPDF.EndDoc; // Fechar o arquivo PDF finally HPDF.Free; end; end. |