Free Support Forum -

Word to PDF - Create a fillable PDF Form


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) (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.