DynaPDF Manual - Page 47

Previous Page 46   Index   Next Page 48

Language Bindings
Page 47 of 839
pdf.SetDocInfoA(diTitle, 'My first Delphi PDF output');
pdf.SetViewerPreferences(vpDisplayDocTitle, avNone);
pdf.CreateNewPDFA('c:\dout.pdf');
pdf.Append;
pdf.SetFontA('Arial', fsItalic, 40, true, cp1252);
pdf.WriteFTextA(taCenter, 'My first Delphi output!!!');
pdf.EndPage;
pdf.CloseFile;
except
on E: Exception do MessageDlg(E.Message, mtError, [mbOK], 0);
end;
if pdf <> nil then pdf.Free;
end;
 

Previous topic: Exception handling in Delphi, Using DynaPDF in Multithreading Applications

Next topic: Compiling DynaPDF on Linux / UNIX, System requirements:, Build process