program PDFInfo;

{$APPTYPE CONSOLE}

uses

SysUtils,

Graphics,

Classes,

HPDFDoc;

 

var

HPDF: THotPDF;

 

begin

HPDF:= THotPDF.Create(nil);

try

HPDF.AutoLaunch := true; // PDF file will be shown automatically

HPDF.ShowInfo := true; // Sisällytä tiedot dokumenttiin

HPDF.FileName := 'Hello world.pdf';

HPDF.Author := 'http://www.loslab.com/'; // Aseta tiedot tekijästä

HPDF.Subject := 'HotPDF console information demo'; // Aseta dokumentin aihe

HPDF.Title := 'Information Demo'; // Aseta dokumentin otsikko

HPDF.BeginDoc; // Create PDF file

HPDF.CurrentPage.TextOut(10, 10, 0, 'Information Demo'); // Tulosta teksti

HPDF.EndDoc; // Close PDF file

finally

HPDF.Free;

end;

end.