We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

REF-field with custom separator


We encountered an unexpected behaviour while saving REF fields containing DOCX file as PDF. Our code is rather simple:

using (var ms = new MemoryStream(oryginalDocxFile))
   using (var mout = new MemoryStream())
      var doc = new Document(ms);
      doc.Save(mout, SaveFormat.Pdf);
      return mout.ToArray();

When the converted document contains REF field with custom separator (field code: { REF _Ref511212103 \d " art. " \h \w }), the field is updated to value without the given separator. We think that this is incorrect behaviour. We have found this issue in bought Aspose.Words for .NET and trial

The DOCX file: Test.zip (11.9 KB)

Thanks for your help.
Best regards,


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-16729. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-16729) have been fixed in this Aspose.Words for .NET 18.5 update and this Aspose.Words for Java 18.5 update.