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.

Tue Sep 20, 2022 10:08 am

Hi when I trey to convert odt to pdf files in most cases conversion is going well, but we stumble on one file that is breaking on line document.SaveToStream(memoryStream1, pdf); without any error message , code just stop running . we are using Spire.doc version 10.7.5.0 with license.
Code: Select all
Document document = new Document(memoryStream, DocFileFormat.Odt);
               
                    ToPdfParameterList pdf = new ToPdfParameterList();
                    pdf.DisableLink = false;
                    pdf.UsePSCoversion = true;
                    document.SaveToStream(memoryStream1, pdf);

We are providing you with file .

bstojanovic
 
Posts: 45
Joined: Mon Sep 28, 2020 2:54 pm

Wed Sep 21, 2022 6:31 am

Hello bstojanovic,

Thanks for your inquiry.
Your file indeed could not be converted successfully, and I encountered the error(System. StackOverflowException) when doing the conversion. I have logged the issue into our bug tracking system with the ticket SPIREDOC-8468. Our Dev team will do more investigations to fix it. Once there is any update, I will inform you asap. Sorry for the inconvenience caused.

Sincerely,
Simple
E-iceblue support team
User avatar

Simple.Li
 
Posts: 248
Joined: Fri Jul 01, 2022 2:33 am

Thu Nov 10, 2022 1:01 am

Hello,

Glad to inform that we just released Spire.Office Platinum(Hotfix) Version:7.11.0 which fixed the issue of SPIREDOC-8468, please download it from the following links to test.
Website link: https://www.e-iceblue.com/Download/download-office-for-net-now.html
Nuget link: https://www.nuget.org/packages/Spire.Office/7.11.0

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1510
Joined: Wed Apr 25, 2018 3:20 am

Fri Nov 25, 2022 12:59 am

bstojanovic wrote:Hi when I trey to convert odt to pdf files in most cases conversion is going well, but we stumble on one file that is breaking on line document.SaveToStream(memoryStream1, pdf); without any error message , code just stop running . we are using Spire.doc version 10.7.5.0 with license.
Code: Select all
Document document = new Document(memoryStream, DocFileFormat.Odt);
               
                    ToPdfParameterList pdf = new ToPdfParameterList();
                    pdf.DisableLink = false;
                    pdf.UsePSCoversion = true;
                    document.SaveToStream(memoryStream1, pdf);

We are providing you with file .

Hello. Did you know how to convert an ODT file (LibreOffice) to PDF?

dolotacycle
 
Posts: 1
Joined: Fri Nov 25, 2022 12:57 am

Fri Nov 25, 2022 3:27 am

Hi dolotacycle

Thanks for your inquiry.
I produced an odt file with LibreOffice (version 7.3.9) and I did a test with the following code,
Code: Select all
Document doc = new Document();
doc.LoadFromFile("sample.odt");
doc.SaveToFile("output.pdf", FileFormat.PDF);

the odt file can be converted well by the latest Spire.Doc(version 10.11.0). You can refer to the code above and have a test. If the output file is not significantly effective, please provide us the following information to help us do further investigation.
1) your source odt file
2) application type (E. g. .NET Framework 4.6)
3) device info, such as OS info (E. g. Windows 10, 64-bit) and region setting (E. g. China, Chinese)
Thanks for your assistance in advance.

Sincerely
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Mon Nov 28, 2022 7:30 am

dolotacycle wrote:Hello. Did you know how to convert an ODT file (LibreOffice) to PDF?

Hi dolotacycle,

Greetings from E-iceblue.
Does the code I provide meet your requirement? I’m looking forward to your feedback. If there are any problems with our products, just feel free to contact us.
Have a nice day!

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.Doc

cron