Philly10407

Hi,

Anyone know if there is a good component- ActiveX control or DLL - help to convert RTF file to PDF I used to print the RTF doc to Adobe distiller, but the distiller does work so well, I wish if there is reliable object somewehere that I could used.

Thanks in advance




Re: Visual C# General RTF to PDF convertion using C#

cathy kmh

Hi,

You can use Acrobat.dll.

Acrobat.AcroAVDocClass _acroDoc = new Acrobat.AcroAVDocClass();

Acrobat.AcroPDDoc _pdDoc = null;

_acroDoc.Open(strNonPDFFile, strPDFFile);

_pdDoc = (Acrobat.AcroPDDoc)(_acroDoc.GetPDDoc());

_pdDoc.Save(Acrobat.PDSaveFlags.PDSaveFull, strPDFFile);

_pdDoc.Close();

_pdDoc = null;

_acroDoc.Close(1);

_acroDoc = null;





Re: Visual C# General RTF to PDF convertion using C#

Philly

Cathy,

Thanks for your reply and I'm sorry, I missed your reply.

This is interesting, I wasn't sure of where to get the acrobat.dll and the following is what I found out in google. I am not sure if this is the same dll you are talking about

http://www.fileresearchcenter.com/A/ACROBAT.DLL-5656.html

http://www.file.net/process/acrobat.dll.html






Re: Visual C# General RTF to PDF convertion using C#

ZafarIqbal

Just right click on you project in Solution Explorer------->Add Reference-------Select COM tab-----Select 'Acrobat'

Regards,

Zafar Iqbal






Re: Visual C# General RTF to PDF convertion using C#

ZafarIqbal

Thanks Cathy, It was really helpful. I am feeling relief from my headache now.

Regards,

Zafar Iqbal






Re: Visual C# General RTF to PDF convertion using C#

Philly

hmm,

Like i said in previous comment. This acrobat.dll is a potiential spyware.






Re: Visual C# General RTF to PDF convertion using C#

SautinSoft

Hi Philly,

You may try our PDF Metamorphosis .Net - .net library, created only on C#:

description:
http://www.sautinsoft.com/products/pdf-metamorphosis/index.php

download:
http://www.sautinsoft.com/components/pdf_metamorphosis_net.zip

It converts HTML, RTF to PDF using two lines of code on C# or VB.Net.

Best wishes,

Max