Checkbox is not checked after Word to PDF convertion

Sample-checked.docx (168.0 KB)

We have a similar problem, but in the other direction: some (not all) unchecked checkboxes appear checked in PDF using the same conversion code as above. Please find attached a sample DOCX file. The problematic checkboxed on the first page are 6th checkbox from the top and 2nd checkbox from the bottom (should appear unchecked in the conversion) and a bunch of them on the second page.

The code is as follows:

var wordDoc = new Aspose.Words.Document(@"Sample-checked.docx");
wordDoc.Save(@"sample.pdf", Aspose.Words.SaveFormat.Pdf);

@Eva_M The problem occurs because Aspose.Words updated SDT contetn by default while rendering document. You can disable this to get the desired output:

Document doc = new Document(@"C:\Temp\in.docx");
PdfSaveOptions options = new PdfSaveOptions();
options.UpdateSdtContent = false;
doc.Save(@"C:\Temp\out.pdf", options);