Word document with activeX controls not converted properly in PDF

Hi,

I am trying to convert a word document to PDF equivalent using the ASPOSE Word and ASPOSE PDF components. My word document contains some MS Word based activex controls - text box, combo box and check box. When I convert the same in PDF all the above controls are added to the PDF as images. I need them to be converted as proper controls though.

I tried the legacy controls from the MS Word and they are being converted fine.

I am using the same code as is given on your site:
-------------------------------------------------------------------------------------------------------------------------
Document doc = new Document(wordfileName);

// Specify folder where images will be stored
doc.SaveOptions.PdfExportFormFieldsAsText = false;
doc.SaveOptions.PdfExportImagesFolder = System.IO.Path.GetTempPath();

// Save the doc in a xml fille that can be handled by Aspose.Pdf.
doc.Save(“test.xml”, SaveFormat.AsposePdf);

// New a pdf object.
Pdf pdf = new Pdf();

// Bind content from the named xml file.
pdf.BindXML(“test.xml”, null);

// Save the result
pdf.Save(pdfPathName);
-------------------------------------------------------------------------------------------------------------------------
Please advise…

Regards,
Vaibhav Modak

Hi,

Thanks for your inquiry.
I am able to notice the problem that controls are being added as static text and images.

As far as I can see, the information in Intermediate XML does not contain any information for controls but these controls are being added as images/static Text strings into the XML file. So the issue seems to be over Aspose.Words end.
I have reported it to Aspose Words team. They will reply to you soon.

Best regards.

Hello!

Thank you for your inquiry.

I’m Viktor, the developer from the Aspose.Words Team responsible for doc2pdf conversion.

This behavior is by design. All ActiveX controls are converted as text or images, not as controls. You are right; if you change to form fields (what you call legacy controls), they will be output as checkboxes, etc. In your sample, the checkbox is a field of type FORMCHECKBOX. Please let me know how I can help further.

Regards,