I assume that you want your application to create some PDF content from a user interface field.
You can do this easily from code using the report generator from code, then the PDF engine .
, Delphi 6 XE.
, , (, edt1.Text mmo1.Text):
procedure TForm1.btn1Click(Sender: TObject);
(...)
with TGDIPages.Create(self) do
try
Caption := self.Caption;
BeginDoc;
(...)
NewHalfLine;
TextAlign := taJustified;
s := 'This is some big text which must be justified on multiple lines. ';
DrawText(s+s+s+s);
NewLine;
TextAlign := taLeft;
DrawTitle(edt1.Text,true);
for i := 1 to 10 do
DrawText('This is some text '+IntToStr(i));
NewLine;
DrawBMP(Bmp,maxInt,50,'Some bitmap in the report');
AddBookMark('bookmarkname');
WordWrapLeftCols := true;
AddColumns([10,20,50]);
AddColumnHeaders(['#','Two','Three'],true,true);
for i := 1 to 100 do
DrawTextAcrossCols([IntToStr(i),'Column '+IntToStr(i),'Some text here. '+s]);
NewLine;
DrawBMP(Bmp,maxInt,50,'Some bitmap in the report (twice)');
DrawTitle('This is your text',false,0,'','bookmarkname');
DrawText(mmo1.Text);
EndDoc;
ExportPDF('test.pdf',false);
finally
Free;
end;
, Open Source, , ( "" TCanvas - PaintTo), , DrawTitle() DrawText().
EDIT:
PDF , .
, VeryPdf QuickPdf. Google - .