- Offizieller Beitrag
How I can convert .rtf file to .pdf format with WPTools for Delphi ?
You need the products WPTools and wPDF:
place a TWPRichText on the form (from WPTools)
and a TWPPDFExport (from wPDF)
Set the property
WPPDFExport1.Source := WPRichText1;
and convert the file like this:
WPRichText1.LoadFromFile( filename );
WPPDFExport1.FileName :=
ChangeFileExt(WPRichtext1.LastFileName,'.PDF');
WPPDFExport1.Print;