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 Jun 23, 2015 8:47 am

Hi,
I'm trying to convert a DOCX document with section break inside content control, but the converted PDF document ignore the break. The section break is properly converted if placed outside content control.

This is my simple test method to try the conversion:

[TestMethod]
public void TestConvert2Pdf()
{
var barr = System.IO.File.ReadAllBytes(
@"C:\test.docx");
using (var msOut = new MemoryStream())
{
using (var msIn = new MemoryStream(barr))
{
DocumentHelper.Convert2Pdf(msIn,msOut);
var bar2 = msOut.ToArray();
System.IO.File.WriteAllBytes(
@"C:\test.pdf", bar2);
}
}
}

In attachment the test.docx file with section break inside content control.
Thanks in advance, bye
Last edited by pld on Tue Jun 23, 2015 10:05 am, edited 1 time in total.

pld
 
Posts: 6
Joined: Tue Mar 04, 2014 5:23 pm

Tue Jun 23, 2015 9:13 am

Hello,

Thanks for your inquiry.
I have noticed your issue and posted it to our Dev team. We will let you know as soon as there is any update.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.Doc