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.

Mon Apr 17, 2023 1:51 pm

Reproduction
1. Save a Document to pdf file
2. Make a change to a paragraph
3. Save the document to pdf file again

Expected behaviour: saved file contains updated text
Actual behaviour: saved file retains old paragraph text

Observed in Spire.Doc v10.10.4 and v11.4.0 on .NET Framework 4.6.2 and 4.8 (on Windows) respectively in both a WPF and Console application.

Example
Code: Select all
Document doc = new Document();
Section section = doc.AddSection();
Paragraph p = section.AddParagraph();
p.AppendText("foo");
doc.SaveToFile("test1.pdf");
p.AppendText("bar");
doc.SaveToFile("test2.pdf");

Both test.1pdf and test2.pdf contain only the text "foo". The text "bar" never appears in test2.pdf.

Demobv37d
 
Posts: 4
Joined: Mon Nov 22, 2021 2:10 pm

Tue Apr 18, 2023 5:40 am

Hi,

Thanks for your message.
I tested your code and did reproduce the issue you mentioned.I have logged this issue into our tracking system with the ticket SPIREDOC-9297, our Dev team will do further investigation and fixing. Once there is any update, we will keep you informed. Sorry for the inconvenience caused.

Best Regards,
Herman
E-iceblue support team
User avatar

Herman.Yan
 
Posts: 115
Joined: Wed Mar 08, 2023 2:00 am

Fri May 19, 2023 6:02 am

Hello,

Glad to inform that our latest Spire.Doc Pack(hot fix) Version:11.5.6 fixed the issue of SPIREDOC-9297, please download it from the following links and refer to the sample code to have a test.
Website link: https://www.e-iceblue.com/Download/download-word-for-net-now.html
Nuget link: https://www.nuget.org/packages/Spire.Doc/11.5.6

Code: Select all
//apply the license key
 Spire.Doc.License.LicenseProvider.SetLicenseKey("doc license key");
 Document doc = new Document();
 Section section = doc.AddSection();
 Paragraph p = section.AddParagraph();
 p.AppendText("foo");
 doc.SaveToFile("test1.pdf");
 //add to reset the cache
 doc.ResetPageLayoutCache();
 p.AppendText("bar");
 doc.SaveToFile("test2.pdf");

Sincerely,
Lisa
E-iceblue support team
User avatar

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

Return to Spire.Doc