System.ArgumentOutOfRangeException: 'Specified argument was out of the range of valid values. Parameter name: firstColumn' while saving DOCX to PDF using .NET

Hi Aspose support,
I got this error when saving the docx document to pdf format.
We used Aspose.words (23.1.0) library.
We are using Windows 10 Pro (64-bit operating system, x64-based processor) and .NET Framework 6.0

Source code:

byte[] outputFileBuffer = redlineFile.OutputFileBuffer;
Aspose.Words.Document document;
using (MemoryStream ms = new MemoryStream(outputFileBuffer))
    document = new Aspose.Words.Document(ms);

Aspose.Words.Savings.SaveOptions new PdfSaveOptions(){ UpdateFields = false } 
MemoryStream pdfStream = new MemoryStream();
document.Save(pdfStream, saveOptions);

error:
we got this error at this line of code document.Save(pdfStream, Aspose.Words.SaveFormat.Pdf);

System.ArgumentOutOfRangeException: 'Specified argument was out of the range of valid values.
Parameter name: firstColumn'

   at    .(Int32 , Int32 )
   at    .(Int32 , Int32 )
   at    .()
   at    .()
   at    .(    , IList`1 )
   at    .(    )
   at    . ()
   at    .()
   at    . ()
   at    . ()
   at    .()
   at    .(    )
   at    .(    )
   at    .(    , Int32 , Boolean )
   at    .(    , Int32 , Boolean )
   at    .()
   at    .(    , Int32 , Boolean , Boolean )
   at    .()
   at    .(    , Int32 )
   at    .(    , Int32 )
   at    .(    )
   at    .()
   at    .(    )
   at    .(    )
   at    .(    )
   at    .(    )
   at    . ()
   at ​  .()
   at Aspose.Words.Document.UpdatePageLayout()
   at    .(    ,     )
   at    .     (    )
   at    .     (    )
   at Aspose.Words.Document.(    )
   at Aspose.Words.Document.(Stream , String , SaveOptions )
   at Aspose.Words.Document.Save(Stream stream, SaveOptions saveOptions)

Please help me on this.
Thanks.

@radha.bobbili Could you please attach your input document here for testing? We will check the issue and provide you more information.

We are passing two input documents; one is original and second one is modified for comparison.
After comparison done, result comparison document will be able to save in rtf format. But while we are trying to save in pdf format will get this error. I am sharing the rtf file.
Redline.zip (1.5 MB)

@radha.bobbili
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25399

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like

May i know the cause for this error occurs.

@radha.bobbili The issue is currently in analysis. Once development team complete analysis we will be able to provide you additional information.

1 Like

The issues you have found earlier (filed as WORDSNET-25399) have been fixed in this Aspose.Words for .NET 23.10 update also available on NuGet.