|
program ImageDemo; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc;
var I: Integer; HPDF: THotPDF; Index: Integer;
begin HPDF:= THotPDF.Create( nil ); try HPDF.AutoLaunch := true; // PDF 파일이 자동으로 표시됩니다 HPDF.FileName := 'ImageDemo.pdf';
HPDF.BeginDoc; // PDF 파일 생성
Index := HPDF.AddImage( '.\Image.jpg', icJpeg ); // 문서에 이미지 추가 HPDF.CurrentPage.ShowImage( Index, 10, 10, 390, 300, 0 ); // Show image with sizes 390 x 300
HPDF.EndDoc; // PDF 파일 닫기 finally HPDF.Free; end; end.
|