dfojtik 0 Posted February 25, 2022 Hello, Try to find third party solution for converting RTF to PDF. Not pure RTF file but created in MS Word. So i directly need something what is able correctly open rtf, doc or docx file and convert it into pdf. So result will respond how it looks in MS Word. I know that one solution is OLE Automation (open in MS Word and send it to pdf printer). But prefere different solution which do not need MS Word installed. Any tips? Share this post Link to post
Mark- 29 Posted February 25, 2022 For use inside MS Word, I use PDF Destinator. As far as I know it cannot be automated. Share this post Link to post
timfrost 78 Posted February 25, 2022 No need to print from Word, you can automate it to open and 'save as PDF'. And you can do the same with Libre Office, for MS and ODT formats, and there is a library available from https://www.winsoft.sk/libre.htm which can help with this. If installing Libre is as much of a problem for you as installing Word, there is also a library available from https://delphihtmlcomponents.com/office.html which can read Word Documents and can also write PDF, via HTML. Share this post Link to post
Uwe Raabe 2057 Posted February 25, 2022 AFAIK PDF-XChange Editor supports this. Share this post Link to post
Guest Posted February 25, 2022 There are a bunch of solutions out there in various price ranges. I do these things server-side and multithreaded so i prefer a solution that i can compile with sources. Using "Office Automation" server side is not an option (for me). The only pure Delphi library that can do all this with sources and support that i know of is https://delphihtmlcomponents.com/office.html. For my needs it works very well. I do a lot of extractions of docx-chunks and convert to rtf/pdf/html and plaintext. I also use it to create html from doc,docx,pdf,xls,xlsx... and some more formats for online "preview". Share this post Link to post
Arnaud Bouchez 407 Posted February 26, 2022 I really recommend https://www.trichview.com/ Share this post Link to post