I would like to know, after I convert a word document to PDF using aspose, whether it is possible to have a fillable field in the converted PDF document.
Actually in the word document I have a few bookmarks and depending on the bookmarks I add text or images but my requirement is I should be able to identify the bookmarks where the image has to be added after I convert to PDF.
Any suggestions are appreciated.
Thanks in advance
Thanks for your request. You can use form fields to achieve this. Please see the following link for more information:
Here is simple code example:
Document doc = new Document(@"Test001\in.doc"); PdfOptions opt = new PdfOptions(); opt.IsPreserveFormFields = true; doc.SaveToPdf(0, doc.PageCount, @"Test001\out.pdf", opt);
Also, see the following link to learn more about form fields:
Hope this helps.
Thanks for your reply.
But even after I convert the word document, the form fields are not there in the PDF document.
I’ve attached the word document. Can you check and help me with this?
Thanks for your request. Your document does not contain form fields, that is why there are no editable fields in the output PDF. See the following link to learn how to insert formafields in MS Word: