According to this and this i created my wrapper unit to convert trichview docs to pdf like this
- download and install SynopsePDF
- use my unit 09_SynopsePDF to convert to PDF from trichView like this
- also helpful for me was that forum
having sRichView which will be saved as rvf and converted to PDF
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
uses uSynosePDFCreator ... procedure Convert2PDF(aPDFFilePath: string); var fileName: string; pdfCreator: TSynosePDFCreator; begin pdfCreator := TSynosePDFCreator.Create(Self); try // save to rvf fileName := TPath.GetRandomFileName + '.rvf'; SRichViewEdit.RichViewEdit.SaveRVF(fileName, false); // convert to pdf pdfCreator.rvfOrRtf2PDF(fileName, aPDFFilePath); finally //delete if TFile.Exists(filename) then TFile.Delete(filename); pdfCreator.Free(); end; end; |
call like this
1 2 3 |
... rv.Convert2PDF(Ffilepath); ... |