Converting RTF to PDF via COM in C#

Hallo,


I developed an appllication in C# which converts RTF files to PDF. RTF includes some frames, logos etc.After conversion (per COM 2.2.2) to PDF is there only plain text. If I try to convert the same RTF per PDFCreator application, the PDF is correct.
The previous version using COM 1.7 version got correct PDF.

Thanks for help

Marek

Hi,


does the RTF get printed from the same application in both cases?

best regards,


Hi,


yes in both cases I convert the same file.

Marek

Hi,


I meant, is the same application used for printing the file in both cases?`
You could be opening the RTF in e.g. Word to print it to the PDFCreator printer and the COM interface will use the application registered for the “print to” shell verb of the file type, which can be something different.
Or did you use drag&drop to convert the RTF (in this case it should be the same result as the COM conversion)? If not, please try this. If this also gives a bad result, most likely the application assigned to printing RTFs has a setting to only print plain text.

best regards,


Hi,


you are right. I set up that Word will be “the printer” in both cases and the result is OK.
Thank you very much for your help.

Best regards

Marek