|
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á exibido automaticamente HPDF.ShowInfo := true; // Include information into document HPDF.FileName := 'Hello world.pdf'; HPDF.Author := 'http://www.loslab.com/'; // Define a informação de autor HPDF.Subject := 'HotPDF console information demo'; // Define o assunto do documento HPDF.Title := 'Information Demo'; // Define o título do documento HPDF.BeginDoc; // Cria o arquivo PDF HPDF.CurrentPage.TextOut(10, 10, 0, 'Information Demo'); // Imprime o texto HPDF.EndDoc; // Fecha o arquivo PDF finally HPDF.Free; end; end. |