Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Jul 30, 2015 11:28 am

Hi,

I am having issues converting from RTF to PNG.
I use the basic code as follows :

Code: Select all
       
        Dim doc As New Document()
        doc.LoadRtf("path\name.rtf")
        Dim img As Image = doc.SaveToImages(1, ImageType.Bitmap)
        img.Save("path\name.png", Imaging.ImageFormat.Png)
        Process.Start("path/name.png")


It gives me an image containing most of my data. But then, this kind of problem occurs :

Image

Sorry I had to hide some data because of confidentiality.

As you can see, some text is going through the header, and this text comes from the bottom of the page.

Do you have any idea on why this problem occurs ?

Regards

trichetriche
 
Posts: 1
Joined: Thu Jul 30, 2015 8:06 am

Fri Jul 31, 2015 5:46 am

Hello,

Thanks for your inquiry.
Could you please send us your sample file? It would be helpful to replicate the issue and work out
the solution for you ASAP. It's difficult to say what the issue is without document. We promise to keep your document confidential and we will not use it for any other purpose. Besides, you could also remove the security data of your document and then send it to us.
Please kindly note that firstly you need to compress it and upload.
Or you can send it to us ( [email protected] ) via email.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Thu Aug 06, 2015 9:03 am

Hello,

Has your issue been resolved?
If not, could you please send us your sample file? It would be helpful to replicate the issue and work out the solution for you ASAP.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Return to Spire.Doc

cron