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.

Fri Mar 10, 2023 11:06 pm

when combining several word documents into one, blank pages are added to the resulting document under each embedded document.
Version 11.3.0 of spire.doc
code:
Document word_doc = new Document();
word_doc.loadFromFile(sRutaD_W_PP);
word_doc.insertTextFromFile(sRutaD_W_TL, com.spire.doc.FileFormat.Doc);
word_doc.insertTextFromFile(sRutaD_W_TC, com.spire.doc.FileFormat.Doc);

word_doc.saveToFile(sRutaD_W, com.spire.doc.FileFormat.Doc);

mavilaper
 
Posts: 4
Joined: Wed Feb 08, 2023 4:05 pm

Mon Mar 13, 2023 5:42 am

Hi mavilaper,

Thanks for your message.
I simulated some word files and tested your scenario, but I didn't reproduce the "blank pages" issue. To help us have a further investigation, please share the following more information with us, thanks in advance.
1. Your input files as well as your final saved file.
2. Your system information (E.g. Win10, 64 bit) and region setting (E.g. China, Chinese).
3. The JDK version you used.

Best Regards,
Herman
E-iceblue support team
User avatar

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

Mon Mar 13, 2023 3:34 pm

thanks for the answer attached are the requested file

system information: Windows server 2019 datacenter Español(MExico)
jdk: AdoptOpenJDK jdk8u292-hotspot

mavilaper
 
Posts: 4
Joined: Wed Feb 08, 2023 4:05 pm

Mon Mar 13, 2023 3:35 pm

sorry forgot to attach the files

mavilaper
 
Posts: 4
Joined: Wed Feb 08, 2023 4:05 pm

Tue Mar 14, 2023 3:28 am

Hi mavilaper,

Thanks for your feedback.
I did reproduce your issue after testing your files. I have logged this issue into our tracking system with the ticket SPIREDOC-9155, 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

Return to Spire.Doc