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