ImportFromRtf Function problem

The PDF Creator .NET Library enables you to create secure PDF documents on the fly and to view, print and process existing PDF documents. If you have any questions about PDF Creator .Net, please post them here.
Post Reply
denco3813
Posts: 4
Joined: Tue Dec 18 2007

ImportFromRtf Function problem

Post by denco3813 »

We currently use the PDFSuite.NET400 and I just discovered an ImportFromRtf Function.
I have tried to use it but the output PDF text is on a brown background and the text is stricked trough (see attached).

Is it something to do with a licence key issue?

Just in case I’m doing something wrong please find the code I’m using:
acPDFCreatorLib.Initialize();
acPDFCreatorLib.SetLicenseKey( "MyCompanyName" , "MyLicenceKey" );

PDFCreator PDFC = new PDFCreator();
PDFC.SetLicenseKey( "MyCompanyName" , "MyLicenceKey" );

IacDocument Document = new IacDocument();

Document.ImportFromRtf( @"c:\IT Workload.rtf");

System.IO.FileStream File1 = new FileStream( @"c:\ITWorkload.PDF" , FileMode.CreateNew );

Document.Save( File1 , IacFileSaveOption.acFileSaveAll );

File1.Close();
File1.Dispose();

Document.Dispose();
acPDFCreatorLib.Terminate();


could you please advise?
Devteam
Posts: 119
Joined: Fri Oct 14 2005
Location: Montreal
Contact:

Re: ImportFromRtf Function problem

Post by Devteam »

This method is now obsolete and was removed from our documentation. The RTF import module was sold as a separate module that required additional licensing but development around this module stopped a while ago because it didn't find any success with our customers. Also there are some obscure and undocumented features in the RTF format that makes accurate importing of RTF documents very tricky.
Amyuni Development Team

Efficient and accurate conversion to PDF, XPS, PDF/A and more. Free trials at - https://www.amyuni.com
Post Reply