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

Free Support Forum - aspose.com

System.ArgumentException is thrown while saving PDF to DOCX

Unhandled exception. System.ArgumentException: #=zqAip6IOh24JK6FCTLx1jIfI= : #=zqAip6IOh24JK6FCTLx1jIfI= : #=zqAip6IOh24JK6FCTLx1jIfI= : #=z3qSCO4a5VGrQKUKLBB9teCo= : Object reference not set to an instance
of an object.[ at #=zFKIOyTHWnh4Xf73i8sPzYC0=.#=zcz0sAFY=(String #=z_HijxC8=, #=zi5fLka2PyTEBrbTAThLvBRbs2veX #=z4xYWb7g=, #=zw_r7jSwNw$0NpSPyNn0s6cEuS86W #=zMJL0ovU=, #=zfTcQnh7dUFWZBJb68_SWMQSKlZIL #=zy
mpQyAE=)
at #=z3XSbJPND0nf9w2JmD4CjxXFHVIpFY8T3LQ==.#=zzeMoOq3NI2seqjY2sm3KLgs=(#=z3qSCO4a5VGrQKUKLBB9teCo= #=zPXNsBUqzZIqX, Int32& #=zHzntGR0=, #=z65H012SjD$tmP3XcFuEucAvagTnk #=zyHxZNow=)
at #=zeTU$9b8UYrj1YoaUcCSM9WUizppS.#=zJ07oHn4=(#=z3qSCO4a5VGrQKUKLBB9teCo= #=zPXNsBUqzZIqX)
at #=z3qSCO4a5VGrQKUKLBB9teCo=.#=zTIWtqAk=(#=zNY7GHf2PXOe$TkCY8B88w5dFEsad #=zSfAPdEQ=)
at #=zEZ7EcwWxJj1sPDLs7Y8qHz04G2Ga.#=zTIWtqAk=(#=zNY7GHf2PXOe$TkCY8B88w5dFEsad #=zSfAPdEQ=)][ at #=zEZ7EcwWxJj1sPDLs7Y8qHz04G2Ga.#=zTIWtqAk=(#=zNY7GHf2PXOe$TkCY8B88w5dFEsad #=zSfAPdEQ=)
at #=zqAip6IOh24JK6FCTLx1jIfI=.#=zTIWtqAk=(#=zNY7GHf2PXOe$TkCY8B88w5dFEsad #=zSfAPdEQ=)
at #=zEZ7EcwWxJj1sPDLs7Y8qHz04G2Ga.#=zTIWtqAk=(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ean #=znPARYEjUyGk5)
at #=zcdystw_I8alMc2okDZCdMGZIbVkN0Yn7Cvjh6hA=.#=zcuQQmAc=(#=zXA96syXEHYB4TFvVIsVl$uo= #=zdMBbJIOBaKcN, #=zVbWquaNdPT9YA4HI2k_ZvprkZ7TKXl$GyQ== #=zYyR8vds=)
at #=zn5McbGpikv_$$cE9L6yYQ0RWRVxP9dMA0A==.#=zcuQQmAc=(#=zXA96syXEHYB4TFvVIsVl$uo= #=zBI5F_R8=)
at #=zWMOe2xnXXdStruZEMlBKoM8=.#=z_9hmFpDv6ovrIfkfLQ==(Document #=zsO4AC6o=, DocSaveOptions #=zytPZySg=, Queue`1 #=z9AgK2fzn7b9d, Stream #=zpaLhibgjPyfR, Int32 #=ztPctwnXrexqP)
at #=zWMOe2xnXXdStruZEMlBKoM8=.#=z689P9f4=(Document #=zsO4AC6o=, Stream #=zpaLhibgjPyfR, DocSaveOptions #=zytPZySg=)
at Aspose.Pdf.Document.#=zB20ZmbtNdN0B(Stream #=zpaLhibgjPyfR, SaveOptions #=zytPZySg=)
at Aspose.Pdf.Document.#=zB20ZmbtNdN0B(String #=zzO$7SyTN6dm8, SaveOptions #=zytPZySg=)
at Aspose.Pdf.Document.Save(String outputFileName, SaveOptions options)
at Program.$(String[] args) in C:\Repos\Filestar\experimental\AsposePdf\Program.cs:line 5

See sample application and sample file:

AsposePdf.zip (533.3 KB)

@nielsbosma

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

We apologize for your inconvenience.