We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Block level SDT does not convert to Editable Form field in output PDF using .NET


We are utilising the following C# code to convert word files (docx and dotx) to PDF format with an aim to create fillable PDF forms.

Aspose.Words.Document wordDoc = new Aspose.Words.Document(sourceDoc.FilePath);
Aspose.Words.Saving.PdfSaveOptions options = new Aspose.Words.Saving.PdfSaveOptions();
options.PreserveFormFields = true;
wordDoc.Save(outputPdfPath, options);

However, the generated PDF documents are not preserving the form fields… we must be doing something wrong?

Form.pdf (21.9 KB)
docs.zip (37.6 KB)

Kind regards


Thanks for your inquiry. The legacy form controls are exported as fillable control when PdfSaveOptions.PreserveFormFields property is true. However, content controls are not exported as form control. We already logged this feature request as WORDSNET-14510 in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

A post was split to a new topic: Save multiple documents to PDF

The issues you have found earlier (filed as WORDSNET-14510) have been fixed in this Aspose.Words for .NET 21.11 update also available on NuGet.