Click here to Skip to main content
16,016,168 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to convert rft file or RichtextBox.text to pdf in rft format,
i tried 3rd party tool but its seems evaluation version so i cannot use this in my project,

and i tried acrobat dll that also not woring my code s below

C#
string rtfPath = @"D:\test1.rtf";
  string pdfPath = @"D:\test1.pdf";



AcroAVDocClass _acroDoc = new AcroAVDocClass();
AcroPDDoc _pdDoc = null;


_acroDoc.Open(rtfPath, "text");
_pdDoc = (Acrobat.AcroPDDoc)(_acroDoc.GetPDDoc());

_pdDoc.Save((short)Acrobat.PDSaveFlags.PDSaveCopy, pdfPath);

_pdDoc.Close();
_pdDoc = null;
_acroDoc.Close(1);
_acroDoc = null;<

Any one help me to do the same
Posted
Updated 11-Jul-13 19:42pm
v2
Comments
Sergey Alexandrovich Kryukov 12-Jul-13 1:41am    
Please don't re-post. It cannot help you.
—SA
Durgamuthu 12-Jul-13 1:42am    
y???
ZurdoDev 12-Jul-13 12:37pm    
You need to reply to the comment so that the user is notified. Please do not add a comment to your own question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900