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 Feb 11, 2021 11:53 pm

Hi There,

I'm trying to use the conversion with the Document class in Spire.Doc to save RTF files as PDF. I have followed the example using:

Code: Select all
document.LoadFromFile(rtfFilePath, FileFormat.Rtf);
document.SaveToFile(outputFileName, FileFormat.PDF);


Unfortunately, with the file I'm using, the SaveToFile method appears to throw an exception. Here's the stack trace:

Code: Select all
   at Spire.Doc.Fields.Field.get_End()
   at spr⎳.ᜊ()
   at spr⎳.ᜏ()
   at spr⎳.ᜁ(RectangleF A_0)
   at spr⎴.ᜂ(spr⎲ A_0)
   at spr⎳.ᜁ(RectangleF A_0)
   at spr⎳.ᜋ(spr⎲ A_0)
   at spr⎳.ᜁ(RectangleF A_0)
   at spr⎷.ᜀ(spr⎲ A_0, RectangleF A_1)
   at spr⎷.ᜊ()
   at spr⎷.ᜂ(RectangleF A_0)
   at spr⎳.ᜋ(spr⎲ A_0)
   at spr⎳.ᜁ(RectangleF A_0)
   at spr⎳.ᜋ(spr⎲ A_0)
   at spr⎳.ᜁ(RectangleF A_0)
   at spr⎦.ᜀ(spr⎜ A_0, spr⎖ A_1, spr⠜ A_2)
   at spr⠔.ᜒ()
   at spr⠔.ᜓ()
   at spr⠔.ᜀ(IDocument A_0)
   at spr⡥.ᜀ(Document A_0, Stream A_1, ToPdfParameterList A_2)
   at Spire.Doc.Document.ᜁ(String A_0, ToPdfParameterList A_1)
   at Spire.Doc.Document.ᜆ(String A_0)


I've attached the file that appears to be causing the error in case you'd like to test with it.

Please let me know if this is something can be fixed on our end easily or otherwise.

Thank you,
Zac
Last edited by ZacCliff92 on Sun Feb 14, 2021 10:39 pm, edited 1 time in total.

ZacCliff92
 
Posts: 12
Joined: Wed Jan 27, 2021 7:05 am

Fri Feb 12, 2021 9:43 am

Hello,

Thanks for your inquiry.
I am sorry that I did not see any attachment you mentioned here. Please attach it again, or you also can sent it to [email protected]. Thanks in advance.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Sun Feb 14, 2021 10:40 pm

Hi Brian,

Sorry about that, I believe I've now properly attached the file to the original post. Let me know if you have any issues with it.

Thanks,
Zac

ZacCliff92
 
Posts: 12
Joined: Wed Jan 27, 2021 7:05 am

Mon Feb 15, 2021 10:33 am

Hello,

Thanks for your inquiry and sorry for the late reply as weekend.

I have received your attachment. After testing your .rtf file, I did reproduce your issue. The issue has been logged it in our issue tracking system with the ticket SPIREDOC-5536 for further investigation.

We will let you know if there is any update. Sorry for the inconvenience caused.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Mon Aug 23, 2021 11:03 am

Hello,

Thanks for your patience!

Glad to inform you that we just released Spire.Doc Pack(hot fix) Version:9.8.6 which fixes the issue of the SPIREDOC-5536.

Please download the fix version from the following links to test.

Website link:
https://www.e-iceblue.com/Download/download-word-for-net-now.html
Nuget link:
https://www.nuget.org/packages/Spire.Doc/9.8.6

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Mon Aug 30, 2021 7:21 am

Hello,

Hope you are doing well!

Has the issue been solved now? Could you please give us some feedback at your convenience?

Thanks in advance.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Return to Spire.Doc

cron