We have a problem with converting a Word document having the 97-2003 format (see the attached file MACROBUTTON issue.doc) that contains a MACROBUTTON. The PDF copy (see attached file MACROBUTTON issue.pdf) contains the HTMLDirect name of the MACROBUTTON.
Is there any chance we can avoid that without changing the file?
What we use:
Aspose.Words .NET component version 16.2.0.0, Runtime version v4.0.30319.
The actual conversion code looks like this:
var doc = new Document(input);
doc.Save(output, new PdfSaveOptions
{
SaveFormat = WordSaveFormat.Pdf
});
What we tried so far:
PreserveFormFields set to true in SaveOptions argument. It doesn’t help.
Converting the document to the DOCX format. The conversion will remove the button entirely. This is not good.
We successfully converted the file to PDF using Word 2016 Save As PDF functionality.
The restriction we have is that we cannot replace the file so it will extremely helpful if you can help us with an Aspose.Words version or a piece of code that we can use to make the problem go away.
Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-13408. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.
gwert:
2. Converting the document to the DOCX format. The conversion will remove the button entirely.
Could you please share some more detail about this query? We will then provide you more information on this.
Thanks for sharing the detail. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-13411. You will be notified via this forum thread once this issue is resolved.
Thanks for your inquiry. The issue (WORDSNET-13408) has been resolved and its fix will be available in June 2016 release (Aspose.Words v16.6.0). This version of Aspose.Words will be available in next month (July 2016).
Currently, WORDSNET-13411 is pending for analysis and is in the queue. Once our product team completes the analysis of this issue, we will then be able to provide you an estimate.
Thanks for your inquiry. We have tested the scenario using latest version of Aspose.Words for .NET 18.4 and have not found the shared issue. Please make sure that you are using Aspose.Words for .NET 18.4. We have attached the output PDF with this post for your kind reference. 18.4.pdf (14.2 KB)
Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-16791. You will be notified via this forum thread once this issue is resolved.