Free Support Forum - aspose.com

Fillable field in PDF

Hi,

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

Kusuma

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. You can use form fields to achieve this. Please see the following link for more information:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.rendering.pdfoptions.ispreserveformfields.html

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:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/working-with-form-fields.html

Hope this helps.

Best regards.

Hi alexey,

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,

Kusuma

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

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:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/form-fields-in-microsoft-word.html

Best regards.